L
L
Lion66662016-08-07 17:52:12
Java
Lion6666, 2016-08-07 17:52:12

How to set camera resolution in OpenCV on Android?

Good day to all. I use the OpenCV 3.0.0 library on Android, I connect the camera. The resolution cannot be adjusted, it still remains at the minimum, although it is set to normal:

CameraBridgeViewBase openCVcamera = new JavaCameraView(this, -1);

setContentView(openCVcamera);
openCVcamera.setMinimumWidth(1280);
openCVcamera.setMinimumHeight(960);
openCVcamera.setMaxFrameSize(1280, 960);
openCVcamera.setCvCameraViewListener(this);

What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question