【问题标题】:What is the difference between the CvCapture structure and the VideoCapture structure?CvCapture 结构和 VideoCapture 结构有什么区别?
【发布时间】:2012-11-30 23:23:04
【问题描述】:

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

【问题讨论】:

    标签: c++ c opencv


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-12
      • 1970-01-01
      • 2020-11-16
      • 2014-06-17
      相关资源
      最近更新 更多