landmarkDetection method

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

Landmark Detection detects popular natural and human-made structures within an image.

Implementation

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

  return annotatedResponses.landmarkAnnotations;
}