Ask Your Question
0

How to set size of captured image using Camera()?

asked 2013-09-12 15:32:33 -0500

anonymous user

Anonymous

I can't find the API to set size for image captured from Camera(). I'm using version 1.3

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-09-12 18:12:03 -0500

vle gravatar image

I did that, and then the camera crashed when it tried to getImage() at Camera.py, line 579, in getImage AttributeError: Camera instance has no attribute 'threaded'

If I did not use prop_set, then it was fine.

Thanks for your answer.

edit flag offensive delete link more
1

answered 2013-09-12 15:42:30 -0500

xamox gravatar image

This can be done with the prop_set in the constructor:

from SimpleCV import Camera
cam = Camera(prop_set={'width':640, 'height':480})
img = cam.getImage()
print img.width
edit flag offensive delete link more

Comments

I did that, and then the camera crashed when it tried to getImage() at Camera.py, line 579, in getImage AttributeError: Camera instance has no attribute 'threaded' If I did not use prop_set, then it was fine. Thanks for your answer.

vle gravatar imagevle ( 2013-09-12 18:12:35 -0500 )edit

It maybe your camera doesn't support changing the resolution. Not sure what operating system you are on, but I would check with other software. If you are on Linux you can use the 'cheese' app to test this.

xamox gravatar imagexamox ( 2013-09-13 09:29:46 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-09-12 15:32:33 -0500

Seen: 1,885 times

Last updated: Sep 12 '13