First time here? Check out the FAQ!

Ask Your Question
0

3.1.0 Face Recognition Algorithm? c++

asked Jun 27 '16

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jun 27 '16

Missing gravatar image

updated Jun 27 '16

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

Preview: (hide)

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 (Jun 30 '16)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 (Jul 2 '16)edit

Thanks Steve will have to read that this weekend!

trav gravatar imagetrav (Jul 2 '16)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 (Jul 2 '16)edit

Question Tools

1 follower

Stats

Asked: Jun 27 '16

Seen: 437 times

Last updated: Jun 27 '16