Ask Your Question

Lowering resolution of cam

asked 2012-09-21 01:46:32 -0500

kyleo gravatar image

updated 2012-09-28 01:07:11 -0500

I have two questions for anyone kind enough to respond:

  1. I tried lowering the resolution of my camera, which is defaulting to 640x480, by creating a prop_set, but it doesn't seem to like it (perhaps it is my camera or it's just not a feature yet)

props = { 'height':240, 'width':320, 'exposure':0 }

Edit: Hmm, still no luck. I can initialize a Camera() instance just fine without any prop_set, but it defaults to 640x480 resolution, which I do not want. That's fine though, I should be able to specify 640x480 resolution anyways, since I know it works with the default call.

cam = Camera(prop_set = {"width": 640, "height": 480})

This actually results in a WARNING:

WARNING: SimpleCV can't seem to find a camera on your system, or the drivers do not work with SimpleCV.

So it can automatically choose that resolution, but it fails when I manually specify the same resolution, leading me to believe I'm missing something.

I'm just trying to get working above with a lower resolution. Logitech Webcam C310. I know the lower res works because I can test with luvcview

luvcview -d /dev/video1 -f yuv -s 320x240 -i 5

Also, you guys work really hard on this stuff and it is simply amazing. I'm just playing around with it in my spare time and find it to be fascinating. Thank you Katherine, et al.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-22 13:21:11 -0500

kscottz gravatar image

What kind of camera are you using? For most cameras the only feature that ever works consistently is the resolution. As far as I can tell your syntax is correct. Can you post a full code snippet? I would also suggest omitting the exposure parameter and seeing what happens. I think camera properties may be an all or nothing thing, so having one bad parameter may foul the whole lot.

We can give you some advice on your task, but it usually helps if you explain what you are trying to do and why.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-09-21 01:46:32 -0500

Seen: 1,207 times

Last updated: Sep 28 '12