webDetection method

Future<WebDetection?> webDetection(
  1. JsonImage jsonImage, {
  2. int maxResults = 10,
})

Web Detection detects Web references to an image.

Implementation

Future<WebDetection?> webDetection(
  JsonImage jsonImage, {
  int maxResults = 10,
}) async {
  final annotatedResponses = await detection(
    jsonImage,
    AnnotationType.webDetection,
    maxResults: maxResults,
  );

  return annotatedResponses.webDetection;
}