A Flutter package for iOS and Android to show a preview of the camera and detect things with Google ML Vision.

This version is a copy taken from



Installation First, add camera_google_ml_vision as a dependency.

... dependencies: flutter: sdk: flutter camera_google_ml_vision: 1.1.0-nullsafety ...

Android Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.

minSdkVersion 21 ps: This is due to the dependency on the camera plugin.


  1. Example with Barcode CameraMlVision<List

CameraMlVision.instance.barcodeDetector().detectInImage CameraMlVision.instance.cloudLabelDetector().detectInImage CameraMlVision.instance.faceDetector().processImage CameraMlVision.instance.labelDetector().detectInImage CameraMlVision.instance.textRecognizer().processImage Then when something is detected the onResult callback is called with the data in the parameter of the function.

Exposed functionality from CameraController We expose some functionality from the CameraController class here a list of these :

value prepareForVideoRecording startVideoRecording stopVideoRecording takePicture Getting Started See the example directory for a complete sample app.

Features and bugs Please file feature requests and bugs at the issue tracker.

Technical Support For any technical support, don't hesitate to contact us. Find more information in our website