2019-07-18 20:19:13 -0600 | received badge | ● Notable Question (source) |
2019-03-12 07:18:42 -0600 | received badge | ● Popular Question (source) |
2017-03-09 12:03:23 -0600 | commented question | OpenCV VideoWriter() video output is much faster than normal time. Hi berak, are you implying that waitKey() and my processing time are delaying the capture rate ( making capture fps less than 10 fps), therefore when I use VideoWriter at 10 fps it made the video output fast as the capture fps is less than write fps? |
2017-03-08 10:45:05 -0600 | asked a question | OpenCV VideoWriter() video output is much faster than normal time. Hi everyone, I have a issue with my video capture code where the output of the video is super fast when outputted, I searched some documents and they all suggest that the problem is due to the fps of the camera not in sync to the output video fps, therefore making the output video faster or slower than normal time (capture fps > write fps: slower, capture fps < write fps: faster). Back to my case, I did manually set the fps of the two webcams to 10 fps and matched 10 fps when using VideoWriter() as well, I also set the waitKey() to 100ms per frame so that it matches with 10 fps, but I'm still getting super fast video output, is it due to the delay processing time of my video_multi_cam_light_detection() function as it does take sometime to process, such that individual frame have longer delay which decrease the overall preset 10 fps? (I'm suspecting this because I tested another simple VideoCapture program with out my detection function and it's only faster for like 3 seconds). Again, Thank you all for the help, if my logic or code are wrong in any ways please feel free to indicate it as I'm really new to OpenCV. Here is my code: |
2017-03-08 10:32:22 -0600 | received badge | ● Organizer (source) |