Optical sorting machines inspect grains by means of digital cameras and remove contaminants by a short burst of compressed air, have been successfully used in the rice industry for long time. The defects removed in the rice mill include black spots caused by insect damage, bran streaks, pale green immature kernels and discolored grains.