当前位置:网站首页>Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
2022-04-23 20:37:00 【Zhongai0049】
opencv4 Identifier not defined in CV_CAP_PROP_FPS;CV_CAP_PROP_FRAME_COUNT;CV_CAP_PROP_POS_FRAMES problem
The problem this time is to read a video , But in the process of writing code, there is a problem of undefined representation , The error results are as follows :、
After many inquiries , The discovery is due to opencv Version update too fast ,opencv4 Many identifiers have changed in , Make the following changes to the following three identifiers :
CV_CAP_PROP_FPS -> CAP_PROP_FPS
CV_CAP_PROP_FRAME_COUNT -> CAP_PROP_FRAME_COUNT
CV_CAP_PROP_POS_FRAMES -> CAP_PROP_POS_FRAMES
And if there's no Definition cv The namespace of Words (using namespace cv;) It is necessary to use cv::CAP_PROP_FRAME_COUNT, In this way, you won't make a mistake .
Record all the problems encountered here , Prevent yourself from forgetting , I hope it will be helpful to you
版权声明
本文为[Zhongai0049]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210547163178.html
边栏推荐
- 堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
- Unity solves Z-fighting
- LeetCode 116. Populate the next right node pointer for each node
- 【栈和队列专题】—— 滑动窗口
- 高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
- I JS deep copy and shallow copy
- How to use PM2 management application? Come in and see
- Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
- UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
- Parsing methods of JSON data in C - jar and jobobject: error reading jar from jsonreader Current JsonReader item
猜你喜欢
How to protect ECs from hacker attacks?
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
【栈和队列专题】—— 滑动窗口
Linux64Bit下安装MySQL5.6-不能修改root密码
LeetCode 74、搜索二维矩阵
Modeling based on catiav6
Handwritten Google's first generation distributed computing framework MapReduce
ArcGIS JS version military landmark drawing (dovetail arrow, pincer arrow, assembly area) fan and other custom graphics
Vulnhub DC: 1 penetration notes
LeetCode 994、腐烂的橘子
随机推荐
LeetCode 116. Populate the next right node pointer for each node
Matlab analytic hierarchy process to quickly calculate the weight
Implementation of mypromise
Markdown < a > tag new page open link
. Ren -- the intimate artifact in the field of vertical Recruitment!
Psychological formula for converting RGB to gray value
Unity solves Z-fighting
Recommend an open source free drawing software draw IO exportable vector graph
JS arrow function user and processing method of converting arrow function into ordinary function
Analysis of the relationship between generalized Bim and CAD under the current background
[PTA] l1-002 printing hourglass
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
Bash script learning -- for loop traversal
LeetCode 1346、检查整数及其两倍数是否存在
Confusion about thread blocking after calling the read () method of wrapper flow
Unity Odin ProgressBar add value column
三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
DOS command of Intranet penetration
Mathematical modeling column | Part 5: MATLAB optimization model solving method (Part I): Standard Model
A useless confession artifact