detectLabels method

TransformationData detectLabels(
  1. int? maximumLabels
)

Method for Detect content and text in images

  • maximumLabels : Maximum Labels (Default: 5)

Returns TransformationData.

Implementation

TransformationData detectLabels(
  int? maximumLabels,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (maximumLabels != null) {
    values['l'] = maximumLabels.toString();
  }

  return TransformationData(
      plugin: 'googleVis', name: 'detectLabels', values: values);
}