You can check the ML-KIT from Google:
Detect faces with ML Kit on Android
And there is a related sample app:
vision-quickstart
or if you are using the camera2 there is a working example:
Camera2Vision
You can check the ML-KIT from Google:
Detect faces with ML Kit on Android
And there is a related sample app:
vision-quickstart
or if you are using the camera2 there is a working example:
Camera2Vision