labelDetection method

Future<List<EntityAnnotation>> labelDetection(
  1. JsonImage jsonImage, {
  2. int maxResults = 10,
})
inherited

Labels can identify general objects, locations, activities, animal species, products, and more. Labels are returned in English only.

Implementation

Future<List<EntityAnnotation>> labelDetection(
  JsonImage jsonImage, {
  int maxResults = 10,
}) async {
  final annotatedResponses = await detection(
    jsonImage,
    AnnotationType.labelDetection,
    maxResults: maxResults,
  );

  return annotatedResponses.labelAnnotations;
}