image_text_reader 2.0.1
image_text_reader: ^2.0.1 copied to clipboard
Offline OCR plugin for Flutter using PaddleOCR v5 and ONNX Runtime. Supports on-device text detection and recognition with no internet connection.
Image Text reader #
Formerly known as Flutter Local Ocr #
A fast, fully offline OCR plugin for Flutter powered by PaddleOCR v5 and ONNX Runtime.
Extract text from images entirely on-device with no internet connection required.
Features #
- Fully offline
- Native Android implementation
- Powered by PaddleOCR v5
- Detection OCRv6
- Recognition OCRv5
- ONNX Runtime inference
- Fast image processing
- No cloud APIs
- No usage limits
- Easy Flutter API
Installation #
dependencies:
image_text_reader: ^1.0.0
Android #
No additional setup required.
Usage #
final result = await FlutterLocalOcr.extractText(imagePath);
print(result.text);
Example #
File image = File(path);
final result =
await ImageTextReader.extractText(image.path);
print(result.text);
Output #
The quick brown fox
Jumped over the lazy dog
Performance #
Runs entirely on-device.
No internet required.
Typical processing time:
| Image | Time |
|---|---|
| Receipt | ~150 ms |
| Recipe | ~250 ms |
| A4 document | ~400 ms |
Performance varies by device.
Platform Support #
| Platform | Status |
|---|---|
| Android | ✅ |
| iOS | 🚧 Planned |
| Windows | 🚧 Planned |
| macOS | 🚧 Planned |
| Linux | 🚧 Planned |
Roadmap #
- Improved preprocessing
- Multi-language recognition
- Confidence scores
- Bounding boxes
- PDF OCR
- Batch processing
Contributing #
Pull requests and feature suggestions are welcome :). Edit and use in good health and most importantly: Have fun with it!
License #
MIT License.