LED semiconductor chip concentrated dirt defect detection method, equipment and medium

Through image preprocessing and enhancement algorithms, combined with the grid defect determination algorithm, the problem of insufficient accuracy and versatility in LED semiconductor chip detection is solved, and accurate detection of concentrated dirt defects in the pad area of ​​the chip is achieved, improving detection robustness. accuracy and accuracy.

CN118470004BActive Publication Date: 2024-10-15SUZHOU GAOSHI SEMICON TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410912680.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing methods for detecting concentrated contamination of LED semiconductor chips have shortcomings in accuracy and versatility. Traditional algorithms rely on positioning accuracy and process stability. Deep learning methods require a large number of defect samples and are time-sensitive, making them difficult to effectively apply in actual production. .

Method used

Using image preprocessing and image enhancement algorithms, through morphological operations and grayscale information segmentation, combined with the grid defect determination algorithm, the concentrated dirt defects in the Pad area of ​​the LED semiconductor chip are automatically detected, reducing the requirements for process stability and reducing errors. detection rate and improve detection robustness.

Benefits of technology

It achieves accurate detection of concentrated contamination defects in LED semiconductor chips, reduces the impact of product differences and lighting factors on detection results, and improves the robustness and accuracy of the detection algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470004B_ABST
    Figure CN118470004B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and medium for detecting concentrated dirt defects in LED semiconductor chips, which are mainly aimed at detecting concentrated scattered dirt defects in the pad area of ​​LED semiconductor chips. Through image preprocessing, image enhancement algorithm, image segmentation based on grayscale information and grid defect judgment algorithm, it can automatically calculate the situation of concentrated dirt distribution in different positions, and can detect concentrated defects with different dirt severity according to parameter adjustment. The present invention uses an artificially designed defect detection algorithm, which does not require the collection of a large amount of defect sample data, and only requires a certain understanding of the defect judgment specifications; the defect detection algorithm designed for customer scenarios can effectively reduce the impact of product differences, lighting and other factors on the detection results, thereby improving the robustness of the detection algorithm; the use of a grid defect judgment algorithm can more effectively reduce the false detection rate of discrete dirt, and can more accurately and effectively identify concentrated dirt defects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED semiconductor chips, and in particular to a method, equipment and medium for detecting concentrated dirt defects in LED semiconductor chips. Background Art

[0002] At present, the centralized dirt detection methods for LED semiconductor chips are generally divided into two categories:

[0003] One type uses traditional algorithms. For example, during detection, the detection image is subtracted from the template image to obtain other abnormal areas that are inconsistent with the template, and then these abnormal areas are quantitatively analyzed. The detection accuracy of this method is very dependent on the positioning accuracy and the stability of the product process. It is difficult to apply it to LED semiconductor chips and has poor versatility.

[0004] The other type uses supervised deep learning methods. For example, the target detection algorithm based on the YOLO series is used to identify abnormal defects. Although this method does not require quality inspectors to have professional algorithm knowledge, it requires the collection of a large number of defect samples to achieve a better detection effect. In actual production, timeliness is very tight, and it is difficult to collect a large number of defect samples. Summary of the invention

[0005] In order to achieve the above-mentioned purpose and other advantages of the present invention, the first purpose of the present invention is to provide a method for detecting concentrated dirt defects of LED semiconductor chips, comprising the following steps:

[0006] The LED semiconductor chip image to be inspected is subjected to morphological processing to enhance the CBL, electrode and dirt features;

[0007] Using an image enhancement algorithm to process the LED semiconductor chip image to highlight the contrast of image defects;

[0008] Segment the enhanced LED semiconductor chip image and divide the area into defective area and normal area;

[0009] Use the roundness information of CBL and electrode to remove the normal area and retain the defective area;

[0010] A grid defect determination algorithm is used to detect concentrated dirt defects in the defect area.

[0011] Furthermore, the step of performing morphological processing on the LED semiconductor chip image to be inspected to enhance the CBL, electrode and dirt features includes:

[0012] The darkening characteristics of dirt in bright field are utilized, and black hat operation is used to enhance the CBL, electrode and dirt features.

[0013] Further, the method of enhancing CBL, electrode and dirt features by black hat operation comprises the following steps:

[0014] Converting the LED semiconductor chip image into a grayscale image;

[0015] Construct a first circular convolution kernel, and perform a black hat operation on the grayscale image using the first circular convolution kernel:

[0016] ;

[0017] in, represent No. Line The grayscale value of the column, is a grayscale image, is the image obtained after black hat operation, is the first circular convolution kernel, It is a closing operation.

[0018] Furthermore, the step of processing the LED semiconductor chip image using an image enhancement algorithm includes:

[0019] The image obtained after black hat operation is processed by a linear transformation enhancement algorithm based on histogram normalization to obtain an enhanced grayscale image.

[0020] Furthermore, the use of a linear transformation enhancement algorithm based on histogram normalization to process the image of the black hat operation result comprises the following steps:

[0021] Get the brightness information of the image obtained after the black hat operation;

[0022] Generate a corresponding histogram according to the brightness information, and output the maximum grayscale value and the minimum grayscale value in the histogram;

[0023] Get the maximum grayscale value and the minimum grayscale value of the enhanced grayscale image;

[0024] Compute the contrast and brightness of an enhanced grayscale image:

[0025] ;

[0026] in, is the contrast, is brightness, is the maximum grayscale value of the enhanced grayscale image, is the minimum grayscale value of the enhanced grayscale image, is the maximum gray value in the histogram, is the minimum value in the histogram;

[0027] Compute the enhanced grayscale image:

[0028] ;

[0029] in, is the height of the grayscale image, is the width of the grayscale image, is the enhanced grayscale image.

[0030] Furthermore, the step of segmenting the enhanced LED semiconductor chip image includes:

[0031] The enhanced grayscale image is segmented by the binary segmentation algorithm to obtain a binary image:

[0032] ;

[0033] in, is the obtained binary image, Set the segmentation threshold.

[0034] Furthermore, the method of removing the normal area and retaining the defective area by using the roundness information of the CBL and the electrode comprises the following steps:

[0035] Construct a second circular convolution kernel and a third circular convolution kernel, and perform an opening operation and then dilation on the binary image to obtain an opening and dilated binary image:

[0036] ;

[0037] in, is the open operation image, is the image expanded after the opening operation, is a second circular convolution kernel, the size of which is smaller than the normal CBL diameter, is the third circular convolution kernel, is the structural element, is the opening operator, is the expansion operator;

[0038] Subtract the binary image after opening and dilation from the binary image to obtain a differential image:

[0039] ;

[0040] in, is the difference image, is the absolute value function;

[0041] The third circular convolution kernel is used to perform an opening operation on the difference image to obtain a rough concentrated dirt segmentation image:

[0042] ;

[0043] in, is the image after opening operation.

[0044] Furthermore, the method of removing normal areas by using the roundness information of the CBL and the electrode and retaining defective areas also includes:

[0045] According to the rough concentrated dirt segmentation image, the interference part thereof is filtered out using the roundness information and the edge information to obtain the concentrated dirt image.

[0046] Furthermore, the filtering of the interference part using the roundness information and the edge information comprises the following steps:

[0047] Using the roundness information to eliminate incomplete circles;

[0048] Utilizing marginal areas The feature with coordinate 0 removes edge interference.

[0049] Furthermore, the calculation of the roundness information includes the following steps:

[0050] According to the rough concentrated dirt segmentation image, blob detection is performed on each small piece of dirt, and the perimeter and area of ​​each small blob are calculated;

[0051] The roundness value of each Blob is calculated according to the roundness formula. The roundness formula is:

[0052] ;

[0053] in, is the circumference, For the area.

[0054] Furthermore, the step of detecting the concentrated dirt defect in the defect area by using a grid defect determination algorithm comprises the following steps:

[0055] Dividing the concentrated dirty image into a plurality of grid areas;

[0056] According to the size and number of the set defects, each grid area is quantitatively analyzed to obtain a grid judgment image;

[0057] Counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, and calculating the ratio of the unqualified grid areas to the total grid areas;

[0058] Compare the calculated ratio with the actual set value;

[0059] If the ratio is greater than or equal to the actual set value, it is determined that the product is concentratedly contaminated;

[0060] If the ratio is smaller than the actual set value, it is determined that there is no concentrated dirt on the product.

[0061] Furthermore, the step of dividing the concentrated dirty image into a plurality of grid areas further comprises:

[0062] For areas whose edges are less than a grid size, the edges are expanded to form a grid area.

[0063] Furthermore, the quantitative analysis of each grid area includes the following steps:

