OpenCV select camera ID to connect
-
Hello,
I am writing an application that uses opencv to connect to multiple cameras, the problem is, every time I start the computer, the usb port can be changed, so I need to know exactly which camera to connect to, I I'm using Dino-lite (all cameras share the same VID and PID information), is there a way to make a permanent installation by usb port?Thanks!
cv::VideoCapture capture0,capture1,capture2; capture0.open(0); capture1.open(1); capture2.open(2);
-
Hi,
That's rather something you should check with the OpenCV folks.
As for fixing the order of the cameras, maybe you can do something with udev or equivalent on Linux. -
@SGaist said in OpenCV select camera ID to connect:
That's rather something you should check with the OpenCV folks.
As for fixing the order of the cameras, maybe you can do something with udev or equivalent on Linux.Thanks for your reply, I am using windows, and still want to wait for someone who can help,