CvCapture 结构和 VideoCapture 结构有什么区别
What is the difference between the CvCapture structure and the VideoCapture structure?
OpenCV中的CvCapture
结构和VideoCapture
结构有什么区别吗?如果是这样,我应该何时使用CvCapture
,何时使用VideoCapture
?
VideoCapture
来自新的C++接口,CvCapture
不再有公共接口可供使用。
C++ API 时,应使用VideoCapture
。 应避免混合使用这两个接口。
如果您使用的是 C API,而不是C++ API,则有几个方法会返回CvCapture
指针,例如 cvCaptureFromFile
。
相关文章:
- 有什么方法可以遍历结构吗
- 在 c++ 中拥有一组结构的正确方法是什么?
- "perf_event_attr"结构的"read_format"属性的选项到底是什么?
- C++中deque数据结构的大O是什么?
- 在什么情况下,两个堆栈分配的结构对象的 this 点指向同一个地址?
- 将信息输入到下面显示的结构向量中的正确语法/格式是什么
- 不同的类或结构初始化方法之间的性能差异是什么?
- 结构块指的是什么?
- 让编译器告诉什么确切的纯虚拟方法使结构抽象?
- C++ 类层次结构中的"对齐"是什么意思?
- 自定义数据结构的优点是什么?
- 如果结构中的字符串比使用的 p/调用签名长或短,会发生什么情况?
- 我的堆栈和库存清单程序的结构有什么问题?
- 将此私有删除器函数包装在结构中的目的是什么?
- 在只读(即 const)访问器上执行结构化绑定的最佳实践是什么?
- 清除结构向量时会发生什么?
- 这里的以下 OOP 结构是什么?
- 用于筛子的最佳数据结构是什么(即一些被划掉的数字列表)?
- 将一种数据类型的向量复制到同一数据类型的结构向量中的有效方法是什么
- 当C++类函数参数之一是结构时,它们的语法有什么不同