Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

here, you create an instance of VideoCapture:

capture = cv2.VideoCapture(0)

then you'd want to use that instance ( not the class! )

ret,frame = capture.read()
// go on processing frame