It seem setting the desire fps in videocapture class does not give me that desire framerate. Is there a way where I can calculate the fps depending on the comptuer's hardware performance?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The frame-rate you give to VideoCapture is only a hint to the underlying native code, as well as a hint to classes like VideoDisplay, which need a hint as to what the target rate is. There is no guarantee that that frame rate is achievable (will depend on the specific hardware as well as the load on the CPU and any processing happening). If you are using the VideoDisplay class, the method getDisplayFPS() will give you the actual frame-rate that is being achieved.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2014-05-14
thank you you've been very helpful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seem setting the desire fps in videocapture class does not give me that desire framerate. Is there a way where I can calculate the fps depending on the comptuer's hardware performance?
The frame-rate you give to VideoCapture is only a hint to the underlying native code, as well as a hint to classes like VideoDisplay, which need a hint as to what the target rate is. There is no guarantee that that frame rate is achievable (will depend on the specific hardware as well as the load on the CPU and any processing happening). If you are using the VideoDisplay class, the method getDisplayFPS() will give you the actual frame-rate that is being achieved.
thank you you've been very helpful.