First time here? Check out the FAQ!

Ask Your Question
0

Android: Stretch camera

asked Feb 27 '13

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

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Mar 18 '13

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.

Preview: (hide)

Comments

Thanks! I really appreciate your work

Seb gravatar imageSeb (Mar 26 '13)edit
1

answered Feb 27 '13

  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.

Preview: (hide)

Comments

1

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

Seb gravatar imageSeb (Feb 27 '13)edit

Question Tools

1 follower

Stats

Asked: Feb 27 '13

Seen: 3,879 times

Last updated: Mar 18 '13