Ask Your Question

Android: Stretch camera

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

Seb gravatar image


I'm using the 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

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:


edit flag offensive delete link more


Thanks! I really appreciate your work

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

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

  1. Current implementation of and 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



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


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

Seen: 3,756 times

Last updated: Mar 18 '13