Face recognition using haar classifier:How to train and compare with stored images

asked 2015-10-12 13:24:34 -0500

Mehdi.Am gravatar image

Hi friends

I'm gonna create a simple face recognizer.

In fact I can detect the face using haar classifier, but I want to compare it with a stored image in my file in order to determine that the detected face is who? (as an example tell me the owner name of the detected image)

Can someone help me?

I read some source codes in the different websites but unfortunately they are not clear for me because I'm beginner.

I greatly appreciate if you guide me step by step or put the source code in answer section.(c++ code)

edit retag flag offensive close merge delete

Comments

haar classifiers are meant to do : "face or not" (or , whatever object they were trained for). it's a binary classifier, you want multi-class.

darn that dream, wrong tool for the job. look at opencv's face-recognition or even here for more state-of-the-art ideas.

again, there's no such thing as a 'simple' solution.

berak gravatar imageberak ( 2015-10-12 13:29:27 -0500 )edit

@berak is there any sample code?

Mehdi.Am gravatar imageMehdi.Am ( 2015-10-13 00:18:07 -0500 )edit

@berak: I got it.I should use fisher face but could you please give me link which I can use?

Mehdi.Am gravatar imageMehdi.Am ( 2015-10-13 01:07:48 -0500 )edit

you will need the contrib repo

samples are here

berak gravatar imageberak ( 2015-10-13 01:20:40 -0500 )edit
1

If you can be patient till the end of the month, the OpenCV Blueprints will have a chapter with accompagnied code on face recognition interfaces in OpenCV, as part of a biometrics project. But they big tutorial with the face recognition module tells you alot also.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-13 07:06:53 -0500 )edit