What is the alternative of getMat() of Facerecognizer class in opencv3.00?

不羁岁月 提交于 2019-12-22 10:32:12

问题


I want to follow the tutorials of the face recognition with opencv. But in the tutorial source code example getMat() method is used, which shows an error :

class cv::face::FaceRecognizer has no member "getMat".

After some searching I found out that opencv3.00 has deprecated that method. What can I use instead of getMat() now in opencv3.0?

This is the tutorial I am trying to follow.


回答1:


See the new API here.

Replace model->getMat("eigenvalues") with model->getEigenValues(), model->getMat("mean") with model->getMean(), etc...



来源:https://stackoverflow.com/questions/33262738/what-is-the-alternative-of-getmat-of-facerecognizer-class-in-opencv3-00

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!