[0064] If the mesh area meets the maximum defect area, the mesh area is directly judged as unqualified;

[0065] If the grid area does not meet the maximum defect area, the small defects in the grid area are counted, and the defects that do not meet the minimum defect area are included in the cumulative number statistics;

[0066] The final score of the grid area is calculated based on the score of the maximum defect area exceeding the standard, the score of the number of small defects exceeding the standard, and the score of the cumulative number exceeding the standard;

[0067] If the final score is greater than or equal to the threshold, the network area is determined to be unqualified:

[0068] ;

[0069] in, Represents the final score under a certain type of defect, Represents the defect score set under a certain type of defect, Represents the actual number of defects detected, Represents the set number of defects.

[0070] Furthermore, before counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, the method further includes:

[0071] The interference of isolated grid areas is eliminated according to the eight-neighborhood algorithm.

[0072] Furthermore, the removing interference from isolated grid areas according to the eight-neighborhood algorithm comprises the following steps:

[0073] Expand all edge grid areas of the entire grid area so that each original grid area has eight neighbors;

[0074] All the expanded grid areas are set as qualified areas;

[0075] Take each unqualified network area as the center and determine whether there is an unqualified network area in its eight neighborhoods;

[0076] If yes, the network area is considered as an unqualified grid area;

[0077] If not, the network area is considered to be an isolated grid area and is re-judged as a qualified grid area.

[0078] The second object of the present invention is to provide an electronic device, comprising: a memory on which a program code is stored; a processor connected to the memory and implementing the above method when the program code is executed by the processor.

[0079] A third object of the present invention is to provide a computer-readable storage medium having program instructions stored thereon, wherein the program instructions implement the above method when executed.

[0080] Compared with the prior art, the present invention has the following beneficial effects:

[0081] The present invention provides a method, device and medium for detecting concentrated dirt defects in LED semiconductor chips, which are mainly aimed at detecting concentrated distributed scattered dirt defects in the Pad area of ​​LED semiconductor chips. Through image preprocessing, image enhancement algorithm, image segmentation based on grayscale information and grid defect judgment algorithm, the concentrated distribution of dirt in different positions can be automatically calculated, and concentrated defects with different dirt severity levels can be detected according to parameter adjustment.

[0082] The present invention uses an artificially designed defect detection algorithm, which does not require the collection of a large amount of defect sample data, and only requires a certain understanding of the defect judgment specifications; the defect detection algorithm designed for customer scenarios can effectively reduce the impact of factors such as product differences and lighting on the detection results, thereby improving the robustness of the detection algorithm; the use of a grid defect judgment algorithm can more effectively reduce the false detection rate of discrete dirt, and can more accurately and effectively identify concentrated dirt defects.

[0083] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. The specific implementation of the present invention is given in detail by the following embodiments and their accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0085] Figure 1This is a flow chart of the method for detecting concentrated dirt defects in LED semiconductor chips according to Example 1;

[0086] Figure 2 This is a flow chart of using black hat operations to enhance CBL, electrode and dirt features in Example 1;

[0087] Figure 3 This is a flowchart of the image enhancement process in Example 1;

[0088] Figure 4 The flowchart of removing normal areas and retaining defective areas in Example 1;

[0089] Figure 5 This is a flow chart of centralized dirt defect detection in Example 1;

[0090] Figure 6 This is a flow chart of quantitative analysis of grid areas in Example 1;

[0091] Figure 7 This is a flow chart of removing isolated grid areas using the eight-neighborhood algorithm of Example 1;

[0092] Figure 8 is the grayscale image of Example 1;

[0093] Fig. 9 is the image obtained after the black hat operation in Example 1;

[0094] Fig.10 is the enhanced grayscale image of Example 1;

[0095] Fig.11 is the binarized image of Example 1;

[0096] Fig.12 is the difference image of Example 1;

[0097] Fig.13 This is the rough concentrated dirt segmentation image of Example 1;

[0098] Fig.14 This is the concentrated dirty image of Example 1;

[0099] Fig.15 The grid determination image of Example 1;

[0100] Fig.16 The eight-neighborhood grid determination image of Example 1;

[0101] Fig.17 is the normal sample image of Example 1;

[0102] Fig.18 is the abnormal sample image of Example 1;

[0103] Fig.19 is a schematic diagram of an electronic device of Example 2;

[0104] Fig. 20 This is a schematic diagram of the storage medium of Example 3.

[0105] In the figure: 1. Electrode area; 2. CBL area; 3. Pad area. DETAILED DESCRIPTION

[0106] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. It should be noted that, under the premise of no conflict, the embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0107] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.

[0108] The figure numbers in this application are only used to distinguish the various steps in the scheme, and are not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.

[0109] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. Example 1

[0110] A method for detecting concentrated dirt defects in LED semiconductor chips is suitable for detecting concentrated and scattered dirt defects in the LED semiconductor chip Pad area, such as Figure 1 As shown, the method comprises the following steps:

[0111] S1. Perform morphological processing on the image of the LED semiconductor chip to be detected, enhance the current blocking layer (CBL), electrode and dirt features, and ensure obvious contrast of the non-uniform area in the region; wherein the image of the LED semiconductor chip to be detected can be an LED semiconductor chip image acquired by an image acquisition device such as a camera.

[0112] In some embodiments, the step of performing morphological processing on the LED semiconductor chip image to be inspected to enhance CBL, electrode and dirt features includes:

[0113] By utilizing the darkening characteristics of dirt under bright field, black hat operation is used to enhance the CBL, electrode and dirt features to ensure obvious contrast of non-uniform areas in the region.

[0114] Specifically, Figure 2 As shown, the use of black hat operations to enhance CBL, electrode and dirt features includes the following steps:

[0115] S11, converting the LED semiconductor chip image into a grayscale image, such as Figure 8 As shown;

[0116] S12, construct a first circular convolution kernel, and perform a black hat operation on the grayscale image using the first circular convolution kernel. The image obtained after the black hat operation is as follows: Fig. 9 As shown:

[0117] ;

[0118] in, represent No. Line The grayscale value of the column, is a grayscale image, is the image obtained after black hat operation, is the first circular convolution kernel, the size of which can be set according to actual conditions. It is a closing operation.

[0119] S2, using an image enhancement algorithm to process the LED semiconductor chip image to highlight the contrast of image defects;

[0120] In some embodiments, the step of processing the LED semiconductor chip image using an image enhancement algorithm includes:

[0121] The image obtained after the black hat operation is processed by a linear transformation enhancement algorithm based on histogram normalization to obtain an enhanced grayscale image, such as Fig.10 shown.

[0122] Specifically, Figure 3 As shown, the method of processing the image of the black hat operation result by using the linear transformation enhancement algorithm based on histogram normalization includes the following steps:

[0123] S21, obtaining brightness information of the image obtained after the black hat operation;

[0124] S22: Generate a corresponding histogram according to the brightness information, and output the maximum grayscale value in the histogram With the minimum gray value ;

[0125] S23, obtaining the maximum grayscale value and the minimum grayscale value of the enhanced grayscale image; general settings , ;

[0126] S24. Calculate the contrast of the enhanced grayscale image and brightness :

[0127] ;

[0128] in, is the contrast, is brightness, is the maximum grayscale value of the enhanced grayscale image, is the minimum grayscale value of the enhanced grayscale image, is the maximum gray value in the histogram, is the minimum value in the histogram;

[0129] S25. Calculate the enhanced grayscale image:

[0130] ;

[0131] in, is the height of the grayscale image, is the width of the grayscale image, is the enhanced grayscale image.

[0132] S3, segmenting the enhanced LED semiconductor chip image, dividing the region into a defect region and a normal region;

[0133] In some embodiments, the step of segmenting the enhanced LED semiconductor chip image includes:

[0134] The enhanced grayscale image is segmented by a binary segmentation algorithm to obtain a binary image, such as Fig.11 As shown:

[0135] ;

[0136] in, is the obtained binary image, Set the segmentation threshold.

[0137] S4, using the CBL and the roundness information of the electrode to further eliminate the normal area and retain the defective area;

[0138] In some embodiments, Figure 4 As shown, the method of using the roundness information of the CBL and the electrode to remove the normal area and retain the defective area includes the following steps:

[0139] S41, constructing a second circular convolution kernel and a third circular convolution kernel, and performing an opening operation and then dilation on the binary image to obtain a binary image after the opening operation and dilation:

[0140] ;

[0141] in, is the open operation image, is the image expanded after the opening operation, is the second circular convolution kernel, the size of which should be smaller than the normal CBL diameter, is the third circular convolution kernel. For example, the size of the third circular convolution kernel can be set to 3*3. is the structural element, is the opening operator, is the expansion operator;

