Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues while building with opencv flag #17

Open
bbaysal opened this issue May 24, 2021 · 3 comments
Open

Some issues while building with opencv flag #17

bbaysal opened this issue May 24, 2021 · 3 comments

Comments

@bbaysal
Copy link

bbaysal commented May 24, 2021

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) );

@chausner-audeering
Copy link
Contributor

@bbaysal, thank you for reporting this issue. Can you elaborate how you fixed these compilation issues?

@bbaysal
Copy link
Author

bbaysal commented May 25, 2021

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.

@hwangc
Copy link

hwangc commented Jun 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants