CN112053356A - Method and device for detecting defects at pins of plastic packaged semiconductor - Google Patents

Method and device for detecting defects at pins of plastic packaged semiconductor Download PDF

Info

Publication number
CN112053356A
CN112053356A CN202010978844.9A CN202010978844A CN112053356A CN 112053356 A CN112053356 A CN 112053356A CN 202010978844 A CN202010978844 A CN 202010978844A CN 112053356 A CN112053356 A CN 112053356A
Authority
CN
China
Prior art keywords
defects
image
gray
determined
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010978844.9A
Other languages
Chinese (zh)
Other versions
CN112053356B (en
Inventor
李正大
张正
王润宇
廖晶
任培昊
王顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gaoshi Technology Suzhou Co ltd
Original Assignee
Huizhou Govion Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Govion Technology Co ltd filed Critical Huizhou Govion Technology Co ltd
Priority to CN202010978844.9A priority Critical patent/CN112053356B/en
Publication of CN112053356A publication Critical patent/CN112053356A/en
Application granted granted Critical
Publication of CN112053356B publication Critical patent/CN112053356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30148Semiconductor; IC; Wafer

Abstract

The disclosure relates to a method and a device for detecting defects at plastic package semiconductor pins, wherein the method comprises the following steps: acquiring an image at the plastic package semiconductor pin; selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image; determining a defect to be determined in the image according to the binary image; and determining the defects at the pins of the plastic packaged semiconductor according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined. According to the method, the defect to be determined in the image is compared with the mean value of the gray values of the adjacent areas, so that whether the defect to be determined is really the defect at the plastic package semiconductor pin can be judged more accurately, and the misjudgment caused by directly judging the defect by using a fixed gray threshold value is avoided.

Description

Method and device for detecting defects at pins of plastic packaged semiconductor
Technical Field
The disclosure relates to the field of visual inspection, in particular to a method and a device for detecting defects at pins of a plastic packaged semiconductor.
Background
In general, when a semiconductor is molded, a molding defect at a semiconductor pin is caused by uneven application of a paste to the semiconductor pin or breakage of a molding material (e.g., glass, transparent resin, or the like). When the plastic package defect is detected, the plastic package defect appears as a white patch (white spot) in the detection image. However, due to the problems of the plastic package material and the visual angle, the white spots and the entire plastic package are not accurately developed, and therefore, erroneous judgment is likely to occur when the white spots in the image are detected by using a method of fixing a gray level threshold.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for detecting defects at plastic packaged semiconductor pins.
According to a first aspect of the embodiments of the present disclosure, a method for detecting defects at a plastic package semiconductor pin is provided. The detection method comprises the following steps: acquiring an image at the plastic package semiconductor pin; selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image; determining a defect to be determined in the image according to the binary image; and determining the defects at the pins of the plastic packaged semiconductor according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined.
Optionally, the binarizing the image by selecting a gray value from the gray values of all the pixels in the image as a binarization threshold to obtain a binary image includes: sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels; determining the binarization threshold value according to the gray value array and the following formula:
Figure DEST_PATH_IMAGE001
wherein, aiRepresents the array A { a }1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
Optionally, a first minimum threshold T1m and a first maximum threshold T1n of the total number of all defective pixels in the image are obtained, and k is set to: k is more than or equal to T1m and less than or equal to T1 n.
Optionally, the determining, according to the binary image, a defect to be determined in the image includes: extracting and storing the defect connected domain according to the binary image; and determining a region corresponding to the defect connected domain in the image, and determining the defect to be determined.
Optionally, the extracting and storing the defect connected domain according to the binary image includes: acquiring a second minimum threshold and a second maximum threshold of the number of pixels of a single defect in the image; extracting the defect connected domain, and saving the defect connected domain with the pixel number smaller than the second maximum threshold and larger than the second minimum threshold.
Optionally, the determining the defect at the plastic package semiconductor pin according to the comparison between the gray value mean of the defect to be determined and the gray value mean of the adjacent region of the defect to be determined includes: calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the adjacent regions of the defects to be determined; and determining the defects at the plastic package semiconductor pins according to the comparison between the difference and a preset reference value.
Optionally, the calculating the difference between the mean gray value of the defect to be determined and the mean gray value of the adjacent region of the defect to be determined includes: and calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the boundary area surrounding the defects to be determined.
Optionally, the boundary region is formed by extending a preset number of pixels outside the defect to be determined.
According to a second aspect of the embodiments of the present disclosure, there is provided a device for detecting defects at a plastic package semiconductor pin, wherein the device comprises: the acquisition unit is used for acquiring an image at the plastic package semiconductor pin; the binarization unit is used for selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image; the middle determining unit is used for determining the defects to be determined in the image according to the binary image; and the defect determining unit is used for determining the defects at the plastic package semiconductor pins according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined.
Optionally, the binarization unit is configured to select a gray value from gray values of all pixels in the image as a binarization threshold to binarize the image to obtain a binary image, where: sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels; determining the binarization threshold value according to the gray value array and the following formula:
Figure 790059DEST_PATH_IMAGE001
wherein, aiRepresents the array A { a }1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
Optionally, the binarization unit is configured to obtain a first minimum threshold T1m and a first maximum threshold T1n of the total number of all defective pixels in the image, and set k as: k is more than or equal to T1m and less than or equal to T1 n.
Optionally, the intermediate determination unit is configured to determine the defect to be determined in the image according to the binary image in the following manner: extracting and storing the defect connected domain according to the binary image; and determining a region corresponding to the defect connected domain in the image, and determining the defect to be determined.
Optionally, the intermediate determining unit is configured to extract and store the defect connected domain according to the binary map in the following manner: acquiring a second minimum threshold and a second maximum threshold of the number of pixels of a single defect in the image; extracting the defect connected domain, and saving the defect connected domain with the pixel number smaller than the second maximum threshold and larger than the second minimum threshold.
Optionally, the defect determining unit is configured to determine the defect at the plastic package semiconductor pin according to a comparison between the mean value of the gray-scale values of the defect to be determined and the mean value of the gray-scale values of the adjacent region of the defect to be determined by adopting the following method: calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the adjacent regions of the defects to be determined; and determining the defects at the plastic package semiconductor pins according to the comparison between the difference and a preset reference value.
Optionally, the defect determining unit is configured to calculate a difference between the mean gray value of the defect to be determined and the mean gray value of the adjacent region of the defect to be determined by: and calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the boundary area surrounding the defects to be determined.
Optionally, the boundary region is formed by extending a preset number of pixels outside the defect to be determined.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the defect detection is carried out by utilizing the contrast of the defect gray value mean value and the adjacent area gray value mean value, whether the defect is really the defect at the plastic package semiconductor pin can be judged more accurately, and therefore the misjudgment caused by directly judging the defect by using a fixed gray threshold value is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a flow chart illustrating a method for detecting defects at a plastic encapsulated semiconductor pin in accordance with an exemplary embodiment;
fig. 2 is a block diagram illustrating an apparatus for detecting defects at plastic packaged semiconductor pins according to an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be understood that the terms "first," "second," "third," and "fourth," etc. in the claims, description, and drawings of the present disclosure are used to distinguish between different objects and are not used to describe a particular order. The terms "comprises" and "comprising," when used in the specification and claims of this disclosure, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The present disclosure provides a method for detecting defects at plastic package semiconductor pins. Referring to fig. 1, fig. 1 is a flow chart illustrating a method for detecting defects at a plastic packaged semiconductor pin according to an exemplary embodiment. As shown in FIG. 1, the method for detecting defects at the pins of the plastic packaged semiconductor comprises the following steps S101-S104.
Step S101: and acquiring an image at the plastic package semiconductor pin.
Step S102: and selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image.
Step S103: and determining the defects to be determined in the image according to the binary image.
Step S104: and determining the defects at the pins of the plastic packaged semiconductor according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined.
The respective steps will be described in detail below.
In step S101, an image at the plastic packaged semiconductor pins is acquired.
According to the embodiment of the disclosure, in order to detect whether the plastic packaged semiconductor pin has a defect, the image at the plastic packaged semiconductor pin can be directly or indirectly acquired, for example, the plastic packaged semiconductor can be directly imaged by using an imaging device, or a pre-saved image of the plastic packaged semiconductor can be acquired from other components through transmission. The image at the pins of the plastic packaged semiconductor includes, but is not limited to, images of all pin positions, and may include images of other positions of the plastic packaged semiconductor. Defects at the plastic packaged semiconductor pins may appear as white patches (white spots) in the inspection image.
In step S102, a gray value is selected from the gray values of all the pixels in the image as a binarization threshold to binarize the image, so as to obtain a binary image.
This step is used to more reasonably binarize the image to obtain a subsequent binary image that is more accurate in identifying defects, according to embodiments of the present disclosure. The gray values of all pixels in the image can be extracted by any suitable method such as an at function of Opencv, and then a gray value can be selected from the gray values by any suitable binarization threshold selection algorithm to be used as a binarization threshold to binarize the image, so as to obtain a binary image of the image, and certainly, a gray value can be manually selected to be used as the binarization threshold.
Preferably, the binarizing the image by selecting a gray value from gray values of all pixels in the image as a binarization threshold to obtain a binary image includes: sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels; determining the binarization threshold value according to the gray value array and the following formula:
Figure 263897DEST_PATH_IMAGE001
wherein, aiRepresents the array A { a }1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
Specifically, after extracting the gray values of all pixels in the image as described above, all these gray values are sorted in order from large to small using any suitable means such as an interpolation sorting algorithm,and stored as a gray value array A { a }1,a2,a3...anWhere n represents the total number of pixels (grey values) in the image. Then, determining the binarization threshold according to the gray value array and the following formula:
Figure 609428DEST_PATH_IMAGE001
wherein, aiRepresents the array A { a }1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a. When all values of k are taken within the interval of k being more than or equal to 1 and less than n, n-1 Differs can be obtained through calculation, the Differs are compared to obtain the maximum Differ, the value of k corresponding to the maximum Differ can be obtained, and the kth gray value ak in the array A is used as the binarization threshold. Then, the image may be binarized according to the binarization threshold, for example, if the gray value of a pixel in the image is greater than the binarization threshold, the gray value of the pixel is assigned to 255, and if the gray value of the pixel in the image is less than the binarization threshold, the gray value of the pixel is assigned to 0, thereby obtaining a binary image of the image.
Further, a first minimum threshold T1m and a first maximum threshold T1n of the total number of all defective pixels in the image are obtained, and k is set to: k is more than or equal to T1m and less than or equal to T1 n.
The first minimum threshold and the first maximum threshold may be manually preset or manually directly input based on an estimated total number of pixels with all defects. For example, the number of defects in the image may be estimated in advance and the total number of pixels of all the defects may be estimated therefrom, and the first minimum threshold value T1m and the first maximum threshold value T1n may be set according to the estimated total number of pixels, and the binarization threshold value may be obtained using the above formula with the interval T1m ≦ k ≦ T1n between the first minimum threshold value and the first maximum threshold value as a search interval. The first minimum threshold T1m and the first maximum threshold T1n are set, and k is set to: t1m ≦ k ≦ T1n is to set the valid calculation interval, making the calculation more time-saving. Because the defect in the image is represented as a white spot and the gray value is large, the maximum Differ can be included by taking the first T1m gray values to the first T1n gray values according to the estimated total number of the defective pixels, so that the maximum Differ can be searched by calculating the Differ without taking all values of k in the interval of more than or equal to 1 and less than n.
In step S103, a defect to be determined in the image is determined according to the binary image.
According to an embodiment of the present disclosure, from the binary map, a defect (high grayscale region) in the binary map is determined, and the corresponding position and size of the defect in the image is determined.
Further, the determining the defect to be determined in the image according to the binary image comprises: extracting and storing the defect connected domain according to the binary image; and determining a region corresponding to the defect connected domain in the image, and determining the defect to be determined.
Specifically, all defect connected domains (high-gray regions) in the binary image can be extracted and stored through a connected domain extraction algorithm, and a region corresponding to the size and the position of the defect connected domain is determined in the image, wherein the region is the defect to be determined in the image.
Further, the extracting and storing the defect connected domain according to the binary image comprises: acquiring a second minimum threshold and a second maximum threshold of the number of pixels of a single defect in the image; extracting the defect connected domain, and saving the defect connected domain which is smaller than the second maximum threshold and larger than the second minimum threshold.
Specifically, in order to accurately obtain defects of a desired size, such as defects affecting quality, thereby excluding particularly small and non-affecting defects, the second minimum threshold value and the second maximum threshold value of the number of pixels of a single defect may be manually preset or manually directly input according to the estimated number of pixels of the single defect. And only the defect connected regions within the second minimum threshold and the second maximum threshold interval are saved. And determining corresponding defects to be determined in the image according to the defect connected regions.
In step S104, a final defect in the image is determined according to a comparison between the mean gray value of the defect to be determined and the mean gray value of the region adjacent to the defect to be determined.
According to the embodiment of the disclosure, whether the defect to be determined is really the defect at the plastic package semiconductor pin can be more accurately judged by comparing the defect to be determined in the image with the mean value of the gray values of the adjacent areas, so that the misjudgment caused by directly judging the defect by using a fixed gray threshold value is avoided.
Further, the determining the final defect in the image according to the comparison between the mean value of the gray values of the defect to be determined and the mean value of the gray values of the adjacent region of the defect to be determined includes: calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the adjacent regions of the defects to be determined; and determining the final defect in the image according to the comparison of the difference and a preset reference value.
Specifically, the difference between the gray value mean of the defect to be determined and the adjacent area in the image is calculated, and then the difference is compared with a preset reference value to judge whether the contrast is obvious or not, namely whether the defect exists or not. For example, when the difference between the gray value averages is greater than a preset reference value, the defect to be determined is a defect at the plastic package semiconductor pin, and when the difference between the gray value averages is less than the preset reference value, the defect to be determined is not considered as a defect. The preset reference value may be a value defined in advance according to a requirement, for example, the preset reference value may be set to be larger if the defect to be determined is clearly recognized as a defect in comparison with its neighboring area, and may be set to be smaller if the defect to be determined is recognized as a defect in comparison with its neighboring area.
Further, the calculating the difference between the mean gray value of the defect to be determined and the mean gray value of the adjacent region of the defect to be determined includes: and calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the boundary area surrounding the defects to be determined.
Specifically, in order to more accurately judge the defect, the difference of the mean gray value of the defect to be determined and the boundary region surrounding it may be calculated.
Further, the boundary region is formed by extending a preset number of pixels outside the defect to be determined. In particular, the defect to be determined may be flared out using any suitable means to form an annular boundary region around the defect to be determined. For example, the defect to be determined can be extended by 5 to 10 pixels, i.e. the width of the boundary zone is 5 to 10 pixels.
According to another embodiment of the present disclosure, when determining the defect to be determined in the image according to the binary map, the saved defect connected domain is subjected to an external expansion using any suitable algorithm such as a morphological expansion corrosion algorithm to form an annular boundary region of the defect connected domain according to the binary map, then a region corresponding to the defect connected domain and the annular boundary region is determined in the image, so as to form the defect to be determined in the image and the boundary region surrounding the defect, and finally, as described above, the defect at the plastic package semiconductor pin is determined according to the defect to be determined and the boundary region surrounding the defect.
The embodiment of the disclosure also provides a device for detecting the defects at the pins of the plastic package semiconductor. The detection device is used for executing the steps in the detection method embodiment.
Referring to fig. 2, fig. 2 is a block diagram illustrating an apparatus 100 for detecting defects at plastic packaged semiconductor pins according to an exemplary embodiment. As shown in fig. 2, the detection apparatus 100 includes an acquisition unit 101, a binarization unit 102, an intermediate determination unit 103, and a defect determination unit 104. The acquisition unit 101 is configured for acquiring an image at the plastic encapsulated semiconductor pins. The binarization unit 102 is configured to select a gray value from gray values of all pixels in the image as a binarization threshold to binarize the image, so as to obtain a binary image. The intermediate determination unit 103 is configured for determining a defect to be determined in the image from the binary image. The defect determining unit 104 is configured to determine the defect at the plastic package semiconductor pin according to a comparison between the gray value mean of the defect to be determined and the gray value mean of the adjacent region of the defect to be determined.
According to an embodiment of the present disclosure, the binarization unit is configured to select a gray value from gray values of all pixels in the image as a binarization threshold to binarize the image to obtain a binary image, in the following manner: sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels; determining the binarization threshold according to the following formula:
Figure 697470DEST_PATH_IMAGE001
wherein, aiRepresents the array A { a }1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
Preferably, the binarization unit is configured to acquire a first minimum threshold T1m and a first maximum threshold T1n of the total number of all defective pixels in the image, and set k as: k is more than or equal to T1m and less than or equal to T1 n.
According to an embodiment of the disclosure, the intermediate determination unit is configured to determine the defect to be determined in the image from the binary map in the following manner: extracting and storing the defect connected domain according to the binary image; and determining a region corresponding to the defect connected domain in the image, and determining the defect to be determined.
Preferably, the intermediate determination unit is configured to extract and store the defect connected domain according to the binary map in the following manner: acquiring a second minimum threshold and a second maximum threshold of the number of pixels of a single defect in the image; extracting the defect connected domain, and saving the defect connected domain with the pixel number smaller than the second maximum threshold and larger than the second minimum threshold.
According to an embodiment of the disclosure, the defect determining unit is configured to determine the defect at the plastic package semiconductor pin according to a comparison between the mean value of the gray values of the defect to be determined and the mean value of the gray values of the adjacent region of the defect to be determined in the following manner: calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the adjacent regions of the defects to be determined; and determining the defects at the plastic package semiconductor pins according to the comparison between the difference and a preset reference value.
Further, the defect determining unit is configured to calculate a difference between the mean gray value of the defect to be determined and the mean gray value of the adjacent region of the defect to be determined by: and calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the boundary area surrounding the defects to be determined.
Preferably, the boundary region is formed by extending a preset number of pixels outside the defect to be determined.
It will be appreciated that with respect to the apparatus in the above embodiments, the specific manner in which the respective units perform operations has been described in detail in relation to the embodiments of the method and will not be elaborated upon here.
The embodiments of the present disclosure are described in detail above, and the description of the embodiments is only used to help understanding the method and the core idea of the present disclosure. Meanwhile, a person skilled in the art should, based on the idea of the present disclosure, change or modify the specific embodiments and application scope of the present disclosure. In view of the above, the description is not intended to limit the present disclosure.

Claims (10)

1. A method for detecting defects at pins of a plastic packaged semiconductor comprises the following steps:
acquiring an image at the plastic package semiconductor pin;
selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image;
determining a defect to be determined in the image according to the binary image;
and determining the defects at the pins of the plastic packaged semiconductor according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined.
2. The method for detecting the defects at the pins of the plastic packaged semiconductor as claimed in claim 1, wherein the step of binarizing the image by selecting a gray value from gray values of all pixels in the image as a binarization threshold to obtain a binary image comprises the steps of:
sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels;
determining the binarization threshold value according to the gray value array and the following formula:
Figure 866314DEST_PATH_IMAGE001
wherein, aiRepresents the gray value array A { a1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
3. The method for detecting defects at plastic packaged semiconductor pins of claim 2, wherein a first minimum threshold value T1m and a first maximum threshold value T1n of the total number of all defective pixels in the image are obtained, and k is set as: k is more than or equal to T1m and less than or equal to T1 n.
4. The method for detecting the defects at the pins of the plastic packaged semiconductor according to claim 1, wherein the determining the defects to be determined in the image according to the binary image comprises:
extracting and storing the defect connected domain according to the binary image;
and determining a region corresponding to the defect connected domain in the image, and determining the defect to be determined.
5. The method for detecting the defects at the pins of the plastic packaged semiconductor according to claim 4, wherein the extracting and storing the defect connected domain according to the binary image comprises:
acquiring a second minimum threshold and a second maximum threshold of the number of pixels of a single defect in the image;
extracting the defect connected domain, and saving the defect connected domain with the pixel number smaller than the second maximum threshold and larger than the second minimum threshold.
6. The method for detecting the defects at the pins of the plastic packaged semiconductor according to claim 1, wherein the determining the defects at the pins of the plastic packaged semiconductor according to the comparison between the mean value of the gray-scale values of the defects to be determined and the mean value of the gray-scale values of the areas adjacent to the defects to be determined comprises:
calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the adjacent regions of the defects to be determined;
and determining the defects at the plastic package semiconductor pins according to the comparison between the difference and a preset reference value.
7. The method for detecting the defects at the plastic package semiconductor pins according to claim 6, wherein the calculating the difference between the mean value of the gray scale values of the defects to be determined and the mean value of the gray scale values of the adjacent regions of the defects to be determined comprises:
and calculating the difference between the mean value of the gray values of the defects to be determined and the mean value of the gray values of the boundary area surrounding the defects to be determined.
8. The method for detecting the defects at the pins of the plastic packaged semiconductor according to claim 7, wherein the boundary area is formed by extending a preset number of pixels outside the defects to be determined.
9. A detection device for defects at plastic package semiconductor pins, wherein the detection device comprises:
the acquisition unit is used for acquiring an image at the plastic package semiconductor pin;
the binarization unit is used for selecting a gray value from the gray values of all pixels in the image as a binarization threshold value to binarize the image to obtain a binary image;
the middle determining unit is used for determining the defects to be determined in the image according to the binary image;
and the defect determining unit is used for determining the defects at the plastic package semiconductor pins according to the comparison between the gray value mean value of the defects to be determined and the gray value mean value of the adjacent area of the defects to be determined.
10. The apparatus for detecting the defects at the pins of the plastic packaged semiconductor as claimed in claim 9, wherein the binarization unit is configured to binarize the image by selecting a gray value as a binarization threshold from gray values of all pixels in the image to obtain a binary image as follows:
sorting the gray values of all pixels in the image from large to small and forming a gray value array A { a }1,a2,a3...an-wherein n represents the total number of gray values of all pixels;
determining the binarization threshold value according to the gray value array and the following formula:
Figure 501564DEST_PATH_IMAGE002
wherein, aiRepresents the gray value array A { a1,a2,a3...anK is a positive integer and 1 ≦ k < n, Differ represents the ratio of the mean of the first k gray values in the gray value array a to the mean of the remaining gray values in the gray value array a.
CN202010978844.9A 2020-09-17 2020-09-17 Method and device for detecting defects at pins of plastic packaged semiconductor Active CN112053356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010978844.9A CN112053356B (en) 2020-09-17 2020-09-17 Method and device for detecting defects at pins of plastic packaged semiconductor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010978844.9A CN112053356B (en) 2020-09-17 2020-09-17 Method and device for detecting defects at pins of plastic packaged semiconductor

Publications (2)

Publication Number Publication Date
CN112053356A true CN112053356A (en) 2020-12-08
CN112053356B CN112053356B (en) 2021-08-20

Family

ID=73603308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010978844.9A Active CN112053356B (en) 2020-09-17 2020-09-17 Method and device for detecting defects at pins of plastic packaged semiconductor

Country Status (1)

Country Link
CN (1) CN112053356B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801987A (en) * 2021-02-01 2021-05-14 上海悦易网络信息技术有限公司 Mobile phone part abnormity detection method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103267764A (en) * 2013-05-30 2013-08-28 东北大学 Hot-rolled steel plate surface defect image identification method based on neighborhood information estimation
CN108154510A (en) * 2018-01-17 2018-06-12 深圳市亿图视觉自动化技术有限公司 Method for detecting surface defects of products, device and computer readable storage medium
CN109242853A (en) * 2018-11-05 2019-01-18 南京信息工程大学 A kind of PCB defect intelligent detecting method based on image procossing
CN110766736A (en) * 2019-10-29 2020-02-07 京东方科技集团股份有限公司 Defect detection method, defect detection device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103267764A (en) * 2013-05-30 2013-08-28 东北大学 Hot-rolled steel plate surface defect image identification method based on neighborhood information estimation
CN108154510A (en) * 2018-01-17 2018-06-12 深圳市亿图视觉自动化技术有限公司 Method for detecting surface defects of products, device and computer readable storage medium
CN109242853A (en) * 2018-11-05 2019-01-18 南京信息工程大学 A kind of PCB defect intelligent detecting method based on image procossing
CN110766736A (en) * 2019-10-29 2020-02-07 京东方科技集团股份有限公司 Defect detection method, defect detection device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801987A (en) * 2021-02-01 2021-05-14 上海悦易网络信息技术有限公司 Mobile phone part abnormity detection method and equipment
CN112801987B (en) * 2021-02-01 2022-11-08 上海万物新生环保科技集团有限公司 Mobile phone part abnormity detection method and equipment

Also Published As

Publication number Publication date
CN112053356B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN111627009B (en) Screen detection method and device and head-mounted display equipment
CN115578389B (en) Defect detection method of groove MOS device
US8121403B2 (en) Methods and systems for glyph-pixel selection
CN108896278B (en) Optical filter silk-screen defect detection method and device and terminal equipment
CN109472271B (en) Printed circuit board image contour extraction method and device
KR100598381B1 (en) in-line typed apparatus for auto wafer-defect classification and control method thereof
US7333656B2 (en) Image processing method and image processing apparatus
JP2003057019A (en) Pattern inspection device and inspection method using the same
CN114782329A (en) Bearing defect damage degree evaluation method and system based on image processing
CN112053356B (en) Method and device for detecting defects at pins of plastic packaged semiconductor
CN116168218A (en) Circuit board fault diagnosis method based on image recognition technology
CN117094975A (en) Method and device for detecting surface defects of steel and electronic equipment
CN114677348A (en) IC chip defect detection method and system based on vision and storage medium
CN106204616B (en) Method and device for identifying currency value of Iran paper money
JP3988440B2 (en) Appearance inspection method and appearance inspection apparatus
CN114937041B (en) Method and system for detecting defects of copper bush of oil way of automobile engine
CN114937037B (en) Product defect detection method, device and equipment and readable storage medium
CN116563298A (en) Cross line center sub-pixel detection method based on Gaussian fitting
JP5498109B2 (en) Defect detection apparatus and defect detection method
CN107240109B (en) Automatic detection method for instrument scale mark position
CN113012121B (en) Method and device for processing bare chip scanning result, electronic equipment and storage medium
CN109215068B (en) Image magnification measuring method and device
CN113643245A (en) Screen defect measuring method and device and computer readable storage medium
JP3260425B2 (en) Pattern edge line estimation method and pattern inspection device
JP2021064215A (en) Surface property inspection device and surface property inspection method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 215011 rooms 101, 102, 901 and 902, floor 1, building 11, 198 Jialingjiang Road, high tech Zone, Suzhou, Jiangsu Province

Applicant after: Gaoshi Technology (Suzhou) Co.,Ltd.

Address before: 516000 West Side of the 4th Floor of CD Building, No. 2 South Road, Huatai Road, Huiao Avenue, Huizhou City, Guangdong Province

Applicant before: HUIZHOU GOVION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20201208

Assignee: Suzhou Gaoshi Semiconductor Technology Co.,Ltd.

Assignor: Gaoshi Technology (Suzhou) Co.,Ltd.

Contract record no.: X2021990000430

Denomination of invention: Method and device for detecting defects at plastic encapsulated semiconductor pins

License type: Common License

Record date: 20210722

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 215129 Rooms 101, 102, 901, 902, Floor 9, Building 11, No. 198, Jialing River Road, High tech Zone, Suzhou City, Jiangsu Province

Patentee after: Gaoshi Technology (Suzhou) Co.,Ltd.

Address before: 215011 rooms 101, 102, 901 and 902, floor 1, building 11, 198 Jialingjiang Road, high tech Zone, Suzhou, Jiangsu Province

Patentee before: Gaoshi Technology (Suzhou) Co.,Ltd.

CP03 Change of name, title or address