Google ML Kit Vision Plugin
A Flutter plugin to use the capabilities of on-device Google ML Kit Vision APIs
Usage
To use this plugin, add google_ml_vision
as a dependency in your pubspec.yaml file.
Using an ML Vision Detector
1. Create a GoogleVisionImage
.
Create a GoogleVisionImage
object from your image. To create a GoogleVisionImage
from an image File
object:
2. Create an instance of a detector.
You can also configure all detectors, except TextRecognizer
, with desired options.
3. Call detectInImage()
or processImage()
with visionImage
.
4. Extract data.
a. Extract barcodes.
b. Extract faces.
c. Extract labels.
d. Extract text.
5. Release resources with close()
.
Getting Started
See the example
directory for a complete sample app using Google Machine Learning.