detectEdge static method
Future<bool>
detectEdge(
- String saveTo, {
- bool canUseGallery = true,
- String androidScanTitle = "Scanning",
- String? androidCropTitle,
- String androidCropBlackWhiteTitle = "Black White",
- String androidCropReset = "Reset",
- String? scanFrameBorderColor,
- String? scanFrameBodyColor,
- double? scanFrameThickness,
- bool autoCapture = false,
Call this method to scan the object edge in live camera.
Implementation
static Future<bool> detectEdge(
String saveTo, {
bool canUseGallery = true,
String androidScanTitle = "Scanning",
String? androidCropTitle,
String androidCropBlackWhiteTitle = "Black White",
String androidCropReset = "Reset",
String? scanFrameBorderColor,
String? scanFrameBodyColor,
double? scanFrameThickness,
bool autoCapture = false,
}) async {
return await _channel.invokeMethod('edge_detect', {
'save_to': saveTo,
'can_use_gallery': canUseGallery,
'scan_title': androidScanTitle,
'crop_title': androidCropTitle,
'crop_black_white_title': androidCropBlackWhiteTitle,
'crop_reset_title': androidCropReset,
'scan_frame_border_color': scanFrameBorderColor,
'scan_frame_body_color': scanFrameBodyColor,
'scan_frame_thickness': scanFrameThickness,
'auto_capture': autoCapture,
});
}