detect_image_edges 1.0.3
detect_image_edges: ^1.0.3 copied to clipboard
A flutter plugin to detect edges of objects, scan paper, detect corner, detect rectangle. It allows cropping of the detected object image and returns the path of the cropped image.
1.0.3 #
- Android: the flash/torch toggle is now shown on Android 14+ devices too (it was wrongly hidden above API 33); torch toggling is guarded and can't crash the scanner.
- Android: much more robust document/edge detection — automatic (median-based) Canny thresholds that adapt to lighting, removed the destructive pre-threshold, morphological close instead of a heavy dilate, and a stronger corner-selection pass with a frame-area guard.
- Android: fixed a native
Matmemory leak inSourceManager(the previous scan's image is now released on each new scan). - Android: the platform result no longer hangs the Dart
Futureon an unexpectedresultCode. - Android: safer image save (
try/catch, norecycle()on a shared bitmap). - Android: cleaned up crop-screen rotation — single source of truth (no more divergent rotated/cropped state) and removed a redundant bitmap allocation.
- No change to
minSdk(still Android 5.0 / API 21) — uses only existing OpenCV and Kotlin stdlib APIs.
1.0.2 #
detectEdgeanddetectEdgeFromGallerynow returnfalseinstead of throwing a cast error when the native side returnsnull(e.g. the user cancels the scan).- Typed the platform channel calls (
invokeMethod<bool>) and added API docs. - Bumped the iOS podspec version to match.
1.0.1 #
- Bug fix podspec file
1.0.0 #
- Initial release
- updated edge_detection