platform_text_recognition 0.2.0
platform_text_recognition: ^0.2.0 copied to clipboard
On-device OCR for Flutter. Uses Apple Vision on iOS (no ML Kit / SPM deps) and Google ML Kit Text Recognition on Android.
0.2.0 #
- Breaking (Android): Only the Latin ML Kit model is bundled by default (~38 MB). Chinese, Devanagari, Japanese, and Korean models are opt-in via Gradle dependencies in the host app.
- Clear
SCRIPT_NOT_AVAILABLEerror when a non-Latin script is used without the matching dependency. - Example app: script picker dropdown and optional ML Kit deps for demo purposes.
0.1.0 #
- Initial release.
- On-device OCR using Apple Vision on iOS and Google ML Kit on Android.
PlatformTextRecognizer.recognizeText()andrecognizeTextFromImage()top-level helper.- Multi-script support via
TextRecognitionScript(Latin, Chinese, Devanagari, Japanese, Korean). - Optional BCP-47 language hints for Apple Vision on iOS (
languagesparameter). - Example app with image picker demo.