1. Introduction
Description: Using this extension you can use AI features of ML Kit to scan documents.Once the document scanner flow is triggered from your app, users retain full control over the scanning process. They can optionally crop the scanned documents, apply filters, remove shadows or stains, and easily send the digitized files back to your app.
Latest Version: 2
Released: 2024-04-04T18:30:00Z
Last Updated: 2024-05-06T18:30:00Z
Key Features:
- High-quality and consistent user interface for digitizing physical documents.
- Automatic capture with document detection.
- Accurate edge detection for optimal crop results.
- Automatic rotation detection to show documents upright.
- Editing functionalities to crop, apply filters, remove shadows, clean stains, and seamlessly send digitized files back to your app.
- On-device processing, preserving user’s privacy.
- No camera permission is needed from your app.
2. Blocks
3. Docs
Events
ErrorOccurred | Event raised when any error occurserrorMsg | text |
GotScanResult | Event raised after getting scanning resultspageCount | number pagesList | list pdfUri | text |
ScanCancelled | Event raised when scanning is cancelled by user |
Methods
Initialize | Initialize Scanner with specified parametersgalleryImport | boolean pageLimit | number resultFormat | text scannerMode | number |
Scan | Launch Document Scanner activity |
ClearCache | Clear cache from device |
Properties
ResultFormatJPEG |
Property Type : read-only Accepts : text |
ResultFormatPDF |
Property Type : read-only Accepts : text |
ResultFormatBoth |
Property Type : read-only Accepts : text |
ScannerModeFull | Adds ML-enabled image cleaning capabilities (erase stains, fingers, etc…) to the BaseWithFilter mode Property Type : read-only Accepts : number |
ScannerModeBase | Basic editing capabilities (crop, rotate, reorder pages, etc) Property Type : read-only Accepts : number |
ScannerModeBaseWithFilter | Adds image filters (grayscale, auto image enhancement, etc…) to the Base mode. Property Type : read-only Accepts : number |
4. Usages
5. Samples and Demos
Scanner Modes
Example results
Original picture | Scanned document with perspective corrected, wrinkle removed and grayscale filter applied |
---|---|
Demo video
6. Purchase
Thank you.
Hope it helps!