recognize faces by name (c/c++)

asked 2013-10-11 03:38:34 -0500

iacoposk8 gravatar image

updated 2013-10-11 03:42:31 -0500

berak gravatar image

Hello to all! I mentioned a tutorial (simple as possible) to use OpenCV so that in addition to see the faces present in images, can also recognize whether it is "jack" or "steve" or "Rodney" (which I will indicate with sample images) thanks :)

edit retag flag offensive close merge delete



start here

berak gravatar imageberak ( 2013-10-11 03:43:59 -0500 )edit

from what I understand, correct me if I'm wrong, I have to use the method detectMultiScale, class CascadeClassifier that I will create in this way: CascadeClassifier face_cascade("file.xml"); where "file.xml" will contain the faces that I want to classify. but if so, how do I create this xml file? thanks :)

iacoposk8 gravatar imageiacoposk8 ( 2013-10-11 05:00:38 -0500 )edit

Cascade detection deals with detection (is it a face or not). you'll need that as a preprocessing step, to crop the image to the face region before doing the actual recognition

berak gravatar imageberak ( 2013-10-11 05:27:13 -0500 )edit

oh, no, you don't want to train 1 cascade per person(and call that 'recognition'). that's a bad idea

berak gravatar imageberak ( 2013-10-11 05:37:27 -0500 )edit

aaaaaa then I misunderstood, I'm struggling to find a code example.

iacoposk8 gravatar imageiacoposk8 ( 2013-10-11 07:20:27 -0500 )edit

Were you able to find an example for this or do it by yourself. I am also looking for something similar, so if you can help

CodeQ gravatar imageCodeQ ( 2014-11-05 06:11:01 -0500 )edit