-4

I want to compare the 2 images(images of people)and want a result that these are of same person or not(By Face recognization).I have to do this for millions of images so I cannot do it manually .Is there any api for android that can be used in my app.

  • I think there is no built-in function. But maybe you could use OpenCV. It provides APIs for simple pattern matching http://docs.opencv.org/master/de/da9/tutorial_template_matching.html or even a more complex object detection. http://docs.opencv.org/master/d2/d64/tutorial_table_of_content_objdetect.html – Christopher Jun 12 '15 at 09:32
  • Also, you might want to check [this post](https://stackoverflow.com/questions/4125821/face-detection-in-android?rq=1) – AnZ Jun 12 '15 at 09:40

1 Answers1

2

You could use Camera.Face or FaceDetector.Face class. Take parameters of face on both photos and compare their parameters using e.g. eyesDistance(). If those parameters quite the same -> its the same person.

AnZ
  • 1,040
  • 24
  • 54