detectEdgeFromGallery static method

Future<bool> detectEdgeFromGallery(
  1. String saveTo, {
  2. String? androidCropTitle,
  3. String androidCropBlackWhiteTitle = "Black White",
  4. String androidCropReset = "Reset",
  5. String? scanFrameBorderColor,
  6. String? scanFrameBodyColor,
  7. double? scanFrameThickness,
})

Call this method to scan the object edge from a gallery image.

Implementation

static Future<bool> detectEdgeFromGallery(
  String saveTo, {
  String? androidCropTitle,
  String androidCropBlackWhiteTitle = "Black White",
  String androidCropReset = "Reset",
  String? scanFrameBorderColor,
  String? scanFrameBodyColor,
  double? scanFrameThickness,
}) async {
  return await _channel.invokeMethod('edge_detect_gallery', {
    'save_to': saveTo,
    'crop_title': androidCropTitle,
    'crop_black_white_title': androidCropBlackWhiteTitle,
    'crop_reset_title': androidCropReset,
    'from_gallery': true,
    'scan_frame_border_color': scanFrameBorderColor,
    'scan_frame_body_color': scanFrameBodyColor,
    'scan_frame_thickness': scanFrameThickness,
  });
}