简体   繁体   English

使用Opencv C ++从SMI Grabber设备捕获视频

[英]Capturing video from SMI Grabber Device using Opencv C++

I am trying to capture a video from an SMI grabber device using opencv c++. 我正在尝试使用opencv c ++从SMI采集器设备捕获视频。 The line VideoCapture cap(0) obtains video from web cam. VideoCapture cap(0)行从网络摄像头获取视频。 How do I get the feed from the device that I have connected. 如何从已连接的设备获取提要。

From openCV docs 来自openCV文档

VideoCapture 视频截取

public VideoCapture(int device) 公共VideoCapture(智能设备)

Parameters: device - id of the opened video capturing device (ie a camera index). 参数:device-打开的视频捕获设备的ID(即摄像机索引)。 If there is a single camera connected, just pass 0. 如果连接了单个摄像机,则只需传递0。

As per this answer, it's not possible at the moment to enumerate devices via OpenCV however you could try passing 1 and see if the SMI device is found there. 根据答案,目前无法通过OpenCV枚举设备,但是您可以尝试传递1并查看是否在此处找到了SMI设备。

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

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