Open bbaysal opened 3 years ago
@bbaysal, thank you for reporting this issue. Can you elaborate how you fixed these compilation issues?
The conclusion I got from my searches about the problems is that the problems are related to the version and my solutions are as follows.
src/video/openCVSource.cpp:252 and 254 CV_CAP_PROP_FPS needed to change as CAP_PROP_FPS
src/video/openCVSource.cpp:311 CV_BGR2GRAY needed to change as cv::COLOR_BGR2GRAY
src/video/openCVSource.cpp:542 CV_HAAR_SCALE_IMAGE needed to change as CASCADE_SCALE_IMAGE
And one more issue; src/include/video/openCV_HSVHistogram.hpp:71 CV_BGR2HSV needed to change as cv::COLOR_BGR2HSV
Like I said before when I searched problems seperately, all problems related to version.
The conclusion I got from my searches about the problems is that the problems are related to the version and my solutions are as follows.
src/video/openCVSource.cpp:252 and 254 CV_CAP_PROP_FPS needed to change as CAP_PROP_FPS
src/video/openCVSource.cpp:311 CV_BGR2GRAY needed to change as cv::COLOR_BGR2GRAY
src/video/openCVSource.cpp:542 CV_HAAR_SCALE_IMAGE needed to change as CASCADE_SCALE_IMAGE
And one more issue; src/include/video/openCV_HSVHistogram.hpp:71 CV_BGR2HSV needed to change as cv::COLOR_BGR2HSV
Like I said before when I searched problems seperately, all problems related to version.
Thanks! Your code changes worked for me.
I encountered some issues while building with opencv flag. I fixed these issues on my own but it will be good to fix it at source code. Here are messages.
/home/brk/opensmile/src/video/openCVSource.cpp: In member function ‘virtual int cOpenCVSource::myFinaliseInstance()’: /home/brk/opensmile/src/video/openCVSource.cpp:252:24: error: ‘CV_CAP_PROP_FPS’ was not declared in this scope 252 | if(mVideoCapture.get(CV_CAP_PROP_FPS) != 0) /home/brk/opensmile/src/video/openCVSource.cpp: In member function ‘virtual eTickResult cOpenCVSource::myTick(long long int)’: /home/brk/opensmile/src/video/openCVSource.cpp:311:52: error: ‘CV_BGR2GRAY’ was not declared in this scope 311 | cvtColor( mCurrentFrame_bgr, mCurrentFrame_gray, CV_BGR2GRAY ); /home/brk/opensmile/src/video/openCVSource.cpp: In member function ‘virtual ExtractedFace cOpenCVSource::extractFace(cv::Mat&, cv::Mat&)’: /home/brk/opensmile/src/video/openCVSource.cpp:542:67: error: ‘CV_HAAR_SCALE_IMAGE’ was not declared in this scope 542 | mEyes_cascade.detectMultiScale( faceROI, eyes, 1.1, 2, 0 |CV_HAAR_SCALE_IMAGE, Size(30, 30) );