gpt4 book ai didi

c++ - CvCapture结构和VideoCapture结构有什么区别?

转载 作者:可可西里 更新时间:2023-11-01 18:20:40 25 4
gpt4 key购买 nike

CvCapture结构和OpenCV中的VideoCapture结构有区别吗?如果是这样,我应该什么时候使用 CvCapture 以及什么时候使用 VideoCapture

最佳答案

VideoCapture来自新的C++接口(interface),CvCapture不再有公共(public)接口(interface)可供使用。

使用 C++ API 时,应使用 VideoCapture。您应该避免混合使用这两个界面。

如果您使用的是 C API,而不是 C++ API,有几个方法会返回一个 CvCapture 指针,例如 cvCaptureFromFile

关于c++ - CvCapture结构和VideoCapture结构有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13654623/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com