pdf_ocr_ondevice 1.2.2 copy "pdf_ocr_ondevice: ^1.2.2" to clipboard
pdf_ocr_ondevice: ^1.2.2 copied to clipboard

On-device OCR engine for dart_pdf_editor that adds a selectable, searchable text layer to scanned PDFs with a downloadable PP-OCR ONNX model.

Changelog #

1.2.2 #

  • Fix on-device OCR model path staging on Windows so the downloaded PP-OCR ONNX model resolves correctly.

1.2.1 #

  • Add a package example and shorten the pubspec description for pub.dev scoring.

1.2.0 #

  • Downloadable on-device OCR package for the DartPDF app, with model-manager integration and native-platform OCR engine wiring.
  • Version bump to align with dart_pdf_editor 1.2.0.

0.1.0 #

  • Initial release. On-device, downloadable OCR for dart_pdf_editor.
  • PdfOcrModelManager downloads, caches (under the app-support directory), integrity-checks (SHA-256), and removes OCR model bundles, reporting progress as bytes arrive. Native platforms only (isSupported is false on the web).
  • OnDeviceOcrEngine implements PdfOcrEngine, mapping a backend's pixel-space text lines into PDF user space. PdfEditor.applyOcr writes an invisible, selectable layer with no per-page network call.
  • OnnxOcrModelRunner runs a PP-OCR detect+recognize pipeline on ONNX Runtime (det resize/normalize, DB box extraction, CRNN/CTC decode), all of the pre/post-processing in pure, unit-tested Dart.
  • PdfOcrModels.ppOcrV5Mobile describes the recommended lightweight model; point its file URLs at a bundle you host (see the README).
0
likes
160
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

On-device OCR engine for dart_pdf_editor that adds a selectable, searchable text layer to scanned PDFs with a downloadable PP-OCR ONNX model.

Repository (GitHub)
View/report issues
Contributing

Topics

#pdf #ocr #text-recognition #on-device #scanned-documents

License

Apache-2.0 (license)

Dependencies

crypto, dart_pdf_editor, flutter, http, onnxruntime, path_provider, pdf_document

More

Packages that depend on pdf_ocr_ondevice