flutter_paddle_ocr 0.0.2 copy "flutter_paddle_ocr: ^0.0.2" to clipboard
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: FlutterPaddleOcrWeb binds paddleocr-js (ONNX Runtime Web + OpenCV.js) via dart:js_interop. PP-OCRv5 models auto-fetched from the CDN.
  • API refactor (breaking): PaddleOcr.create now takes a sealed ModelSource (ModelSource.filePaths(...) for native, ModelSource.bundled(...) for web) instead of positional detModelPath / recModelPath / labelPath / clsModelPath arguments.
  • Android implementation moved behind FlutterPaddleOcrPlatform so iOS and Web can register alongside it.
  • Example app branches between mobile/web via kIsWeb; ships prepare_web.sh for 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).
1
likes
150
points
118
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

On-device OCR for Flutter, powered by PaddleOCR + Paddle Lite (Android/iOS) and paddleocr-js (web).

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on flutter_paddle_ocr

Packages that implement flutter_paddle_ocr