简体   繁体   English

在C ++ / OpenCV中从DSLR捕获实时视频

[英]Capture live video from a DSLR in C++/OpenCV

My C++/OpenCV app runs well when I use a USB webcam to capture live video stream. 当我使用USB网络摄像头捕获实时视频流时,我的C ++ / OpenCV应用运行良好。

However, when I connect a Canon 5Dii with live video it doesn't find the camera. 但是,当我将佳能5Dii与实时视频连接时,找不到相机。

The Canon utility captures the video well. 佳能实用程序可以很好地捕获视频。

Should I use the VideoCapture cap(1)? 我应该使用VideoCapture cap(1)吗?

You should use the official Canon Digital Camera SDK to grab frames from 5D II. 您应该使用官方的佳能数码相机SDK来捕捉5D II的帧。 There are some sample apps for connecting to the camera (as a source device) from your PC and then receiving camera events/images. 有一些示例应用程序可用于从PC连接到相机(作为源设备),然后接收相机事件/图像。 Keep in mind that you need to sign up and be approved by Canon to use the SDK. 请记住,您需要注册并得到佳能的批准才能使用SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM