Ask Your Question

error: No member named 'getMat' in 'cv::face::FaceRecognizer'

asked 2015-07-27 15:50:32 -0500

Hello im low on time. I need a quick solution to this. I'm using opencv 3.0 and trying to get eigenvalues from this Fisherface recognizer model:

*Mat eigenvalues = model->getMat("eigenvalues");*

But it says 'getMat' is not a member in cv::face::FaceRecognizer. I tried reading the transition of opencv 2.0 to 3.0 and someone suggested using "GetLabelsByString" but i dont get it.

What should I use instead of getMat?

edit retag flag offensive close merge delete


Thanks a lot ! I just need help with one more thing

Why am I getting this error?

error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::face::basicfacerecognizer=""> __cdecl cv::face::createFisherFaceRecognizer(int,double)" (?createFisherFaceRecognizer@face@cv@@YA?AU?$Ptr@VBasicFaceRecognizer@face@cv@@@2@HN@Z) referenced in function "int __cdecl FaceRecognition(void)" (?FaceRecognition@@YAHXZ)

Audhoot Chavan gravatar imageAudhoot Chavan ( 2015-07-28 05:45:08 -0500 )edit

Have a look again at the repo, we just supplied more fixes. Also you will need the latest 3.0 branch to get this to work.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-07-28 06:06:56 -0500 )edit

you will have to link opencv_face300(d).lib, too.

berak gravatar imageberak ( 2015-07-28 08:04:01 -0500 )edit

thanks a lot guys it worked :)

Audhoot Chavan gravatar imageAudhoot Chavan ( 2015-07-28 15:33:41 -0500 )edit

Great! Can you accept the answer below as the correct one then please? So this topic appears solved.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-07-29 02:32:38 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-27 16:16:51 -0500

updated 2015-07-28 02:28:48 -0500

I just submitted the fix. Go to the pull request web page and look at the contrib module. There is fix with the correct functions. It all got switched around a bit ;)

Main problem is that the old Algorithm interface is gone, so you need some adaptations now. If you do not know this, then it is indeed quite difficult to find it by yourself.

edit flag offensive delete link more


thanks for all the work !

berak gravatar imageberak ( 2015-07-28 08:04:25 -0500 )edit

I encountered it myself and was so frustrated that it was just a small step to fixing it :D

StevenPuttemans gravatar imageStevenPuttemans ( 2015-07-28 08:09:25 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-07-27 15:50:32 -0500

Seen: 1,450 times

Last updated: Jul 28 '15