Intelligent Optical Color Sorting Machines.