Ask Your Question
0

Android: Stretch camera

asked 2013-02-26 20:07:54 -0500

Seb gravatar image

Hi

I'm using the org.opencv.android.NativeCameraView with layout set at fill_parent

In my Java, I have set this

mOpenCvCameraView.setMaxFrameSize(320, 240);

Actually, when I'm running my app, it shows the camera images but at 320x240.

I want to "stretch" it to go full screen without changing the camera resolution.

OpenCV 2.4.4-beta

Thanks Seb

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-18 03:48:25 -0500

Barry Thomas gravatar image

Until the new feature comes out in the next release, here's a temporary fix:

http://answers.opencv.org/question/8639/android-getting-largest-preview-image-possible/

B.

edit flag offensive delete link more

Comments

Thanks! I really appreciate your work

Seb gravatar imageSeb ( 2013-03-26 13:46:34 -0500 )edit
1

answered 2013-02-26 23:08:53 -0500

  1. Current implementation of org.opencv.android.NativeCameraView and org.opencv.android.JavaCameraView does not support stretching at all. The only mode is fitting in view size.

  2. I think it is good idea and I add a ticket on project issue tracker.

edit flag offensive delete link more

Comments

1

Wow, I like how flexible you guys are. That's awesome.

Seb gravatar imageSeb ( 2013-02-27 12:23:10 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2013-02-26 20:07:54 -0500

Seen: 3,202 times

Last updated: Mar 18 '13