Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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..

like image 615
pradeep Avatar asked May 10 '12 05:05

pradeep


1 Answers

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

some

For FaceDetector you can see these links

  1. Link 1
  2. 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.

like image 168
K_Anas Avatar answered Sep 27 '22 17:09

K_Anas