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.
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.
- apple_vision_recognize_text
Flutter plugin to use Apple Vision Text Recognition in an image or live camera feed.
56Compare - flutter_whisper_kit
On-device speech recognition and transcription using WhisperKit on iOS and macOS
42Compare
Works with
Packages commonly used together with google_mlkit_text_recognition: ones it builds on, ones built on it, and its own family.
- google_mlkit_commonsgoogle_mlkit_text_recognition depends on itCommon classes and utility methods for Google's ML Kit plugins
- google_mlkit_barcode_scanningSame familyA Flutter plugin to use Google's ML Kit Barcode Scanning on Android and iOS.
- google_mlkit_face_detectionSame familyFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- google_mlkit_translationSame familyFlutter plugin for Google's ML Kit On-Device Translation.
- google_mlkit_selfie_segmentationSame familyFlutter plugin to use Google's ML Kit Selfie Segmentation API.
- google_mlkit_language_idSame familyDetermine the language of a text string using Google's ML Kit.
- google_mlkit_pose_detectionSame familyFlutter plugin for Google ML Kit Pose Detection on Android and iOS.
- google_mlkit_document_scannerSame familyFlutter plugin to use Google's ML Kit document scanner API to digitize physical documents.