The invention discloses an automobile electronic part defect detection method, and relates to the technical field of automobile electronic part detection, and the method comprises the following steps: S1,
image acquisition; s2, de-noising the image; s3,
image enhancement; s4, carrying out
image segmentation; and S5, defect detection. According to the method, firstly,
image noise is filtered out, a multi-scale
image processing algorithm is used, the image is preliminarily enhanced,
image contour information is enhanced, a final enhanced image is obtained, a defect body is enhanced, it is ensured that
small target defects in the image can be detected, the detection precision is improved, a target part is segmented from a background part, and the detection precision is improved. The method has the advantages that interference of useless areas of background parts on defect detection of the parts is prevented, the defects of the parts are quickly detected, defect positioning is realized, defects of large targets can be detected, influence of detection light is reduced, defects of small targets can be detected and recognized, precise recognition can be performed, and detection precision is improved.