I. Introduction
In the manufacturing process of electronic components, defect detection based on automatic optical detection method is very important [1]–[3]. The defects caused by the assembly of electronic components into circuit boards often affect the function of products and reduce the economic value of products. Therefore, the defect detection technology based on machine vision is more and more widely used in SMT industry [4]–[7].