Camera opencv pixelated and lower fps

asked 2016-11-07 06:38:25 -0600

VCS_DEV gravatar image

updated 2016-11-08 11:13:28 -0600

I need to know a way to quickly find a resolution for the camera where you can reach a fps near 30 and visually preview the camera does not pixelated. I'm using opencv 2.4.13.1 on Android and the class is CameraBridgeViewBase and PortraitCameraView.

I have tried to set a resolution in hardcode much smaller than the highest resolution of the device, something for example 720x1280. But I encountered problems on some devices, even the list of all possible resolutions of the device has the 720x1280, brings me a divergent / smaller resolution of type 720x720. And still the fps I can not leave in an acceptable value (without lags).

mPortraitCameraView.setMaxFrameSize(720, 1280);
edit retag flag offensive close merge delete