Ask Your Question
0

3.1.0 Face Recognition Algorithm? c++

asked 2016-06-27 14:28:56 -0600

trav gravatar image

I have code which recognizes the face and eyes draws circles on my live webcam feed accordingly I have been reading the documentation and have realized that the old methods are no longer supported for the facial recognition what I would like to do is use something similar to the Eigenfaces.. I have the Yale database downloaded on my desktop. Essentially I'm just wondering how to do this in 2016 with C++ as the documentation can sometimes be confusing and harder to find for the version 3.1, thanks for your help in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-06-27 14:55:39 -0600

Missing gravatar image

updated 2016-06-27 14:56:14 -0600

The methods for face recognition were moved to the opencv_contrib repository at https://github.com/Itseez/opencv_contrib

You need to compile OpenCV with

cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

and then you can use Eigenfaces, Fisherfaces and LBPH.

Best regards

edit flag offensive delete link more

Comments

And if you want more info, take a look at chapter 6 inside the OpenCV 3 Blueprints book, which talks quite exhaustively about the face recognition interface in OpenCV!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-06-30 06:40:08 -0600 )edit

Thanks, I have got the folder now, makes a lot more sense. I have a little side-question for you... Im using mac OS X lets say i have the openCV 3.1 folder on my desktop where everything has been successfully configured previously and I now have the opencv_contrib_master on my desktop how would I add these modules and create this effect successfully via command line or GUI I ask because I do not want to mess anything up as it has took a long time to get anywhere due to the documentation, thanks a lot

trav gravatar imagetrav ( 2016-07-02 00:48:55 -0600 )edit

Thanks Steve will have to read that this weekend!

trav gravatar imagetrav ( 2016-07-02 00:49:24 -0600 )edit

Since you can't compile the opencv_contrib modules alone, you have to re-compile the opencv core modules with the above mentioned option. You can read about the steps in the README of the repository.

Missing gravatar imageMissing ( 2016-07-02 10:58:27 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-27 14:28:56 -0600

Seen: 420 times

Last updated: Jun 27 '16