I have 4 usb cameras interfaced to my computer via usb. Currently I am using opencv-python==4.5.5.64
to connect to the cameras. The problem is, I can't seem to read a unique id of each camera. Currently my code snippet look like below where cameraIndex
is an integer. The question is, what should I do after obtaining the cap to read a unique id from the camera that I connected? Even better, is it possible to connect to a camera just by using its unique id? I am running the cameras on a Windows 10 PC.
import cv2
cap = cv2.VideoCapture(cameraIndex, cv2.CAP_MSMF)