Ask Your Question
0

Face Recognition Sample Android

asked 2016-10-12 05:08:14 -0500

akashdeep gravatar image

I am not able get any Android sample for Face Recognition (Not only detection) using OpenCV 3. Please provide me a link or sample, where I can find the Android sample for Face Recognition using OpenCV 3.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-12 05:20:49 -0500

berak gravatar image

updated 2016-10-12 05:23:12 -0500

unfortunately, there is no such thing.

(to even useopencv3' face recognition, you would have to re-build your android sdk with https://github.com/opencv/opencv_contrib, and enable the java wrappers in the face module by adding "java" to the 1st line in cmakelists.txt)

idk, what you need the facerecognition for, depending on your use-case, maybe we can find an alternative solution (e.g. putting it on a server, simply "roll-your-own", use some service, etc.)

edit flag offensive delete link more

Comments

I need the Face Recognition for Login to Application in offline mode. I need to save the person Face data and compare next time he come, and if he is already logged-in, then let him in, otherwise ask him to register. So, basically, I need to compare two faces, and get the Matching probability in offline.

akashdeep gravatar imageakashdeep ( 2016-10-12 05:38:14 -0500 )edit

please DO NOT EVER TRY THAT

  • honestly, if you have to ask, how things work, you're absolutely the wrong person to mess with other folk's security
  • using face reco for authentification is a terrible idea in the 1st place, as you can easily fool it with an image
  • opencv's face-reco can't be used for this, it's basically a "pick best of a finite set" machine, what you wanted is called "verification" (and is a ton harder to do.)

again, do the world a favour, and forget the whole idea immediately.

berak gravatar imageberak ( 2016-10-12 05:48:17 -0500 )edit

I do want Face recognition for any secure app. I want it for a less secure app, where user privacy does not matters a lot. I just want to use this as a type of login, to faster re-login process on an overall.

So, please suggest any procedure, or steps to do with Opencv3.

akashdeep gravatar imageakashdeep ( 2016-10-12 06:28:27 -0500 )edit

yea, train a 2-class SVM (one-against-many) with a ton of negative data, look up OSS(one-shot-similarity)

berak gravatar imageberak ( 2016-10-12 07:08:48 -0500 )edit

again, you cannot use opencv's face-reco, because it is very likely, that you encounter an unknown person that looks more similar to you, than any other person in your db

berak gravatar imageberak ( 2016-10-12 07:12:07 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-10-12 05:08:14 -0500

Seen: 1,922 times

Last updated: Oct 12 '16