Ask Your Question
1

CV_FOURCC was not declared in this scope

asked 2014-03-11 12:32:10 -0500

andrey_dung gravatar image

updated 2014-03-11 12:52:10 -0500

berak gravatar image

I am using Opencv 3.0.0 dev on Ubuntu 12.04 and calling CV_FOURCC. Did I miss any header file or the name of macro is changed in the latest version? I have using namespace cv already, and including opencv2/core/core.hpp> and opencv2/highgui/highgui.hpp.

Some other macros are also missing such as CV_SORT_ASCENDING, CV_StsNotImplemented.

edit retag flag offensive close merge delete

Comments

yes, all true. most constants in 3.0 lost the CV_ prefix and live instead in the cv:: namespace.

also, the old CV_FOURCC macro was replaced by VideoWriter::fourcc()

berak gravatar imageberak ( 2014-03-11 12:51:02 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-11-13 06:54:25 -0500

bot1131357 gravatar image

updated 2019-11-13 06:55:07 -0500

This is what you need to refer to:

  1. cv::VideoWriter::fourcc and
  2. cv::SortFlags

Good luck :)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-03-11 12:32:10 -0500

Seen: 6,247 times

Last updated: Nov 13