Hello everyone,
I'm try to follow the tutorial from docs (here) , but when I try to compile, doesn't work.
Ptr<EigenFaceRecognizer> model = EigenFaceRecognizer::create();
model->train(images, labels);
The error:
error: ‘EigenFaceRecognizer’ was not declared in this scope
Ptr<EigenFaceRecognizer> model = EigenFaceRecognizer::create();
reconhecimento.cpp:72:25: error: template argument 1 is invalid
Ptr<EigenFaceRecognizer> model = EigenFaceRecognizer::create();
reconhecimento.cpp:72:35: error: ‘EigenFaceRecognizer’ is not a class, namespace, or enumeration
Ptr<EigenFaceRecognizer> model = EigenFaceRecognizer::create(); ^
reconhecimento.cpp:73:7: error: base operand of ‘->’ is not a pointer model->train(images, labels);
reconhecimento.cpp:76:29: error: base operand of ‘->’ is not a pointer
int predictedLabel = model->predict(imread(path_output+paths_out[i]+".png"));
Someone can help me? Thanks.