reuterbal / photobooth

A flexible photobooth software
GNU Affero General Public License v3.0
317 stars 158 forks source link

raspicam #122

Closed apm1007 closed 5 years ago

apm1007 commented 5 years ago

im using raspicam as option as mentioned under settings. The picture it takes are just 800x480 pixel per picture. How to change? the current resolution is horrible

mkwlf commented 5 years ago

you can change the resolution in the PiCamera by setting self._cap.resolution = (x, y) in the getPicture() call - check out the Pi Camera manual for the max resolution of your version

mkwlf commented 5 years ago

@apm1007 did you manage to adjust the resolution? - if so, this issue can be closed

apm1007 commented 5 years ago

is it to be set in CameraPicamery.py? Didnt found the line :(

reuterbal commented 5 years ago

It is even better to specify it in the constructor, i.e., replace l. 51 in https://github.com/reuterbal/photobooth/blob/master/photobooth/camera/CameraPicamera.py by

 self._cap = PiCamera(resolution=(x, y))

with (x, y) the tuple of your resolution.

reuterbal commented 5 years ago

Closing this due to inactivity