Ask Your Question
0

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

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

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

Comments

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 -0600 )edit
1

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 -0600 )edit
1

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

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

thanks a lot guys it worked :)

Audhoot Chavan gravatar imageAudhoot Chavan ( 2015-07-28 15:33:41 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

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

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

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

Comments

thanks for all the work !

berak gravatar imageberak ( 2015-07-28 08:04:25 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 1,791 times

Last updated: Jul 28 '15