annotateImage method

Helper methods used by most of the cli commands.

Implementation

Future<BatchAnnotateImagesResponse> annotateImage() {
  final requests = [
    AnnotateImageRequest(
      jsonImage: JsonImage(byteBuffer: imageBytes.buffer),
      features: getFeatures(),
    )
  ];

  return googleVision.image.annotate(requests: requests);
}