detectLabels method

TransformationData detectLabels(
  1. int? maximumlabels,
  2. int? minpimumconfidence
)

Method for Detect objects and text in images @param Maximum Labels int (Default: 5) @param Minimum Confidence int (Default: 55) @return TransformationData.

Implementation

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

  var values = <String, String>{};

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

  if (minpimumconfidence != null) {
    values['c'] = minpimumconfidence.toString();
  }

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