In [1]:
import cv2
In [2]:
cap_cam = cv2.VideoCapture(0)
print(type(cap_cam))
In [3]:
print(cap_cam.isOpened())
In [4]:
print(cap_cam.get(cv2.CAP_PROP_POS_FRAMES))
In [5]:
ret, frame = cap_cam.read()
In [6]:
print(ret)
In [7]:
print(type(frame))
In [8]:
print(frame.shape)
In [9]:
print(cap_cam.get(cv2.CAP_PROP_POS_FRAMES))
In [10]:
cap_cam.release()