VisionImage.fromFile constructor
VisionImage.fromFile(
- String path
Decodes a file with Google's image loader, EXIF orientation included.
path is a file on native platforms and a URL, resolved against the
page, in browsers.
Implementation
VisionImage.fromFile(String path)
: path = path,
pixels = null,
browserFrame = null,
width = null,
height = null,
format = null,
bytesPerRow = null,
_produce = null {
if (path.isEmpty || path.contains('\u0000')) {
throw ArgumentError.value(path, 'path', 'Invalid path');
}
}