79275137

Date: 2024-12-12 12:42:47
Score: 1
Natty:
Report link

line 6, in while cap.isOpened(): NameError: name 'cap' is not defined. Did you mean: 'map'?

Should be:

cap = cv2.VideoCapture(0) # <==  Add this

while cap.isOpened():
    success, image = cap.read()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: toyota Supra