[Deprecated] See firebase_ml_vision example app for updated Live Camera Preview examples.
This project displays a live camera preview that highlights detected barcodes/faces/labels/text using ML Kit for Firebase.
-
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. -
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. -
Include
lib/main.dart
,lib/utils.dart
, andlib/detector_painters.dart
in your project's lib folder.