Ask Your Question
0

Can find createFisherFaceRecognizer (opencv 3.0.0)

asked 2015-11-06 01:01:34 -0500

rodger gravatar image

I have successfully written an app that does face DETECTION

Now I want to change it to do facial RECOGNITION.

My current app has been written on my Mac for my Mac using CPP and xcode.

After added the following line, I get the following error...

FaceRecognizer faceRecognizer = cv::createFisherFaceRecognizer(0, 123.0);

Unknown type name 'FaceRecognizer'

I am guessing I am missing a .hpp file and or a dylib file. Can someone please tell me where this method is defined, and what .h files and libraries I should include?

Rodger

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-11-06 02:06:02 -0500

berak gravatar image

updated 2015-11-06 02:09:55 -0500

you missed the newly added namespace face: Ptr<cv::face::FaceRecognizer> faceRecognizer = cv::face::createFisherFaceRecognizer(0, 123.0);

also note, that you have to use cv::Ptr . (you can't create an instance of an interface "on the stack".)

see updated tutorials and samples

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-11-06 01:01:34 -0500

Seen: 1,312 times

Last updated: Nov 06 '15