processImage method

Future<VisionText> processImage(
  1. GoogleVisionImage visionImage
)

Detects VisionText from a GoogleVisionImage.

Implementation

Future<VisionText> processImage(GoogleVisionImage visionImage) async {
  assert(!_isClosed);

  _hasBeenOpened = true;

  final reply = await GoogleVision.channel.invokeMapMethod<String, dynamic>(
    'TextRecognizer#processImage',
    <String, dynamic>{
      'handle': _handle,
      'options': <String, dynamic>{},
    }..addAll(visionImage._serialize()),
  );

  return VisionText._(reply!);
}