extract method

TransformationData extract(
  1. bool? detectOnly
)

Method for OCR Module

  • detectOnly : Detect Only (Default: false)

Returns TransformationData.

Implementation

TransformationData extract(
  bool? detectOnly,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (detectOnly != null) {
    values['detect_only'] = detectOnly.toString();
  }

  return TransformationData(plugin: 'ocr', name: 'extract', values: values);
}