Add support for virtual PiCamera2 to manufacturing/retail
jimbobbennett opened this issue · 0 comments
jimbobbennett commented
PiCamera2 is now shipped with the latest Raspberry Pi OS, so we can update the the virtual IoT device code to use a CounterFit version of this.
**This is dependent on this issue being closed: Add shim for PiCamera2
- Update the Capture an image instructions to use the Picamera2 shim
- 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