Calculating the FPS
In the previous sections, we learned how to capture and play video using the video and videoio modules of OpenCV and the multimedia facilities provided by Qt. As I mentioned previously, in the rest of this chapter, we will process video by using the OpenCV library, and not the multimedia module of the Qt library. The Qt library will only be used for the UI.
Before saving the videos we captured from the webcams, let's discuss an important indicator of videos and cameras, the FPS, though, sometimes, it is called frame rate or frame frequency. For a camera, its FPS means how many frames we can capture from it in one second. If this number is too small, the user will perceive each frame individually instead of perceiving the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access