edge_detection 1.0.9 edge_detection: ^1.0.9 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.
A flutter plugin to detect edges of objects, scan paper, detect corners, detect rectangles. It allows cropping of the detected object image and returns the path of the cropped image.
iOS 10.0 or higher is needed to use the plugin. If compiling for any version lower than 10.0 make sure to check the iOS version before using the plugin. Change the minimum platform version to 10 (or higher) in your
Add below permission to the
- one with the key
Privacy - Camera Usage Descriptionand a usage description.
Or in text format add the key:
<key>NSCameraUsageDescription</key> <string>Can I use the camera please?</string>
The plugin code is written in kotlin 1.5.31 so the same has to be set to the android project of yours for compilation.
Change the kotlin_version to 1.5.31 in your
ext.kotlin_version = '1.5.31'
Change the minimum Android SDK version to 21 (or higher) in your
Add dependency： #
Please check the latest version before installation.
dependencies: flutter: sdk: flutter edge_detection: ^1.0.9
Add the following imports to your Dart code: #
//Make sure to await the call to detectEdge. String imagePath = await EdgeDetection.detectEdge;
Using these native implementation