edge_detection
1.1.3, released 3 years ago by an unverified publisher
Flutter plugin to detect object edges, scan paper, and crop images.
What it does
A Flutter plugin that detects edges of objects, scans paper, and detects rectangles or corners using native libraries. It allows users to crop the detected object image and returns the file path of the cropped result.
AI-written summary of version 1.1.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need document scanning functionality in your app.
- You want to automatically detect edges and crop scanned paper images.
Skip it when
- You only need basic image picking without edge detection.
- You require cross-platform support beyond Android and iOS.
Strengths
- Provides live camera edge detection and gallery selection.
- Uses robust native implementations (WeScan and SmartPaperScan).
Weaknesses
- Requires manual configuration for native iOS and Android build requirements (such as minimum SDK and Kotlin/Podfile setups).
- Limited platform support (only Android and iOS).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires setting minimum iOS version to 13+, adding camera and photo library permissions in Info.plist, configuring Podfile for WeScan, and updating Android minimum SDK to 21 and Kotlin version to 1.8.0.
String imagePath = join((await getApplicationSupportDirectory()).path, 'image.jpeg');
bool success = await EdgeDetection.detectEdge(imagePath,
canUseGallery: true,
androidScanTitle: 'Scanning',
androidCropTitle: 'Crop',
androidCropBlackWhiteTitle: 'Black White',
androidCropReset: 'Reset',
);Alternatives
Packages that do the same job and could replace edge_detection.
- flutter_genius_scan
Flutter plugin for the Genius Scan SDK for iOS and Android. It allows scanning paper documents using a smartphone camera.
89Compare - mlkit_scanner
Flutter plugin to detect barcodes using Google MLKit API for Android and iOS
69Compare - scan
Scan QR codes and barcodes within the widget tree and decode images from file paths.
50Compare