[0142] S42, subtract the binary image after the opening operation and dilation from the binary image, and at this time, the complete CBL area and the electrode area can be filtered out to obtain a differential image, such as Fig.12 As shown:

[0143] ;

[0144] in, is the difference image, is the absolute value function;

[0145] S43, using the third circular convolution kernel to perform an opening operation on the difference image to obtain a rough concentrated dirt segmentation image, such as Fig.13 As shown:

[0146] ;

[0147] in, is the image after opening operation.

[0148] This method filters the complete interference area by constructing a convolution kernel. Compared with directly performing template subtraction, it reduces the requirements on the process stability of the product and is more robust for product detection.

[0149] In some embodiments, the method of removing normal areas and retaining defective areas by using the roundness information of the CBL and the electrode further includes:

[0150] S44, based on the rough concentrated dirt segmentation image, the interference part thereof is filtered out using the roundness information and the edge information to obtain a concentrated dirt image, such as Fig.14 shown.

[0151] Specifically, the dirty image obtained in step S43 is analyzed to obtain interferences of semicircular arcs and edge regions. In order to effectively filter out such interferences, the non-complete circles are eliminated using the roundness information; for example, according to the distribution of the remaining semicircular CBLs and the roundness characteristics, some edge and semicircular CBLs are filtered out, that is, the semicircular arcs are eliminated using the "roundness", and the complete dirty defect area is obtained; the edge area is used to filter out the semicircular CBLs. The feature with coordinate 0 removes edge interference.

[0152] Among them, roundness is usually used to describe the roundness of a shape, and is a value between 0 and 1, where 1 means a perfect circle and 0 means a completely irregular shape with no circular features. Roundness is usually calculated based on the perimeter and area of ​​the shape. Specifically, the calculation of the roundness information includes the following steps:

[0153] According to the rough concentrated dirt segmentation image, blob detection is performed on each small piece of dirt, and the perimeter of each blob is calculated. and area ;

[0154] The roundness value of each Blob is calculated according to the roundness formula. The roundness formula is:

[0155] ;

[0156] in, is the circumference, circumference This can be done through OpenCV's "Function obtains, is the area, area This can be done through OpenCV's "Function is obtained.

[0157] S5. Using a grid defect determination algorithm to detect concentrated dirt defects in the defective area.

[0158] In some embodiments, Figure 5 As shown, the step of using a grid defect determination algorithm to detect the concentrated dirt defect in the defect area includes the following steps:

[0159] S51, dividing the concentrated dirt image into a plurality of grid areas; for example, after obtaining a complete dirt image, detecting the width and height of the concentrated dirt image, setting the size of a single grid area according to actual needs, and dividing the defect area into a plurality of grid areas of equal width and height.

[0160] In some embodiments, the step of dividing the concentrated dirty image into a plurality of grid areas further comprises:

[0161] The edge of the area whose edge is less than one grid size is expanded, that is, the area whose edge is less than one grid size is automatically compensated to form a grid area, and multiple grid areas with equal width and height can be obtained.

[0162] S52, according to the size and number of the set defects, quantitative analysis is performed on each individual grid area to obtain a grid determination image, such as Fig.15 As shown, NG means the network area is unqualified and OK means the grid area is qualified.

[0163] In some embodiments, Figure 6 As shown, the quantitative analysis of each grid area includes the following steps:

[0164] S521, if the mesh area meets the maximum defect area, directly determine that the mesh area is unqualified (NG);

[0165] S522, if the grid area does not meet the maximum defect area, then count the small defects in the grid area, and count the defects that do not meet the minimum defect area into the cumulative number statistics;

[0166] S523. Calculate the final score of the grid area based on the maximum defect area exceeding standard score, the small defect quantity exceeding standard score, and the cumulative quantity exceeding standard score. For example, three defect scores are divided, namely, the maximum area exceeding standard score is 1.0, the small defect quantity exceeding standard score is 0.8, and the cumulative quantity exceeding standard score is 0.5, and the final score of the grid area is calculated based on this.

[0167] S524, if the final score is greater than or equal to the threshold, the network area is determined to be unqualified, for example, if the final score is greater than or equal to 1.0, the grid area is determined to be NG;

[0168] ;

[0169] in, Represents the final score under a certain type of defect, Represents the defect score set under a certain type of defect, Represents the actual number of defects detected, Represents the set number of defects.

