I have been working on this code where I am using cap = cv2.VideoCapture(0) command for capturing live image from webcam. Due to some reason, this command doesn't open my systems webcam. It looks like it could be linked to "device id" argument that is being passed to VideoCapture() command.
Any ideas how we can find the device id of our laptop's webcam. I have found product id from the drivers properties information, which is 707F - but need some help with device id.
Thanks Sani