android - eye detection even without face detection during camera preview - android

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/

Related

Android Camera API Advance Features

I am to start working on an Android Custom Camera App. I just want to know is there any way to add the following features to my app:
Beauty Level
Red Eye Removal
Acne Removal
I just want to know that if it is possible, can someone suggest or give me any idea how can code it into my app.
Though I am familiar with Android Camera API functions, and worked on several simple custom camera apps.
Thanks in advance
For beginning, you can use FaceDetector to detect faces in the picture.For example , you can remove Red eyes by searching for Red pixels in the picture and try to decrease red level of them.And also , you can use OpenCV for detecting eyes.I found a sample for eye detection in Here

Library to detect facepoints from .jpg in 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

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 Face Detection using OpenCV/JavaCV

I want to know how I implement Android Face Detection using OpenCV/JavaCV. Any one have idea about that or have code please comment on this or put the code. I want get faces from the Phone Gallery and detect them..
For face detectiion you can use the built in FaceDetector in the Android SDK, It returns face positions and angles in BMPs. But it's not very fast.
You can Also use the javaCV face detection but before to start i recommend you to see this article to see advantages and constarint of some API that you can use and also compare Performance
For FaceDetector you can see these links
Link 1
Link 2
Here's a realtime face detection sample using FaceDetector and OpenGL (draws rectangles) which works in Android 2.2
You can also use OpenCV in Android
You'd better try this on Linux (I've tried it on Windows, but failed).
Finally JavaCV (strongly recommended)
There is a sample code of realtime face detection using the camera. See "javacv-src-*.zip" on the download page.
The timing figures on the screenshot from K_Anas are shockingly slow... my app on my HTC Desire S with the OpenCV library (here) does 4+ fps...
My demo app on Play Store (eurgh) is here. In the menu the first item takes you to my web page for the app with source code snippets. 1) install OpenCV, 2) get the supplied samples running, 3) edit "Tutorial 2 OpenCVSamples" and drop my code snippets into the frame processing loop.
I claim no credit for the app, it is just a slightly enlarged and adjusted version of the sample which comes with the OpenCV library.

Android face detector using android camera

I've read its possible to use the built in android face detector to find the position of faces in a bitmap. Does anyone know of any examples of doing this using the camera as an input?
Its possible with the Face Detection APIs in ICS. Refer the camera section on this page:
http://developer.android.com/sdk/android-4.0.html
You must register a FaceDetectionListener and then call camera.startFaceDetection(). Please read the link above for more details.
I wrote some sample code. It isn't perfect since its Work In Progress but the face detection bit works just fine:
https://docs.google.com/open?id=0B2Nu5U2Cz81qZExGQ25sWVdRd21IOExUUTZsZzFoZw

Categories

Resources