问题
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