这就是我现在关注的这个。
#number 0 is front web cam, number 1 is back webcam
capture = cv2.VideoCapture(0)
capture.set(3, 640)
capture.set(4, 480)
while True:
success, img = capture.read()
cv2.imshow("video", img)
#This function loops -> Delay -> press Q it breaks loop
if cv2.