/Face-Detector

Face Detection using Firebase ML-Kit

Primary LanguageDart

Codacy Badge

Face Detection Using Firebase ML-Kit

Steps

  • First create a Firebase project and add the image_picker and firebase_ml_vision dependencies.
  • Use image_picker to get the image from camera/gallery & convert it into a format that can be understood by ML Kit.
  • Pass the converted image to the detector and get it to scan the image for possible faces.
  • The face detector will return a list of Face class which contains the Rect coordinates.
  • The Painter will then use these coordinates to draw a rectangular box around the faces using these coordinates