android-camera2
Android camera2 face detection
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
How to use Android’s camera or camera2 API to support old and new API versions without deprecation notes?
Even though the old camera API is marked as deprecated, it is still fully functional, and will remain so for quite a while (as nearly all camera-using applications on the Play Store use it currently). You’ll have to ignore Android Studio’s complaints about it being deprecated, but if you want to support Android versions earlier … Read more