简体   繁体   中英

Capturing video from SMI Grabber Device using Opencv C++

I am trying to capture a video from an SMI grabber device using opencv c++. The line VideoCapture cap(0) obtains video from web cam. How do I get the feed from the device that I have connected.

From openCV docs

VideoCapture

public VideoCapture(int device)

Parameters: device - id of the opened video capturing device (ie a camera index). If there is a single camera connected, just pass 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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