I'm learning OpenCV, and need to access the input from the webcam using VideoCapture(0). Unfortunately, I'm not getting anything from the webcam.
I'm unsure if this is a bug with Spyder, or an issue with my code.
My code reads -
cap = cv2.VideoCapture(0)
while (1):
_, frame = cap.read()
display(frame)
Display is a tried-and-true function that displays a picture.
Does anyone know what my issue might be?
EDIT - This is an issue with Spyder's implementation, so although it wasn't displaying, I was in fact getting input from the webcam.