doc_scan_lite 0.0.2
doc_scan_lite: ^0.0.2 copied to clipboard
Lightweight document scanner plugin: live edge detection and perspective crop via classical CV over FFI. No ML models, no Play Services, no OpenCV.
0.0.2 #
- Add
DocScannerView, a batteries-included scanner widget that owns the camera, lifecycle, live overlay, capture button, optional manual corner-adjust step, and result preview — reducing a full integration to a singleonCapturedcallback. - Customization hooks on
DocScannerView:controlsBuilder,resultBuilder,loadingBuilder,errorBuilder, overlay colors,showResultPreview,enableManualAdjust, and an optional injectedDocScanController. - Add
DocScanController.latestFrameandwarpFrame()/warpLatestWith()to support a manual corner-correction flow on the frozen frame. - Add
DocScanController.pause()/resume()so detection can be suspended while a modal covers the live preview, instead of burning CPU off-screen. - Add
DocScanController.onDetectionError; background detection failures are no longer swallowed silently. - Add
decodeGrayscale/decodeCapturedDocumenthelpers so consumers no longer hand-roll grayscale-to-ui.Imagedecoding. The RGBA expansion runs in a background isolate to avoid janking the UI thread on large frames. - Document that
CapturedDocumentcarries raw single-channel grayscale pixels, not an encoded image. - Lower minimum Dart SDK to 3.10.0.
0.0.1 #
- Initial release: classical CV document edge detection and perspective crop (Sobel/Canny/contour tracing/Douglas-Peucker/homography), no ML models, no Play Services dependency.
- Isolate-based
DocScanControllerwith frame throttling and corner stability smoothing. DocScannerPreviewlive overlay widget andQuadCornerEditormanual correction widget.- Android and iOS platform support.