FaceDetector
Want to detect human faces on a camera preview stream in real time? Well, you came to the right place.
FaceDetector is a library which:
- detects faces
- works on Android
- very simple to use
- works greatly with Fotoapparat
- you can use it with whichever camera library or source you like
- uses C++ core which can easily be ported to iOS (we have plans for that)
Detecting faces with Fotoapparat
is as simple as:

How it works
Step One (optional)
To display detected faces on top of the camera view, set up your layout as following.
Step Two
Create FaceDetectorProcessor
:
Java:
or Kotlin:
Step Three
Attach the processor to Fotoapparat
And you are good to go!
Set up
Add dependency to your build.gradle