puku0x / cvdrone

CV Drone (= OpenCV + AR.Drone)
https://github.com/puku0x/cvdrone/wiki/How-to-build
Other
202 stars 94 forks source link

How to Increase FPS of Front Camera and Lower its Resolution? #45

Closed vrobot closed 8 years ago

vrobot commented 8 years ago

Hello,

What is the OpenCV code for increasing the frames per second in the parrot ar drone 2.0 front camera and lowering the resolution of the camera?

Thank you for your help

puku0x commented 8 years ago

Unfortunately, you can not increase the frame rate of the camera.

If the frame rate of the main loop in your "main.cpp" is slow, decreasing the wait key may help you. Please change the argument value of 33 to 1 in cv::waitKey(). https://github.com/puku0x/cvdrone/blob/master/src/main.cpp#L45

To make the resolution of the camera image, you should use cv::resize().

Regards, puku0x