OpenCV4Android Lower Screen Resolution While Maintaining Fullscreen

asked 2016-08-10 11:52:11 -0500

SumeetB gravatar image

I am making an OpenCV app on android that needs a lowered resolution of 640x480 to compensate for the heavy image processing I am doing. I do this in the main activity like so:

mOpenCvCameraView.setMaxFrameSize(640, 480);

Where mOpenCvCameraView is of type JavaCameraView. The problem with this is that it shrinks the dimensions of the actual frame so that the camera preview is not fullscreen. Is there a way to stretch the small frame to fit my phone screen's dimensions, or is there a better way of going about this? Thanks in advance!

edit retag flag offensive close merge delete