Ask Your Question
0

fourcc problem

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

stran gravatar image

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

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 writer.open(chemin_video_save_plus_numberfile, 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')?

BR

edit retag flag offensive close merge delete

Comments

CLR (managed) -- red flag detected.

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

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-10-07 10:02:10 -0600

berak gravatar image

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

edit flag offensive delete link more

Comments

Yes it works. Thank !

stran gravatar imagestran ( 2018-10-07 10:56:17 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 1,273 times

Last updated: Oct 10 '18