flutter_paddle_ocr 0.0.2
flutter_paddle_ocr: ^0.0.2 copied to clipboard
On-device OCR for Flutter, powered by PaddleOCR + Paddle Lite (Android/iOS) and paddleocr-js (web).
0.0.2 #
- iOS support: arm64 device builds wrapping Paddle-Lite-Demo's ppocr pipeline. Simulator is blocked by Paddle Lite v2.10 shipping only an arm64-device
.a. - Web support:
FlutterPaddleOcrWebbinds paddleocr-js (ONNX Runtime Web + OpenCV.js) viadart:js_interop. PP-OCRv5 models auto-fetched from the CDN. - API refactor (breaking):
PaddleOcr.createnow takes a sealedModelSource(ModelSource.filePaths(...)for native,ModelSource.bundled(...)for web) instead of positionaldetModelPath/recModelPath/labelPath/clsModelPatharguments. - Android implementation moved behind
FlutterPaddleOcrPlatformso iOS and Web can register alongside it. - Example app branches between mobile/web via
kIsWeb; shipsprepare_web.shfor bundling paddleocr-js.
0.0.1 #
- Initial release — Android only (arm64-v8a).
- Reuses PaddleOCR's
deploy/android_demo/C++/Java verbatim (Paddle Lite v2.10). - Dart API:
PaddleOcr.create,recognize,dispose;OcrResult,CpuPower. - iOS is a stub; all methods return
PlatformException(UNIMPLEMENTED).