Hi, I am working on face recognition. When i try to add face.hpp, it is showing below errors.
In file included from /usr/include/opencv2/face.hpp:51:0,
from /usr/include/opencv2/face/facerec.hpp:11,
from processImage.cpp:11:
/usr/include/opencv2/face/predict_collector.hpp:76:31: error: expected unqualified-id before ‘const’
CV_WRAP virtual bool emit(const int label, const double dist, const int state = 0); //not abstract while Python generation require non-abstract class
^~~~~
/usr/include/opencv2/face/predict_collector.hpp:76:31: error: expected ‘)’ before ‘const’
enter code here
/usr/include/opencv2/face/predict_collector.hpp:91:23: error: expected unqualified-id before ‘const’
CV_WRAP bool emit(const int label, const double dist, const int state = 0);
^~~~~
/usr/include/opencv2/face/predict_collector.hpp:91:23: error: expected ‘)’ before ‘const’
Makefile:2635: recipe for target 'processImg.o' failed
am i missing any thing else.
I added #include opencv2/face.hpp"" and i got those errors.
Thanks Tirupathi