Android Face recognition & get similar faces from the database

Ramesh Jaya picture Ramesh Jaya · Jan 28, 2013 · Viewed 16.6k times · Source

In my application I'm going to implement an image search like Google image search. Only difference is here I'm searching only for human faces. Here's how it goes..

  • user take a picture of a person using the camera.
  • my app should identify the face of that person and get details from the image regarding the face (eg: colors).
  • Using those details app will do a search in the image database for similar faces.
  • Finally it'll display results to the user.

So I want to recognize faces using Android face recognition class and select that recognized area and save the details of that face into an array or a database.

I got few questions on above scenario.

  • what are the things I need from that image to do a proper image search?
  • Can I do it only using colors?
  • Do you have any idea on getting pixel details from that recognized face? I know how to do it on bitmap images. But i'm not sure that method still works with the face recognition class.

Can anyone explain those thing to me please?

Answer

Brian Attwell picture Brian Attwell · Jan 28, 2013

Use OpenCV's Recognition API.

I wrote a bit about how to set it up in another question.