2020-04-01 04:43:09 -0600 | received badge | ● Popular Question (source) |
2016-02-12 04:27:03 -0600 | received badge | ● Critic (source) |
2016-02-12 04:27:02 -0600 | received badge | ● Scholar (source) |
2016-02-12 04:27:00 -0600 | commented answer | stop recording of IP camera stream after x minutes Thanks for the answer . Just added cv2.waitkey(duration) to the above code and it is working as desired. |
2016-02-11 11:28:35 -0600 | asked a question | stop recording of IP camera stream after x minutes Hi, I am pretty much new to opencv and I am trying my hands in using it for one of my IP camera video recording projects. My question is how to stop or end the camera recording or showing the preview after x minutes without pressing ESC or Q key . Example from openCV: cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() print frame, type(frame) When everything done, release the capturedel(cap) cap.release() cv2.destroyAllWindows() Above example says that User need to press "Q" key to stop the script . Apologies in advance if this question sounds not great and silly. |