Skip to content
pubscout

google_mlkit_text_recognition

1.0.3, released 8 days ago by flutter-ml.dev

Flutter plugin to use Google's ML Kit Text Recognition on Android and iOS.

$ flutter pub add google_mlkit_text_recognition
Source repository

What it does

A Flutter plugin providing access to Google's ML Kit Text Recognition API. It allows your app to recognize text in Chinese, Devanagari, Japanese, Korean, and Latin character sets from input images.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract text from images or camera feeds in mobile applications
  • You want on-device text recognition for Chinese, Devanagari, Japanese, Korean, or Latin scripts

Skip it when

  • You need web or desktop support, as it is only built for mobile platforms
  • You need complex non-Latin script text recognition natively on iOS without fallback

Strengths

  • Uses native Google ML Kit APIs for robust performance
  • Supports multiple character scripts including Chinese, Japanese, Korean, Devanagari, and Latin

Weaknesses

  • Mobile platforms only (iOS and Android); web and desktop are not supported
  • Non-Latin scripts are not yet natively supported on iOS

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires setting minimum iOS deployment target to 15.0, Swift Package Manager setup with linker flags, resource bundles for iOS, and optional Android build.gradle dependencies for specific non-Latin scripts.

final textRecognizer = TextRecognizer(script: TextRecognitionScript.latin);
final RecognizedText recognizedText = await textRecognizer.processImage(inputImage);
String text = recognizedText.text;
textRecognizer.close();

Alternatives

Packages that do the same job and could replace google_mlkit_text_recognition.

Works with

Packages commonly used together with google_mlkit_text_recognition: ones it builds on, ones built on it, and its own family.