https://laughingsquid.com/a-high-speed-mm-sorting-machine-that-captures-the-color-of-the-falling-candy-using-an-iphone/
A High-Speed M&M Sorting Machine that Captures the Color of the Falling Candy Using an iPhone