Android face detector using android camera - android

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

Related

can we use camera for real time face detection in android app without having a capturing option in them

I am working on an android application which detect faces in real time and for that i have to make a camera to scan faces but i do not want to give a capture facility in that camera and after detection the next option of filters will come automatically. So, is this possible?
Yes of course,it is possible and OpenCV do that all for you... follow the given links:
1. Demo:
2. OpenCV sample code
3. OpenCV
Thanks,

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

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/

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: Acessing front facing camera for Android 2.3

There really seems to be no information on how to acess the front facing camera on android phones (gingerbread).
Could someone please point me to a page or post that explains how it's done?
Thanks!
Here is an example on how to access different cameras and switch between them: CameraPreview
The link is not accessible right now, Google has moved the Sample Project.
Please import a Sample Project and find it at:
ApiDemos/com.example.android.apis.graphics/CameraPreview.java
Mat be this might help you How to use Front Facing Camera on Samsung Galaxy S
As for 2.3 Camera you can try this method passing the camera ID

Categories

Resources