Add support for PiCamera 2 to Pi code
jimbobbennett opened this issue · 0 comments
jimbobbennett commented
PiCamera2 is now shipped with the latest Raspberry Pi OS, so we can update the code to use this:
- Update the instructions in lesson 2 of manufacturing for the Pi setup to remove the legacy camera instruction
- Update the program the camera task to use Picamera2
- Add a step to the program the camera task to use Pillow to resize/rotate.
large_image = Image.open(raw_image) image = io.BytesIO() large_image = large_image.resize((640, 480)) large_image.save(image, format='JPEG') image.seek(0)
- Update Pi camera code
- Update Pi classify code
- Update Edge classify Pi code
- Update stock detector Pi code
- Update stock counter Pi code