I have a big problem:
When trying to connect a ToupCam camera in Python for post-processing with OpenCV, I get an error. The program does not initialize the camera. I connect via DSHOW, different indexes, but still an error. What could be the reason?
OpenCV 4.5.5 v.
import cv2 cap = cv2.VideoCapture(0,cv2.CAP_DSHOW) if cap.isOpened() == False: print('ERROR: Unable to open the camera') else: # this pop ups the driver settings form only with DSHOW cap.set(cv2.CAP_PROP_SETTINGS,-1) cap.release() cv2.destroyAllWindows()