annotateFile method

Future<BatchAnnotateFilesResponse> annotateFile({
  1. ImageContext? imageContext,
})

Helper methods used by most of the cli commands.

Implementation

Future<BatchAnnotateFilesResponse> annotateFile({
  ImageContext? imageContext,
}) async {
  return googleVision.file.annotate(requests: [
    AnnotateFileRequest(
      inputConfig: InputConfig.fromBuffer(imageBytes.buffer),
      features: getFeatures(),
      imageContext: imageContext,
      pages: pages,
    )
  ]);
}