Recording video in specified time intervals and then saving them into file OpenCv Python
问题 Here are my goals. Capture video continuously until 'q; is pressed Every ten seconds save the video in created directory file Continue step two until 'q' is pressed I am executing the following code. But when creating files it's creating 6kb files and saying cannot play. I am fairly new to opencv and python. Not sure what I am missing. Running this code on pycharm with Python 3.6. Also the cv2.imshow('frame',frame) stops after ten seconds but recording is happening in background and files are