2

When I'm trying to start simple code, the frame opens and don't respond.

import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
    ret, frame = cap.read()  
    cv2.imshow('AIR',frame)

Camera's index is 0. Who can suggest anything?

  • Can you get output using a video capture application? Cheese for instance – Jervelund Oct 12 '14 at 23:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.