Developing and Applying Optoelectronics in Machine Vision