I am trying to make a color detection of perler beads. The hardware is working, but I am struggling with the software part. I am using the Picamera with a Raspberry pi A+, o