recognizeRegionWithVision method

Pointer<Char> recognizeRegionWithVision(
  1. Pointer<Char> imagePath,
  2. double cropX1,
  3. double cropY1,
  4. double cropX2,
  5. double cropY2,
  6. Pointer<Char> languages,
)

Recognize text from a cropped region using Apple Vision Coordinates are in original image space

Implementation

ffi.Pointer<ffi.Char> recognizeRegionWithVision(
    ffi.Pointer<ffi.Char> imagePath,
    double cropX1, double cropY1,
    double cropX2, double cropY2,
    ffi.Pointer<ffi.Char> languages) {
  return _recognizeRegionWithVision(imagePath, cropX1, cropY1, cropX2, cropY2, languages);
}