英文摘要 |
This paper examines the image processing technology to automatically detect surface defects happening to the vehicle plastic lens. Defects usually happen during the lens manufacturing process such as scratches, dirt, and pores, and these defects are difficult to detect manually. To deal with these issues, firstly, an experimental platform is established for machine vision, including a personal computer, Basler Gige Ethernet, telecentric lens, CCD camera, LED ring light and constant current dimmable driver. Image processing methods are then developed to detect lens defects. Secondly, template matching and 2D metrology algorithms are used to position the lens. Thirdly, Gaussian Laplacian filter is used to enhance the defect edge, and then dynamic binarization is used to segment the defect. Fourthly, the defect image is connected by morphological expansion and erosion method. Fifthly, the location of the defect is marked by opening and closing method, and the size of the defect area is calculated through feature extraction. Finally, the effectiveness of the method proposed in this paper is verified through the actual plastic lens detection experiment, and the defect identification success rate is up to 97%. |