An optical inspection system for PSS is designed in this thesis. Before this inspection system, some basic image processing functions shall be implemented first , like thresholding , histogram , morphology , and edge detection. Boland C++ 5.0 is the programming tool used for image processing. By taking the real PSS image for inspection, we can optimize the parameter. Also, we can transfer this research to factory automation to reduce the cost and mass production.