flutter_receipt_scanner 0.5.0
flutter_receipt_scanner: ^0.5.0 copied to clipboard
On-device receipt capture (camera + gallery) with crop, EXIF, auto-rotate, and Korean/English OCR quality gating.
Changelog #
0.5.0 #
Added #
- Multilingual OCR Support: Added
ocrLanguagestoScanReceiptOptions(default:['ko-KR', 'en-US']). - Added
FlutterReceiptScanner.getOcrCapabilities()to query script family installation status (Android) or active Vision framework support (iOS). - Added
OcrLanguageException(and native error codesINVALID_OCR_LANGUAGE,OCR_LANGUAGE_NOT_SUPPORTED,OCR_LANGUAGE_COMBINATION_NOT_SUPPORTED,OCR_MODEL_INSTALL_FAILED) for capability rejection without charging a capture. - Android: The scanner now dynamically downloads and manages ML Kit non-Latin language modules via Google Play Services.
- Added capabilities inspection UI and BCP 47 language input to the example app.
0.4.0 #
Added #
ScanReceiptResult.discardedPageCountsurfaces scanner pages natively dropped beyondmaxPages(iOS-only in practice — VisionKit cannot enforce a page limit in its UI).
Changed #
mergeOcrPagesnever reportsMergedOcrResult.isComplete == truewhen pages were natively discarded, even if every returned seam is proven.
0.3.0 #
Added #
- Opt-in multi-page OCR text merging through
scan(mergeOcrPages: true). - Example controls and result diagnostics for trying multi-page OCR merging.
ScanReceiptResult.mergedOcrdiagnostics for merged text, page completeness, and unmatched page boundaries.- Deterministic 11:1 long-receipt fixtures and a pinned public receipt dataset manifest for offline benchmarking.