Hi I am using google face detection API, it detects the face and draws a rectangle over the face, I want to crop the face part only and save it as image.
Is there any API available to crop the detected face.
You have a lot of libraries here:
https://android-arsenal.com/tag/45
Related
I am using Android's ML Kit to detect faces which works really well however I want to detect a person's face (specifically their mouth) when their eyes are not visible in the image.
On the left is what ML Kit usually detects and on the right is the image I will be providing (only the nose and mouth are visible):
Currently when I provide an image which only shows the nose and mouth it really struggles to detect the face.
Note that if there is an alternative library (even cloud based) that does this then I am interested.
we were using camerax with mlkit for face detection. but now we need to move our face detection module to the dynamic feature module and mlkit is currently not supported. it is crashing at run time.
now I'm looking for a solution where I don't want to use firebase mlkit. is it possible to use camera2 API to detect faces and draw face rectangle on preview?.
I'm new in this subject but i tried a lots to detect face and draw face points but i'm not able to do face masking in live camera.
I tried Mood me SDK..
How can i implement face masking like snapchat and B612 etc.. application in android.
You can try using MirrorReality.
Is Google Vision API capable of detecting faces and landmarks every frame of the camera preview when the preview is showing?
If yes, could you please point me to a code snippet on how to do this? I already have the camera2 interface set up. Thanks!
It depends. The API detects faces and landmarks, but the amount of time required for each frame depends upon things like resolution and face size as well as hardware speed. When tracking faces in a real time preview, the API may need to skip some frames in order to keep up.
I used opencv face-detection sample android project to detect faces. Can I focus on detected face area in camera preview and focus that region using Android APIs?
Is there some other way to do it?
get the face area and show it in imageview in android. opencv gives the area of the face detected.