r/roasting • u/Existing_Leopard8267 • 7h ago
DIY camera + projector system that points directly at defective green coffee beans to assist hand sorting (Raspberry Pi) – one side only for now
I built a simple assist system for hand-sorting green coffee beans.
A camera looks at the beans spread out on a tray, detects defective ones (black beans, insect-damaged, moldy, etc.), and a projector shines pointers (red dots/circles) directly onto those positions so you can pick them out more easily.
It’s running on a Raspberry Pi 4B. The idea is not full automation, but a helper that reduces the mental load and eye strain of pure manual sorting. I got the idea after seeing a roasted coffee sorter demo at SCAJ and thought something similar could be useful for green beans at a smaller scale.
Currently it only checks one side because the mechanics for flipping or imaging both sides cleanly are a bit tricky to implement right now.
Current status:
It works “somewhat.” The pointers land roughly in the right places.
Accuracy is still quite rough (false positives/negatives happen).
Calibration between the camera and projector is the main pain point.
I’m sharing it mainly to see if anyone finds the approach interesting or has suggestions on improving the detection side (lighting, model, etc.). Happy to hear thoughts or similar projects you’ve seen.


