In this article, we’ll explore the basics of detecting faces within an image with Firebase ML Kit and make it visible with the help of CustomPainter.
Workflow
- Get an image and convert it into a format that can be understood by our ML Kit.
- Feed the image to the detector and get it to scan the image for possible faces.
- Pull out the faces found and feed it to the CustomPainter.
- Allow the CustomPainter to get the coordinates of the faces and then use them to draw rects.
#flutter #firebase #mobile-apps #dart #image