Ask Your Question

fourcc problem

asked 2018-10-07 09:54:10 -0500

stran gravatar image

updated 2018-10-10 00:57:33 -0500

berak gravatar image

Dears all, I am performing a porting OpenCV code 342 realease which was worked on VS2017 CLR (managed) to QT framework. For QT framework I installed with succes OpenCV 400alpha. So when porting I reach an error which is: C:\projets\opencv\QT_framework\Opencv_test\globals.cpp:38: erreur : 'CV_FOURCC' was not declared in this scope, CV_FOURCC('X', '2', '6', '4'), 30, size);

What do you thing about error. Is this something specific to Qt or OpenCV400alpha?

I only include : #include <opencv2 opencv.hpp="">

Should I include something else for QT framework?

Also What is the equivalent int number of the CV_FOURCC('X', '2', '6', '4')?


edit retag flag offensive close merge delete


CLR (managed) -- red flag detected.

berak gravatar imageberak ( 2018-10-07 09:58:49 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-10-07 10:02:10 -0500

berak gravatar image

CV_FOURCC -- that's from outdated 2.4. use VideoWriter::fourcc instead.

edit flag offensive delete link more


Yes it works. Thank !

stran gravatar imagestran ( 2018-10-07 10:56:17 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-07 09:54:10 -0500

Seen: 24 times

Last updated: Oct 10