'How can I force a video to be read/displayed in real time?
Basically, if I simply read a video and display it frame by frame, it appears way "faster" than the video actually is in my local disk. On the other hand, if I'm reading frames and processing them in some way that takes processing power (such as running a computer vision model), then it appears slower than the actual video.
I'm assuming this is because opencv is trying to read each frame and process it one by one. What I want is something similar to the behavior of reading from a webcam, where it will skip frames in order to not fall behind. Is there a simple way I can do this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
