Skip to content

executeid/vertex-ai-ocr-tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vertex AI OCR & TTS Flutter App

A modern Flutter application that leverages Google Vertex AI for Optical Character Recognition (OCR) and Text-to-Speech (TTS) capabilities. Instantly extract text from images and have it read aloud, with support for multiple languages.


✨ Features

  • Text Recognition: Extract text from images using Google Vertex AI OCR.
  • Text-to-Speech: Listen to recognized text in various languages.
  • Image Viewer: Fullscreen image preview with zoom and pan.
  • Language Selection: Easily switch between supported languages for TTS.
  • Modern UI: Clean, responsive, and easy-to-use interface.

πŸš€ Getting Started

Prerequisites

  • Flutter SDK
  • Dart SDK
  • Google Cloud Project with Vertex AI enabled
  • Firebase project (for authentication, if used)

Setup

  1. Clone the repository:
    git clone <your-repo-url>
    cd vertex-ai-ocr-tts
  2. Install dependencies:
    flutter pub get
  3. Configure Firebase & Google Services:
    • Place your google-services.json in android/app/.
    • Place your GoogleService-Info.plist in ios/Runner/.
    • Update lib/firebase_options.dart as needed.
  4. Run the app:
    flutter run

πŸ› οΈ Project Structure

lib/
  main.dart                # App entry point
  screens/                 # UI screens (home, result, fullscreen viewer)
  services/                # Vertex AI, TTS, translation logic
  utils/                   # App theming, text detection helpers
  widgets/                 # Reusable UI components

πŸ“Έ Usage

  1. Select or capture an image.
  2. Extract text using Vertex AI OCR.
  3. Listen to the recognized text with TTS.
  4. Switch languages as needed.

οΏ½οΏ½ Resources


🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


πŸ“ License

MIT


πŸ”’ About lib/firebase_options.dart

The lib/firebase_options.dart file is auto-generated by the Firebase CLI and contains your project's Firebase configuration, including API keys and identifiers. This file is sensitive and should never be committed to version control.

  • If you need to regenerate it, run:
    flutterfire configure
  • Always ensure this file is listed in your .gitignore.
  • If accidentally committed, rotate your API keys and update the file.

For more details, see the FlutterFire documentation.


Made with ❀️ by Execute to mark the end of Semester 4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published