doc_scan_lite 0.0.2 copy "doc_scan_lite: ^0.0.2" to clipboard
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 single onCaptured callback.
  • Customization hooks on DocScannerView: controlsBuilder, resultBuilder, loadingBuilder, errorBuilder, overlay colors, showResultPreview, enableManualAdjust, and an optional injected DocScanController.
  • Add DocScanController.latestFrame and warpFrame() / 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 / decodeCapturedDocument helpers so consumers no longer hand-roll grayscale-to-ui.Image decoding. The RGBA expansion runs in a background isolate to avoid janking the UI thread on large frames.
  • Document that CapturedDocument carries 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 DocScanController with frame throttling and corner stability smoothing.
  • DocScannerPreview live overlay widget and QuadCornerEditor manual correction widget.
  • Android and iOS platform support.
3
likes
160
points
186
downloads

Documentation

API reference

Publisher

verified publisherchinmaysinghmodak.com

Weekly Downloads

Lightweight document scanner plugin: live edge detection and perspective crop via classical CV over FFI. No ML models, no Play Services, no OpenCV.

Repository (GitHub)
View/report issues

Topics

#document-scanner #computer-vision #image-processing #camera #ffi

License

MIT (license)

Dependencies

camera, ffi, flutter, plugin_platform_interface

More

Packages that depend on doc_scan_lite

Packages that implement doc_scan_lite