Hi
I am using a usb camera.
The code below behaves as I expected.
Because this is common usage.
while True:
ret, img = cap.read()
cv2.imshow('Video', img)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
but,
There is something like inferring the image acquired after cap.read() by deep learning.
I reproduced this reasoning time using sleep().
while True:
ret, img = cap.read()
time.sleep(3)
cv2.imshow('Video', img)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
I thought that cap.read() is executed every 3 seconds, so I can take a picture of that moment every 3 seconds.
However! !
The photo will appear when waiting for 3 seconds. In cap.read (), it will be like a 3-second picture of sleep is held in FIFO.
Why is this?
I raised my right hand in front of the camera.
The next cap.read is 3 seconds later.
I lowered my right hand during these three seconds.
cap.read is an image of still raising the right hand.
Why is this?