当前位置:网站首页>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
边栏推荐
- JSX syntax rules
- I JS deep copy and shallow copy
- LeetCode 1337、矩阵中战斗力最弱的 K 行
- Scripy tutorial - (2) write a simple crawler
- Research on open source OCR engine
- Go zero framework database avoidance Guide
- Bash script learning -- for loop traversal
- Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
- The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
- Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
猜你喜欢

SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in

Commit and ROLLBACK in DCL of 16mysql
![[stack and queue topics] - sliding window](/img/65/a2ce87f1401d7a28d4cce0cc85175f.png)
[stack and queue topics] - sliding window
Handwritten Google's first generation distributed computing framework MapReduce

SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions

GO語言開發天天生鮮項目第三天 案例-新聞發布系統二

Recognition of high-speed road signs by Matlab using alexnet

Identification of bolt points in aerial photography based on perception

内网渗透之DOS命令

Vulnhub DC: 1 penetration notes
随机推荐
Commit and ROLLBACK in DCL of 16mysql
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
XXXI` Prototype ` displays prototype properties and`__ proto__` Implicit prototype properties
Confusion about thread blocking after calling the read () method of wrapper flow
How to protect ECs from hacker attacks?
Bash script learning -- for loop traversal
Leetcode 709, convert to lowercase
High paid programmer & interview question series 91 limit 20000 loading is very slow. How to solve it? How to locate slow SQL?
After route link navigation, the sub page does not display the navigation style problem
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
Automatically fill in body temperature and win10 task plan
Introduction to intrusion detection data set
ArcGIS js api 4. X submergence analysis and water submergence analysis
Matlab analytic hierarchy process to quickly calculate the weight
Syntax Error: TypeError: this. getOptions is not a function
Leetcode 1346. Check whether integers and their multiples exist
Shanghai a répondu que « le site officiel de la farine est illégal »: l'exploitation et l'entretien négligents ont été « noirs » et la police a déposé une plainte
16MySQL之DCL 中 COMMIT和ROllBACK