The invention discloses a
chip surface defect detection method,
electronic equipment and a readable medium. The method comprises the following steps: aligning an ROI (
Region of Interest) of a
reference image with a test image through affine transformation; obtaining a gray average value of the ROI of the
reference image and the ROI of the aligned test image, and carrying out gray stretching normalization
processing on the test
image based on the gray average value; respectively carrying out mean filtering on the
reference image and the test image after normalization
processing, and carrying out differential operation to obtain a differential image; performing threshold-based
binary segmentation on the difference image, extracting surface detection candidate areas of bright defects and dark defects, performing morphological
corrosion operation on the surface detection candidate areas to suppress
noise, and generating a final defect
mask; and mapping a defect area in the final defect
mask back to the original test image coordinate
system through inverse transformation of affine transformation. According to the method, high-precision smudginess defect extraction of the IPM
chip area under the background of complex brightness can be realized, and the method is suitable for various complex packaging working conditions.