Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV4Android Lower Screen Resolution While Maintaining Fullscreen

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!