When movement is detected, the record_video() function is called and the webcam records a video for a length of time (in seconds) equal to the video_capture_duration instance variable. After the function executes, capture_frame() which results in my machine completely freezing up. I suspect the issue will occur on other operating systems as well, but haven't tested it out yet.
When movement is detected, the record_video() function is called and the webcam records a video for a length of time (in seconds) equal to the video_capture_duration instance variable. After the function executes, capture_frame() which results in my machine completely freezing up. I suspect the issue will occur on other operating systems as well, but haven't tested it out yet.