Dec-26-2021, 04:28 PM
ap = cv2.VideoCapture(1)First thing is the variable name should be
cap
Also, if you only have one webcam installed on that machine then the device number would be 0.
This worked on my laptop with one webcam installed.
cap = cv2.VideoCapture(0)/regards