mlkit_demo icon indicating copy to clipboard operation
mlkit_demo copied to clipboard

[Deprecated] Example app using mlkit with a live camera view

[Deprecated] See firebase_ml_vision example app for updated Live Camera Preview examples.

Flutter Live Camera with ML Kit Example Project

This project displays a live camera preview that highlights detected barcodes/faces/labels/text using ML Kit for Firebase.

How to use with your own project

  1. Add Firebase to your app. You can follow instruction here for iOS and android. You only need to follow the instructions to the point of including the config file. The firebase_ml_vision plugin will have the sdk already included.

  2. Include latest versions of the camera and firebase_ml_vision plugins in your project and follow instructions on including camera access permissions. Pay close attention to the README.md of both plugins to make sure everything is properly setup.

  3. Include lib/main.dart, lib/utils.dart, and lib/detector_painters.dart in your project's lib folder.