id_document_scanner 1.0.1
id_document_scanner: ^1.0.1 copied to clipboard
Paraguayan ID card scanner: guided camera overlay, exact card crop, offline MRZ OCR and screen/print detection. Pure Dart, no ML Kit.
1.0.1 #
- Live detection tolerates a card held a few degrees off (tilted edge search), a finger over one side and low contrast with the background; it prefers the outermost card edge over lines printed inside the card.
- Looser
DetectionConfigdefaults:edgeTolerance0.10,maxSkew0.08,outerSearchBand0.14,minEdgeCoverage0.6. A small card now reportstooFarinstead ofnotAligned. - Front verification matches the header at several scales, so both designs pass with a slightly imprecise crop.
- Back verification searches the MRZ over the whole lower half of the card when it is not in the template box.
DocumentCapture.template(andcropFields()) follows the design the verification recognised (newdetectedType).- Legacy front field boxes recalibrated on a full-resolution card.
showDebugInfoshows a non-personal summary of the last capture's checks (crop, screen/printout scores, header scores, masked MRZ attempts). NewDocumentVerification.diagnosticsandIdDocumentScannerController.lastCheckDiagnostics.
0.1.1 #
- Shorter package description.
- Fix an analyzer warning in the controller and format the code.
0.1.0 #
- Initial release.
- Camera scanner with a customizable, animated card guide that turns green when the card is aligned, sharp and well lit; auto or manual capture.
- Exact card crop: edge refinement and perspective rectification to the ID-1 aspect.
- Agnostic flow control:
CaptureValidatorcallback (e.g. your backend) decides whether to move from the front to the back. - Paraguayan identity card verification (current and legacy designs): front header matching and offline MRZ OCR (ICAO 9303 TD1) of the back.
- Rejection of photos of screens and colour printouts (moiré, sub-pixel stripes, halftone).