pdf_ocr_ondevice 1.2.2
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_editor1.2.0.
0.1.0 #
- Initial release. On-device, downloadable OCR for
dart_pdf_editor. PdfOcrModelManagerdownloads, caches (under the app-support directory), integrity-checks (SHA-256), and removes OCR model bundles, reporting progress as bytes arrive. Native platforms only (isSupportedis false on the web).OnDeviceOcrEngineimplementsPdfOcrEngine, mapping a backend's pixel-space text lines into PDF user space.PdfEditor.applyOcrwrites an invisible, selectable layer with no per-page network call.OnnxOcrModelRunnerruns 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.ppOcrV5Mobiledescribes the recommended lightweight model; point its file URLs at a bundle you host (see the README).