Ask Your Question
1

Resolution In Android-OpenCV camera

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

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?

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

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

Comments

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 -0600 )edit
0

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

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

edit flag offensive delete link more

Comments

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 -0600 )edit
1

without interpolation? not possible. you have to compromise.

jayrambhia gravatar imagejayrambhia ( 2013-04-22 06:23:00 -0600 )edit

Question Tools

Stats

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

Seen: 1,738 times

Last updated: Apr 19 '13