Library to detect facepoints from .jpg in Android - android

I am making an app to calculate facial symmetry by comparing distance between points to golden ratio.So far,I tried
hardware.Camera.Face - gives face bounds and co-ords of eye and mouth centre.
media.FaceDetector.Face - it only gives face bounds and eye location.
I need face bounds PLUS eye,nose,mouth and ear bounds.
If anyone have used a library which can detect face points in image, please mention the name. Also, in your opinion how fast and accurate is it ?

OpenCV might be a good consideration, have a look at this example, http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/

OpenCV is a very powerful library for doing all kinds of face recognition and face detection work! Check it out

You might also try the new Android face detector, which detects several facial landmarks:
https://developers.google.com/vision/detect-faces-tutorial

Related

Face Detection Android

I've got a problem with Google's MLKit face detector, as it returns a face even if the face is half-covered by something and this makes the face recognition model I use to think it's a new face, so I would like to know a solution for this problem, maybe a different face detector or another solution using MLKit face detector.
Thanks in advance.
ML kit works on data. Your results will be more accurate as much as more data you will provide to your model.If its taking half covered image it will also be beneficial for your trained model. You can train model by providing many images like with eye close, eyes open, left face, right face, look down, look up, zoom or half face covered etc.Once your model have enough data then it will recognized your even if you are wearing a face mask or even if your eyes were closed.
According to my opinion MLKit is much enough to implement face detection in your app. They are also improving it contineously. Happy Coding :)

How can I detect the neck portion of human face using google vision api?

I am trying to explore various face points and add some filters like msqrd/snapchat using google vision api in android.Can anyone help me with detecting the neck portion of the human face?
Simply stated, you can't. But you of course can do some educated guesses.
You have the face outline, with its' size, position, yaw and pitch. The size of the neck is somewhat related to the size of the face and it's always under the face. Knowing that, you can draw an outline. This will not determine if it's f.i. covered by a scarf.

How to measure distance of an object or face from camera

I am working on an application which actually detects the objects or faces and measures the distance from camera to that object or face. I complete the face detection area, now is there any way to measure the distance between detected face from the point where camera is located.
Please Provide any link or source code I have searched a lot but all in vain.
Essentially, by tracking the distance between the user's eyes, and how this changes as the face is closer or further from the camera, a fairly accurate idea of the distance from the camera can be obtained.
Android has a built in face detector class that will handle determining where the face is, and even calculate eye separation for you.
A guy did this for his thesis, and posted the code on github along with some nice images outlining what it does, a demo video and a link to the paper he wrote.

How to detect eyes and mouth in android

For detecting face I am reffering to http://developer.android.com/reference/android/media/FaceDetector.Face.html#. I am able to find eye differece and midpoint.But I am unable to show mouth position(lip position).
You can only calculate approximate distance to mouth, manually.
This answer in link tell you more detailed: Android - Face feature detection
Also i recommend you use OpenCV for this purposes.
opencv is best lib for working with face and eye Detection Using opencv you can do:
http://opencv-code.com/tutorials/eye-detection-and-tracking/
Example Code:
http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/

android - eye detection even without face detection during camera preview

is there any library for detecting an eye in a given rectangle (and the eye's size) , while the camera preview is still showing its content (non stop) ?
i need to find an easy way to acheive this . i've found out that there is an API for face detection , and that on android 4 they also added eyes detection , but only if it found a face , yet i need to find an eye even without any face.
You could always ook at the source code for Android and see how they do Eye detection.
Otherwise check out this question: OpenCV eye tracking on Android
If you want to see an example of opencv on android, click on this open source code.
opencv is best lib for working with face and eye Detection Using opencv you can do:
http://opencv-code.com/tutorials/eye-detection-and-tracking/
Example Code:
http://romanhosek.cz/android-eye-detection-and-tracking-with-opencv/

Categories

Resources