[0170] For example, first, according to actual needs, the detection area image is divided into multiple grid areas of equal width and height using the set grid size. When the width and height of the detection area image are not integer multiples of the grid size, the missing part of the edge is automatically expanded. Then, according to the actual scene, the size and number of defects are set, and each individual grid area is quantitatively analyzed. The dirt that meets the maximum defect area is directly judged as NG, and the number of small defects is counted. Those that do not meet the minimum defect area are included in the cumulative number statistics, and three types of defect scores are divided, namely, the maximum area exceeds the standard by 1.0, the number of small defects exceeds the standard by 0.8, and the cumulative number exceeds the standard by 0.5. The final score of the grid is calculated based on this. If the final score is greater than or equal to 1.0, the grid is judged to be NG.

[0171] S53, counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, and calculating the ratio of the unqualified grid areas to the total grid areas;

[0172] S54, comparing the calculated ratio with the actual set value;

[0173] S55, if the ratio is greater than or equal to the actual set value, it is determined that the product is centrally contaminated;

[0174] S56. If the ratio is smaller than the actual set value, it is determined that there is no concentrated dirt on the product.

[0175] In some embodiments, before counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, the method further includes:

[0176] The interference of isolated grid areas is eliminated according to the eight-neighborhood algorithm. That is, after the grid judgment image is obtained through step S52, the eight-neighborhood analysis is performed on each NG grid according to the distribution of the NG grid. If one or more NG grids appear in the eight-neighborhood of the current grid, the grid is considered NG. Otherwise, the grid is an isolated grid. At this time, the grid is judged as an OK grid, and the eight-neighborhood grid judgment effect diagram is obtained, as shown in FIG. Fig.16 Compared to Fig.15 The grid judgment image shown, Fig.16 The NG grid in the first row and second column is changed to an OK grid. Fig.16 The NG grid in the lower left corner was also changed to an OK grid.

[0177] Then, the number of NG grids and the total number of grids in the eight-neighborhood grid judgment image is counted, the ratio of NG grids to the total grids is calculated, and the ratio is compared with the actual set value. If the ratio is greater than or equal to the set value, it is judged that the product has concentrated dirt, otherwise the product has no concentrated dirt.

[0178] In some embodiments, Figure 7As shown, the elimination of interference in isolated grid areas according to the eight-neighborhood algorithm includes the following steps:

[0179] S500, expanding the grid area of ​​all edge grid areas of the entire grid area so that each original grid area has eight neighborhoods;

[0180] S501, setting all the expanded grid areas as qualified areas (OK), and then performing eight-neighborhood analysis;

[0181] S502, taking each unqualified network area as the center, re-determine the central grid area of ​​each NG, specifically, determine whether there is an unqualified network area in its eight neighborhoods;

[0182] S503: Yes, the network area is considered to be an unqualified grid area; that is, if one or more NG grid areas appear in the eight neighborhoods of the current grid area, the grid area is considered to be NG.

[0183] S504: No, the network area is considered to be an isolated grid area, and the grid area is changed to a qualified grid area.

[0184] According to the NG grids re-determined in steps S500-S504, the number of NG grids and the total number of grids are counted (the total number of grids does not include the OK grids expanded in step S500), the ratio of NG grids to the total number of grids is calculated, and the ratio is compared with the actual set value. If the ratio is greater than or equal to the set value, it is determined that the product has concentrated dirt, otherwise the product has no concentrated dirt.

[0185] The present invention provides a method for detecting concentrated dirt defects in LED semiconductor chips. Through image preprocessing, image enhancement algorithm, image segmentation based on grayscale information and grid defect judgment algorithm, the concentrated distribution of dirt in different positions can be automatically calculated. According to parameter adjustment, concentrated defects with different dirt severity levels can be detected. For normal samples such as Fig.17 Specifically, during detection, the contrast between the pad area and the dirty area is first increased through image preprocessing and image enhancement algorithms; secondly, the enhanced image is segmented through grayscale information, as shown in Fig.18 As shown, three parts are obtained, namely, the Pad area 3, the CBL area 2 and the electrode area 1; then, according to the characteristics of the CBL area and the electrode area, the area is filtered using roundness information and morphological operations to obtain a Pad area without other interferences; finally, the grid defect judgment algorithm can be used to detect concentrated dirt defects.

