当前位置:网站首页>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
边栏推荐
- Leetcode 994, rotten orange
- Syntax Error: TypeError: this. getOptions is not a function
- Es index (document name) fuzzy query method (database name fuzzy query method)
- Numpy sort search count set
- 【PTA】L1-006 连续因子
- Come in and teach you how to solve the problem of port occupation
- DNS cloud school rising posture! Three advanced uses of authoritative DNS
- LeetCode 116. 填充每个节点的下一个右侧节点指针
- How to configure SSH public key in code cloud
- 16MySQL之DCL 中 COMMIT和ROllBACK
猜你喜欢
How to use PM2 management application? Come in and see
Livego + ffmpeg + RTMP + flvjs to realize live video
Linux64Bit下安装MySQL5.6-不能修改root密码
LeetCode 74、搜索二维矩阵
Solution: NPM err! code ELIFECYCLE npm ERR! errno 1
Syntax Error: TypeError: this. getOptions is not a function
Numpy - creation of data type and array
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
Case of the third day of go language development fresh every day project - news release system II
16MySQL之DCL 中 COMMIT和ROllBACK
随机推荐
Syntax Error: TypeError: this. getOptions is not a function
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
RT-1052学习笔记 - GPIO架构分析
Plato Farm元宇宙IEO上线四大,链上交易颇高
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
Identification of bolt points in aerial photography based on perception
Livego + ffmpeg + RTMP + flvjs to realize live video
Go language development Daily Fresh Project Day 3 Case - Press Release System II
How do BIM swindlers cheat? (turn)
DNS cloud school | quickly locate DNS resolution exceptions and keep these four DNS status codes in mind
Elastic box model
LeetCode 1351、统计有序矩阵中的负数
How many hacking methods do you know?
【PTA】L1-006 连续因子
Psychological formula for converting RGB to gray value
Numpy - creation of data type and array
三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
C migration project record: modify namespace and folder name
SQL gets the latest record of the data table
Research on open source OCR engine