Ask Your Question

Resolution In Android-OpenCV camera

asked 2013-04-18 09:56:01 -0500

NightLife gravatar image

The resolution of my images on my android-openCV application depend on the size of the screen. I need to save the high resolution(1984*1488) images and show the low resolution frame (1/4 times smaller than the saved image) in the screen. I am using "CameraBridgeViewBase" .

What do you propose to me?


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-19 09:05:26 -0500

Andrey Pavlenko gravatar image

Look into the Tutorial-3 (Camera control) sample from the Opencv4Android SDK: it shows camera preview in resolution you can set and takes high-res photo on screen touch.

edit flag offensive delete link more


In this tutorial, the saved images depend on the resolution of srcreen, so it does not save the image more than the screen size image!!!

And the other point is that this example has bug, when I touch the screen , the application will crash!!!

Can you propose me better way or tell me what is the problem of this example?

NightLife gravatar imageNightLife ( 2013-04-21 23:32:31 -0500 )edit

answered 2013-04-19 08:05:48 -0500

Resize the image and save it using Highgui.imwrite("filename", resized_mat);

edit flag offensive delete link more


How can I resize (Increasing the resolution) my Mat Image without destroying image or reducing sharpness of image to save?

NightLife gravatar imageNightLife ( 2013-04-21 23:33:52 -0500 )edit

without interpolation? not possible. you have to compromise.

jayrambhia gravatar imagejayrambhia ( 2013-04-22 06:23:00 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-04-18 09:56:01 -0500

Seen: 1,431 times

Last updated: Apr 19 '13