detect_image_edges 1.0.3 copy "detect_image_edges: ^1.0.3" to clipboard
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 Mat memory leak in SourceManager (the previous scan's image is now released on each new scan).
  • Android: the platform result no longer hangs the Dart Future on an unexpected resultCode.
  • Android: safer image save (try/catch, no recycle() 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 #

  • detectEdge and detectEdgeFromGallery now return false instead of throwing a cast error when the native side returns null (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
1
likes
150
points
51
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on detect_image_edges

Packages that implement detect_image_edges