当前位置:网站首页>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
边栏推荐
- 6-5 字符串 - 2. 字符串复制(赋值) (10 分)C语言标准函数库中包括 strcpy 函数,用于字符串复制(赋值)。作为练习,我们自己编写一个功能与之相同的函数。
- 堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
- Development of Matlab GUI bridge auxiliary Designer (functional introduction)
- bounding box iou
- ArcGIS js api 4. X submergence analysis and water submergence analysis
- LeetCode 994、腐烂的橘子
- bounding box iou
- 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
- Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
- Thirty What are VM and VC?
猜你喜欢

Monte Carlo py solves the area problem! (save pupils Series)

16MySQL之DCL 中 COMMIT和ROllBACK

Elastic box model

【SQL】字符串系列2:将一个字符串根据特定字符分拆成多行
![[PTA] l1-002 printing hourglass](/img/9e/dc715f7debf7edb7a40e9ecfa69cef.png)
[PTA] l1-002 printing hourglass

go-zero框架数据库方面避坑指南

DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
![Es error: request contains unrecognized parameter [ignore_throttled]](/img/17/9131c3eb023b94b3e06b0e1a56a461.png)
Es error: request contains unrecognized parameter [ignore_throttled]

Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart

Some basic configurations in interlij idea
随机推荐
Unity solves Z-fighting
Devexpress 14.1 installation record
. Ren -- the intimate artifact in the field of vertical Recruitment!
Learn to C language fourth day
go-zero框架数据库方面避坑指南
Elastic box model
DOS command of Intranet penetration
MySQL 存储过程和函数
Case of the third day of go language development fresh every day project - news release system II
Leetcode 994, rotten orange
Thirty What are VM and VC?
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Async function ------ ES6
Commande dos pour la pénétration de l'Intranet
【SQL】字符串系列2:将一个字符串根据特定字符分拆成多行
RT-1052学习笔记 - GPIO架构分析
16MySQL之DCL 中 COMMIT和ROllBACK
Analysis of the relationship between generalized Bim and CAD under the current background
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
[graph theory brush question-4] force deduction 778 Swimming in a rising pool