The traditional PCB defect on-line detection has the problems of long detection time and poor accuracy of detection results. Therefore, a key technology of PCB defect online detection based on machine vision is proposed. Firstly, image retrieval is carried out by using visual detection algorithm, image smoothing, image contrast enhancement, image sharpening and other preprocessing operations are carried out by using gray-scale transformation algorithm to simplify the operation process and improve the image quality; secondly, PC is analyzed B. the causes and types of defects. The original color image is processed and binarized by the hybrid recognition method of mathematical morphology and pattern recognition. Then the reference image obtained by mathematical morphology method is used as a template for system self inspection. Finally, the image aberration detection algorithm is introduced to segment the threshold value of PCB defect image, remove redundant points and mark PCB image defect recognition results, improve the visual detection algorithm and optimize the hardware design to achieve PCB image defect detection and recognition. The experimental results show that the method has high detection accuracy and short detection time, and can effectively control the stable operation of the online detection system, which provides a reference for related research in this field.
Read full abstract