Ask Your Question
1

Resolution In Android-OpenCV camera

asked Apr 18 '13

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

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Apr 19 '13

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.

Preview: (hide)

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 (Apr 22 '13)edit
0

answered Apr 19 '13

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

Preview: (hide)

Comments

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

NightLife gravatar imageNightLife (Apr 22 '13)edit
1

without interpolation? not possible. you have to compromise.

jayrambhia gravatar imagejayrambhia (Apr 22 '13)edit

Question Tools

Stats

Asked: Apr 18 '13

Seen: 1,793 times

Last updated: Apr 19 '13