Ask Your Question
0

Android: Stretch camera

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

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 -0600

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

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

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

Question Tools

1 follower

Stats

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

Seen: 3,857 times

Last updated: Mar 18 '13