Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set camera resolution in OpenCV on Android?

Hello!

I'm trying to develop an app for Android, and I would need to get a resolution as high as possible for the camera, through VideoCapture.

Right now I'm stuck in the default 960x720, which is poor for what I need, and my phone, a Samsung Galaxy S3, is able to provide, theoretically, up to 8Mpx (3,264×2,448 for pictures, and 1,920×1,080 for video, according to Wikipedia).

Is there any way to obtain a higher resolution? How?

I'm really sorry if this has been asked before; I have been looking for hours and I have found nothing.

Thank you for your time!

How to set camera resolution in OpenCV on Android?

Hello!

I'm trying to develop an app for Android, and I would need to get a resolution as high as possible for the camera, through VideoCapture.

Right now I'm stuck in the default 960x720, which is poor for what I need, and my phone, a Samsung Galaxy S3, is able to provide, theoretically, up to 8Mpx (3,264×2,448 for pictures, and 1,920×1,080 for video, according to Wikipedia).

Is there any way to obtain a higher resolution? How?

I'm really sorry if this has been asked before; I have been looking for hours and I have found nothing.

Thank you for your time!

EDIT: I'm running OpenCV v2.4, I forgot to mention.