[0186] The present invention uses an artificially designed defect detection algorithm, which does not require the collection of a large amount of defect sample data, and only requires a certain understanding of the defect judgment specifications; the defect detection algorithm designed for customer scenarios can effectively reduce the impact of factors such as product differences and lighting on the detection results, thereby improving the robustness of the detection algorithm; the use of a grid defect judgment algorithm can more effectively reduce the false detection rate of discrete dirt, and can more accurately and effectively identify concentrated dirt defects. Example 2

[0187] An electronic device, such as Fig.19 As shown, it includes: a memory on which program codes are stored; a processor connected to the memory, and when the program codes are executed by the processor, a method for detecting concentrated dirt defects in LED semiconductor chips is implemented. For a detailed description of the method, reference can be made to the corresponding description in the above method embodiment, which will not be repeated here. Example 3

[0188] A computer readable storage medium such as Fig. 20 As shown, program instructions are stored thereon, and when the program instructions are executed, a method for detecting concentrated dirt defects in LED semiconductor chips is implemented. For a detailed description of the method, reference may be made to the corresponding description in the above method embodiment, and no further description is given here.

[0189] The number of devices and processing scales described here are used to simplify the description of the present invention. Applications, modifications and variations of the present invention will be obvious to those skilled in the art.

[0190] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and implementation modes. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

[0191] The apparatus, electronic device, non-volatile computer storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, electronic device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, electronic device and non-volatile computer storage medium will not be repeated here.

[0192] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software units for implementing the method and structures within the hardware component.

[0193] The systems, devices or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by functions in various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or more software and / or hardware.

[0194] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0195] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0196] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0197] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0198] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0199] The specification may be described in the general context of computer-executable instructions executed by a computer, such as program units. Generally, program units include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program units may be located in local and remote computer storage media, including storage devices.

[0200] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0201] The above description is only an embodiment of this specification and is not intended to limit one or more embodiments of this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of one or more embodiments of this specification.

Claims

1. A method for detecting concentrated dirt defects in LED semiconductor chips, characterized in that: The following steps are involved: The LED semiconductor chip image to be inspected is subjected to morphological processing to enhance the CBL, electrode and dirt features; Using an image enhancement algorithm to process the LED semiconductor chip image to highlight the contrast of image defects; Segment the enhanced LED semiconductor chip image and divide the area into defective area and normal area; Use the roundness information of CBL and electrode to remove the normal area and retain the defective area; Using a grid defect determination algorithm to detect concentrated dirt defects in the defect area; The step of performing morphological processing on the LED semiconductor chip image to be inspected to enhance the CBL, electrode and dirt features includes: Using the darkening feature of dirt in bright field, black hat operation is used to enhance the CBL, electrode and dirt features; The method of enhancing CBL, electrode and dirt features by black hat operation comprises the following steps: Converting the LED semiconductor chip image into a grayscale image; Construct a first circular convolution kernel, and perform a black hat operation on the grayscale image using the first circular convolution kernel: ; in, represent No. Line The grayscale value of the column, is a grayscale image, is the image obtained after black hat operation, is the first circular convolution kernel, It is a closing operation; The step of processing the LED semiconductor chip image using an image enhancement algorithm comprises: The image obtained after black hat operation is processed by a linear transformation enhancement algorithm based on histogram normalization to obtain an enhanced grayscale image; The method of processing the image of the black hat operation result by using the linear transformation enhancement algorithm based on histogram normalization comprises the following steps: Get the brightness information of the image obtained after the black hat operation; Generate a corresponding histogram according to the brightness information, and output the maximum grayscale value and the minimum grayscale value in the histogram; Get the maximum grayscale value and the minimum grayscale value of the enhanced grayscale image; Compute the contrast and brightness of an enhanced grayscale image: ; in, is the contrast, is brightness, is the maximum grayscale value of the enhanced grayscale image, is the minimum grayscale value of the enhanced grayscale image, is the maximum gray value in the histogram, is the minimum value in the histogram; Compute the enhanced grayscale image: ; in, is the height of the grayscale image, is the width of the grayscale image, is the enhanced grayscale image; The step of segmenting the enhanced LED semiconductor chip image comprises: The enhanced grayscale image is segmented by the binary segmentation algorithm to obtain a binary image: ; in, is the obtained binary image, is the segmentation threshold set; The method of using the CBL and the roundness information of the electrode to remove the normal area and retain the defective area includes the following steps: Construct a second circular convolution kernel and a third circular convolution kernel, and perform an opening operation and then dilation on the binary image to obtain an opening and dilated binary image: ; in, is the open operation image, is the image expanded after the opening operation, is a second circular convolution kernel, the size of which is smaller than the normal CBL diameter, is the third circular convolution kernel, is the structural element, is the opening operator, is the expansion operator; Subtract the binary image after opening and dilation from the binary image to obtain a differential image: ; in, is the difference image, is the absolute value function; The third circular convolution kernel is used to perform an opening operation on the difference image to obtain a rough concentrated dirt segmentation image: ; in, is the image after opening operation; The method of using the CBL and the roundness information of the electrode to remove the normal area and retain the defective area also includes: According to the rough concentrated dirt segmentation image, the interference part thereof is filtered out by using the roundness information and the edge information to obtain a concentrated dirt image; The step of using a grid defect determination algorithm to detect the concentrated dirt defect in the defect area comprises the following steps: Dividing the concentrated dirty image into a plurality of grid areas; According to the size and number of the set defects, each grid area is quantitatively analyzed to obtain a grid judgment image; Counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, and calculating the ratio of the unqualified grid areas to the total grid areas; Compare the calculated ratio with the actual set value; If the ratio is greater than or equal to the actual set value, it is determined that the product is concentratedly contaminated; If the ratio is smaller than the actual set value, it is determined that there is no concentrated dirt on the product.

2. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 1, characterized in that: The method of filtering the interference part by using the roundness information and the edge information comprises the following steps: Using the roundness information to eliminate incomplete circles; Utilizing marginal areas The feature with coordinate 0 removes edge interference.

3. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 2, characterized in that: The calculation of the roundness information comprises the following steps: According to the rough concentrated dirt segmentation image, blob detection is performed on each small piece of dirt, and the perimeter and area of ​​each small blob are calculated; The roundness value of each Blob is calculated according to the roundness formula. The roundness formula is: ; in, is the circumference, For the area.

4. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 1, characterized in that: The step of dividing the concentrated dirty image into a plurality of grid areas also includes: For areas whose edges are less than a grid size, the edges are expanded to form a grid area.

5. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 1, characterized in that: The quantitative analysis of each grid area comprises the following steps: If the mesh area meets the maximum defect area, the mesh area is directly judged as unqualified; If the grid area does not meet the maximum defect area, the small defects in the grid area are counted, and the defects that do not meet the minimum defect area are included in the cumulative number statistics; The final score of the grid area is calculated based on the score of the maximum defect area exceeding the standard, the score of the number of small defects exceeding the standard, and the score of the cumulative number exceeding the standard; If the final score is greater than or equal to the threshold, the network area is determined to be unqualified: ; in, Represents the final score under a certain type of defect, Represents the defect score set under a certain type of defect, Represents the actual number of defects detected, Represents the set number of defects.

6. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 5, characterized in that: Before counting the number of unqualified grid areas and the total number of grid areas in the grid determination image, the method further includes: The interference of isolated grid areas is eliminated according to the eight-neighborhood algorithm.

7. A method for detecting concentrated contamination defects of LED semiconductor chips as claimed in claim 6, characterized in that: Eliminating interference in isolated grid areas according to the eight-neighborhood algorithm comprises the following steps: Expand all edge grid areas of the entire grid area so that each original grid area has eight neighbors; All the expanded grid areas are set as qualified areas; Take each unqualified network area as the center and determine whether there is an unqualified network area in its eight neighborhoods; If yes, the network area is considered as an unqualified grid area; If not, the network area is considered to be an isolated grid area and is re-judged as a qualified grid area.

8. An electronic device, characterized in that: include: A memory having program code stored therein; A processor connected to the memory, and when the program code is executed by the processor, the method according to any one of claims 1 to 7 is implemented.

9. A computer-readable storage medium, characterized in that: Program instructions are stored thereon, and when the program instructions are executed, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Rapid lens flaw detection method and apparatus thereof

    CN102735695A

  • Infrared ship target detection and recognition method in complex sea surface environment

    CN111626290A

  • Grid defect detection method and device for filter screen

    CN114913123A

  • Wafer appearance defect detection method based on machine vision

    CN116012292A

  • Crystal appearance defect detection method based on deep learning image segmentation

    CN116612116A