ArduCAM / RaspberryPi

This is Arducam camera demos used on Raspberry Pi paltform
BSD 3-Clause "New" or "Revised" License
168 stars 97 forks source link

RpiCamera.py #82

Closed agama949 closed 2 years ago

agama949 commented 2 years ago

Hello,

I'm not sure if this was an isolated error, or a common error due to library update. For getting the python programs to work I had to change the file RpiCamera.py on line 24 I replaced: self.cam.configure(self.cam.preview_configuration(main={"size":(width, height)},buffer_count=4) with (key work being create_preview_configuration) self.cam.configure(self.cam.create_preview_configuration(main={"size":(width, height)},buffer_count=4)

Please let me know if this is a known issue.

surak commented 2 years ago

You can close this one, it's been committed: https://github.com/ArduCAM/RaspberryPi/blob/6edbde9f3fb4e866e118f6efba5940e1f5a35f09/Motorized_Focus_Camera/python/RpiCamera.py#L24