Component pin defect detection method, system and equipment and storage medium

Through deep learning and image processing technology, the deformation degree, width and length of component pins can be accurately obtained, enabling rapid detection of component pin defects, solving the problems of low efficiency and low accuracy in the existing technology, and improving The safety of automated quality inspections.

CN118822975AActive Publication Date: 2024-10-22CHENGDU UNION BIG DATA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410856728.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing component pin defect detection has problems of low efficiency, low accuracy, and missed detections, especially in industrial circuit board production, leading to safety hazards.

Method used

Deep learning technology and image processing technology are used to position, contour extraction and engineering parameter calculations of component pins, and pin defect detection is realized through threshold determination of deformation degree, width value and length value.

Benefits of technology

It improves the accuracy and efficiency of component pin defect detection, solves the problem of difficult detection of defects such as pin crossover and bending, and improves the reliability and flexibility of automated quality inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822975A_ABST
    Figure CN118822975A_ABST
Patent Text Reader

Abstract

The invention provides a component pin defect detection method, system and device and a storage medium, and relates to the technical field of component defect detection.The method comprises the steps that pixel processing and contour extraction processing are conducted on a pin positioning frame to obtain a pin contour set; acquiring a wrapping area and a convex hull area based on the pin contour set, and calculating a deformation degree based on the wrapping area and the convex hull area; obtaining a region perimeter within the sampling length based on the pin contour set, and calculating a width value based on the region perimeter within the sampling length; acquiring a contour perimeter based on the pin contour set, and calculating a length value based on the contour perimeter and the width value; and performing pin defect detection based on the deformation degree, the width value and the length value to obtain a component pin defect detection result. According to the invention, pin defect detection is carried out based on a deep learning technology, an image processing technology and an engineering processing technology, and the problems of pin intersection and difficult detection of bending degree in a component production process are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of component defect detection, and in particular to a component pin defect detection method, system, device and storage medium. Background Art

[0002] The production and manufacturing of industrial circuit boards is complex and cumbersome, and various product defects are easily introduced during the manufacturing process. Components are essential components of industrial circuit boards, and component defects can directly cause serious problems such as short circuits and explosions of industrial circuit boards. Among them, the pins of electronic components are the direct medium for access to industrial circuit boards. If defects such as bending and crossing of the pins are not discovered, they may directly lead to major consequences such as component insertion failure and reverse connection. In addition, the length and width information of the pins can also serve as an important reference for mixed material detection.

[0003] In the component quality inspection process, faced with a huge number of component quality inspection tasks, the industry can only adopt manual sampling to conduct batch quality assessment. Since manual sampling is greatly affected by personal and environmental factors, there are problems of low efficiency, low accuracy and missed inspections, especially for the quality inspection of component pins. This also means that it poses a certain degree of safety hazard to the subsequent equipment assembly. Therefore, how to detect defects in the pins of components is the basis for realizing automated quality inspection, which can further improve the reliability and flexibility of automated quality inspection. Summary of the invention

[0004] In order to solve the problems of low efficiency, low accuracy and missed detection in the existing component pin defect detection, the embodiments of the present invention provide a component pin defect detection method, system, device and storage medium.

[0005] In a first aspect, an embodiment of the present invention provides a method for detecting defects in component pins, the method comprising the following steps:

[0006] Performing pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image;

[0007] Performing pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information;

[0008] The pin's wrapping area and convex hull area are obtained based on the pin outline set, and a ratio operation is performed on the pin's wrapping area and convex hull area to obtain the pin's deformation degree;

[0009] Obtaining the area perimeter corresponding to the preset sampling length based on the pin contour set, and performing a subtraction operation on the area perimeter and the sampling length to obtain the width value of the pin;

[0010] Obtaining the pin's contour perimeter based on the pin contour set, and performing a subtraction operation on the pin's contour perimeter and the pin's width value to obtain the pin's length value;

[0011] The pin defect detection of the component is performed based on the engineering parameters of the pin to obtain the component pin defect detection result, wherein the engineering parameters of the pin include the deformation degree, width value and length value of the pin.

[0012] In the above embodiment, the present invention firstly accurately obtains a set of pin contours containing the pin coordinate information of components based on deep learning technology and image processing technology, and then quickly obtains the number, degree of deformation, width value and length value of the pins based on image processing technology and engineering processing technology. Finally, the detection of pin defects is realized based on the threshold judgment of the number, degree of deformation, width value and length value of the pins. That is, pin defect judgment is performed based on deep learning technology and image processing technology, and combined with the structure of components, thereby realizing accurate detection of pins and engineering parameter judgment.

[0013] As some optional implementations of the present application, the process of performing pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image is as follows:

[0014] Inputting the component image into a pin screening model to obtain pin location information, wherein the pin screening model is a deep learning network model after model training;

[0015] The component image is cropped based on the pin positioning information to obtain a pin positioning frame containing the component pin image.

[0016] In the above-mentioned embodiment, the present invention uses a pin screening model after model training to quickly and accurately locate the pins of the component image to be inspected.

[0017] As some optional implementations of the present application, the process of performing pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information is as follows:

[0018] grayscale the pin positioning frame to obtain a grayscale image of the pin positioning frame;

[0019] Performing binary segmentation processing on the grayscale image of the pin positioning frame to obtain a binary image of the pin positioning frame;

[0020] The binary image of the pin positioning frame is processed by contour extraction to obtain a pin contour set containing pin contour information.

[0021] In the above-mentioned embodiment, the present invention can quickly and accurately obtain a pin contour set including pin contour coordinate information through pixel processing and contour extraction processing.

[0022] As some optional implementations of the present application, the calculation formula for the deformation degree of the pin is as follows:

[0023] deformDegree=CA / A

[0024] Among them, deformDegree represents the deformation degree of the pin, A represents the wrapping area of ​​the pin, and CA represents the convex area of ​​the pin.

[0025] As some optional implementations of the present application, the process of obtaining the area perimeter corresponding to the preset sampling length based on the pin outline set, and performing a subtraction operation on the area perimeter and the sampling length to obtain the width value of the pin is as follows:

[0026] Preset a sampling length, and perform region segmentation on the pin contour set based on the sampling length to obtain a pin contour subset within the sampling length range;

[0027] The area perimeter is obtained based on the pin outline subset within the sampling length range, and the area perimeter and the sampling length are subtracted to obtain the width value of the pin.

[0028] As some optional implementations of the present application, the calculation formula for the width value of the pin is as follows:

[0029] w=9C P -2*x) / 2

[0030] Where w represents the width of the pin, C P represents the area perimeter, and x represents the sampling length.

[0031] As some optional implementations of the present application, the calculation formula for the length value of the pin is as follows:

[0032] I=(C i -2*w) / 2

[0033] Where I represents the length of the pin, C i It represents the pin's outline circumference, and w represents the pin's width.

[0034] As some optional implementations of the present application, the engineering parameters of the pins also include the total number of pin outlines, and the total number of pin outlines is the number of pin outline sets.

[0035] In a second aspect, the present invention provides a component pin defect detection system, the system comprising:

[0036] A pin positioning frame acquisition unit, the pin positioning frame acquisition unit is used to perform pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image;

[0037] A contour set acquisition unit, the contour set acquisition unit is used to perform pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information;

[0038] A deformation degree acquisition unit, wherein the deformation degree acquisition unit acquires the surrounding area and the convex hull area of ​​the pin based on the pin outline set, and performs a ratio operation on the surrounding area and the convex hull area of ​​the pin to obtain the deformation degree of the pin;

[0039] A pin width acquisition unit, wherein the pin width acquisition unit acquires a region perimeter corresponding to a preset sampling length based on a pin outline set, and performs a subtraction operation on the region perimeter and the sampling length to obtain a pin width value;

[0040] A pin length acquisition unit, wherein the pin length acquisition unit acquires the pin's contour perimeter based on the pin contour set, and performs a subtraction operation on the pin's contour perimeter and the pin's width value to obtain the pin's length value;

[0041] A pin defect detection unit performs pin defect detection on components based on engineering parameters of the pins to obtain component pin defect detection results, wherein the engineering parameters of the pins include deformation degree, width value and length value of the pins.

[0042] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the component pin defect detection method.

[0043] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the component pin defect detection method.

[0044] The beneficial effects of the present invention are as follows: the present invention firstly accurately obtains a set of pin contours containing the pin coordinate information of components based on deep learning technology and image processing technology, and then quickly obtains the number, degree of deformation, width value and length value of the pins based on image processing technology and engineering processing technology. Finally, the detection of pin defects is realized based on the threshold judgment of the number, degree of deformation, width value and length value of the pins, which solves the problem that the crossing and bending degree of pins are difficult to detect during the production process of components. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a schematic diagram of the computer device structure of the hardware operating environment described in the embodiment of the present invention;

[0047] Figure 2 is a flow chart of a component pin defect detection method according to an embodiment of the present invention;

[0048] Figure 3 It is a structural schematic diagram of the wrapping area and the convex area of ​​the component pin according to an embodiment of the present invention;

[0049] Figure 4 It is a structural block diagram of the component pin defect detection system described in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] In order to solve the problems of low efficiency, low accuracy and missed detection in existing component pin defect detection, the embodiment of the present invention provides a component pin defect detection method, system, device and storage medium. Before introducing the specific technical solution of the present application, the hardware operating environment involved in the embodiment of the present application is first introduced.

[0052] See also Figure 1 , Figure 1 The figure is a schematic diagram of the computer device structure of the hardware operating environment involved in the embodiment of the present invention.

[0053] like Figure 1As shown, the computer device may include: a processor, such as a central processing unit (CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus is used to realize the connection and communication between these components. The user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), and optionally, the user interface may also include a standard wired interface and a wireless interface. The network interface may be a wired interface or a wireless interface (such as a wireless fidelity interface). The memory may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory may optionally be a storage device independent of the aforementioned processor.

[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory as a storage medium may include an operating system module, a network communication module, a user interface module and a data storage module.

[0056] exist Figure 1 In the computer device shown, the network interface is mainly used for data communication with the network server; the user interface is mainly used for data interaction with the user; the processor and memory in the computer device of the present application can be set in the computer device, and the computer device calls a component pin defect detection system stored in the data storage module through the processor, and executes a component pin defect detection method provided in an embodiment of the present application.

[0057] Based on the hardware environment of the aforementioned embodiment, the embodiment of the present application provides a component pin defect detection method, please refer to Figure 2 , Figure 2 The flowchart of the component pin defect detection method is as follows:

[0058] (1) Perform pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image.

[0059] In an embodiment of the present invention, the process of performing pin positioning processing on a component image is as follows:

[0060] (1.1) Inputting the image of the component to be inspected into the pin screening model to obtain pin location information, wherein the pin screening model is a deep learning network model after model training, and the deep learning network model includes but is not limited to a CNN model.

[0061] (1.2) The component image is cropped according to the pin positioning information to obtain a pin positioning frame containing the component pin image.

[0062] Specifically, the model training process of the pin screening model is as follows:

[0063] (1.11) Collect historical component images and annotate the pins of the component images, that is, annotate the pins through a target frame.

[0064] (1.12) The component image after pin annotation is input into the deep learning network model for image feature extraction and iterative training to obtain a pin screening model.

[0065] Specifically, the present invention first trains a pin screening model, and then performs pin positioning based on the trained pin screening model to achieve detection and output of pin positioning information.

[0066] (2) Perform pixel processing and contour extraction on the pin positioning frame to obtain a pin contour set containing pin contour information.

[0067] In an embodiment of the present invention, the process of performing pixel processing and contour extraction processing on the pin positioning frame is as follows:

[0068] (2.1) The pin positioning frame is grayscaled to obtain a grayscale image of the pin positioning frame.

[0069] (2.2) A binary segmentation threshold is preset, and the grayscale image of the pin positioning frame is binarized and segmented according to the binarization segmentation threshold to obtain a binary image of the pin positioning frame, wherein the binarization segmentation threshold can be set according to actual conditions, and the embodiment of the present invention does not impose any limitation on this.

[0070] (2.3) Perform contour extraction processing on the binary image of the pin positioning frame to obtain a pin contour set containing pin contour information, wherein the pin contour set containing pin contour information is a coordinate set of the pin contour, and one pin corresponds to one pin contour set.

[0071] Specifically, the present invention can quickly and accurately obtain a pin contour set including pin contour coordinate information through pixel processing and contour extraction processing.

[0072] (3) Based on the number of pin outline sets, the total number of pins is checked to obtain the total number of pin outlines, that is, if the number of pin outline sets is 1, the total number of pin outlines is also 1.

[0073] (4) Based on the pin contour set, the pin's wrapping area and convex hull area are obtained, and a ratio operation is performed on the pin's wrapping area and convex hull area to obtain the pin's deformation degree.

[0074] See also Figure 3 , Figure 3 It is a structural schematic diagram of the surrounding area and convex area of ​​the component pin, wherein the surrounding area of ​​the pin represents the area surrounded by the actual outline of the pin, and the convex area of ​​the pin represents the sum of the area surrounded by the actual outline of the pin and the area formed by the straight line segment between the two end points and the area surrounded by the actual outline of the pin.

[0075] In the embodiment of the present invention, the calculation formula of the deformation degree of the pin is as follows:

[0076] deformDegree=A / CA

[0077] Among them, deformDegree represents the deformation degree of the pin, A represents the wrapping area of ​​the pin, and CA represents the convex area of ​​the pin.

[0078] (5) Based on the pin contour set, the area perimeter corresponding to the preset sampling length is obtained, and the area perimeter and the sampling length are subtracted to obtain the width value of the pin.

[0079] In an embodiment of the present invention, the process of performing a subtraction operation on the area perimeter and the sampling length is as follows:

[0080] (5.1) A sampling length is preset, and the pin contour set is segmented based on the sampling length to obtain a pin contour subset within the sampling length range. The present invention obtains a number of pixel points close to the left side of the image from each pin contour set according to the sampling length, and then forms a corresponding pin contour subset. Specifically, the sampling length can be set according to actual conditions, and the embodiment of the present invention does not limit this.

[0081] (5.2) The area perimeter is obtained based on the pin contour subset within the sampling length range, and the area perimeter and the sampling length are subtracted to obtain the width value of the pin.

[0082] In the embodiment of the present invention, the calculation formula of the width value of the pin is as follows:

[0083] w=(C P -2*x) / 2

[0084] Where w represents the width of the pin, CP represents the area perimeter, and x represents the sampling length.

[0085] (6) Obtain the pin's contour circumference based on the pin contour set, and perform a subtraction operation on the pin's contour circumference and the pin's width value to obtain the pin's length value.

[0086] In the embodiment of the present invention, the calculation formula of the length value of the pin is as follows:

[0087] I=(C i -2*w) / 2

[0088] Where I represents the length of the pin, C i It represents the pin's outline circumference, and w represents the pin's width.

[0089] (7) Perform pin defect detection on components based on the engineering parameters of the pins to obtain the pin defect detection results of the components, wherein the engineering parameters of the pins include but are not limited to the total number of pin outlines, the degree of pin deformation, the width value of the pins, and the length value of the pins. Specifically, if the total number of pin outlines is 1, it means that defects such as missing pins and pin crossing have occurred; if the degree of pin deformation is greater than a threshold, it means that a pin bending defect has occurred; if the width value of the pin or the length value of the pin is greater than or less than an upper or lower threshold, it means that mixed materials have occurred; wherein the thresholds corresponding to the degree of deformation, the width value, and the length value can be set according to actual conditions, and the embodiments of the present invention do not limit this.

[0090] In summary, the present invention firstly accurately obtains a set of pin contours containing the pin coordinate information of components based on deep learning technology and image processing technology, and then quickly obtains the number, degree of deformation, width value and length value of the pins based on image processing technology and engineering processing technology. Finally, based on the threshold judgment of the number, degree of deformation, width value and length value of the pins, the detection of pin defects is realized, which solves the problem that the crossing and bending degree of pins are difficult to detect in the production process of components.

[0091] In addition, in one embodiment, based on the same inventive concept as the above embodiment, the embodiment of the present invention provides a component pin defect detection system, see Figure 4 , Figure 4 is a system block diagram of the component pin defect detection system, the system corresponds one-to-one to the method of embodiment 1, and the system includes:

[0092] A pin positioning frame acquisition unit, the pin positioning frame acquisition unit is used to perform pin positioning processing on the component image to obtain a pin positioning frame including the component pin image;

[0093] A contour set acquisition unit, the contour set acquisition unit is used to perform pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information;

[0094] A total number of outlines obtaining unit, wherein the total number of pins is checked based on the number of pin outline sets to obtain the total number of pin outlines;

[0095] A deformation degree acquisition unit, wherein the deformation degree acquisition unit acquires the surrounding area and the convex hull area of ​​the pin based on the pin outline set, and performs a ratio operation on the surrounding area and the convex hull area of ​​the pin to obtain the deformation degree of the pin;

[0096] A pin width acquisition unit, wherein the pin width acquisition unit acquires a region perimeter corresponding to a preset sampling length based on a pin outline set, and performs a subtraction operation on the region perimeter and the sampling length to obtain a pin width value;

[0097] A pin length acquisition unit, wherein the pin length acquisition unit collects the outline perimeter of the pin based on the pin outline, and performs a subtraction operation on the outline perimeter of the pin and a width value representing the width of the pin to obtain a length value of the pin;

[0098] A pin defect detection unit performs pin defect detection on components based on the number of pins, degree of deformation, width value of pins, and length value of pins to obtain a pin defect detection result of the component.

[0099] It should be noted that each unit in the component pin defect detection system in this embodiment corresponds one-to-one to each step in the component pin defect detection method in the aforementioned embodiment. Therefore, the specific implementation method and technical effects achieved by this embodiment can refer to the implementation method of the aforementioned component pin defect detection method, which will not be repeated here.

[0100] In addition, in one embodiment, the present application also provides a computer device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the method in the aforementioned embodiment when executed by the processor.

[0101] In addition, in one embodiment, the present application further provides a computer storage medium, on which a computer program is stored, and the computer program implements the method in the aforementioned embodiment when executed by a processor.

[0102] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0103] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0104] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0105] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0106] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0107] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0109] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A component pin defect detection method, characterized in that: The method comprises the following steps: Performing pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image; Performing pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information; The pin's wrapping area and convex hull area are obtained based on the pin outline set, and a ratio operation is performed on the pin's wrapping area and convex hull area to obtain the pin's deformation degree; Obtaining the area perimeter corresponding to the preset sampling length based on the pin contour set, and performing a subtraction operation on the area perimeter and the sampling length to obtain the width value of the pin; Obtaining the pin's contour perimeter based on the pin contour set, and performing a subtraction operation on the pin's contour perimeter and the pin's width value to obtain the pin's length value; The pin defect detection of the component is performed based on the engineering parameters of the pin to obtain the component pin defect detection result, wherein the engineering parameters of the pin include the deformation degree, width value and length value of the pin.

2. A component pin defect detection method according to claim 1, characterized in that: The process of performing pin positioning processing on the component image to obtain the pin positioning frame containing the component pin image is as follows: Inputting the component image into a pin screening model to obtain pin location information, wherein the pin screening model is a deep learning network model after model training; The component image is cropped based on the pin positioning information to obtain a pin positioning frame containing the component pin image.

3. A component pin defect detection method according to claim 1, characterized in that: The process of performing pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information is as follows: grayscale the pin positioning frame to obtain a grayscale image of the pin positioning frame; Performing binary segmentation processing on the grayscale image of the pin positioning frame to obtain a binary image of the pin positioning frame; The binary image of the pin positioning frame is processed by contour extraction to obtain a pin contour set containing pin contour information.

4. A component pin defect detection method according to claim 1, characterized in that: The calculation formula of the deformation degree of the pin is as follows: deformDegree=A / CA Among them, deformDegree represents the deformation degree of the pin, A represents the wrapping area of ​​the pin, and CA represents the convex area of ​​the pin.

5. A component pin defect detection method according to claim 1, characterized in that: The process of obtaining the area perimeter corresponding to the preset sampling length based on the pin contour set and performing a subtraction operation on the area perimeter and the sampling length to obtain the width value of the pin is as follows: Preset a sampling length, and perform region segmentation on the pin contour set based on the sampling length to obtain a pin contour subset within the sampling length range; The area perimeter is obtained based on the pin outline subset within the sampling length range, and the area perimeter and the sampling length are subtracted to obtain the width value of the pin.

6. A component pin defect detection method according to claim 5, characterized in that: The calculation formula of the width value of the pin is as follows: w=9C P -2*x) / 2 Where w represents the width of the pin, C P represents the area perimeter, and x represents the sampling length.

7. A component pin defect detection method according to claim 6, characterized in that: The calculation formula of the length value of the pin is as follows: I=(C i -2*w) / 2 Where I represents the length of the pin, C i It represents the pin's outline circumference, and w represents the pin's width.

8. A component pin defect detection method according to claim 1, characterized in that: The engineering parameters of the pins also include the total number of pin outlines, where the total number of pin outlines is the number of pin outline sets.

9. A component pin defect detection system, characterized in that: The system comprises: A pin positioning frame acquisition unit, the pin positioning frame acquisition unit is used to perform pin positioning processing on the component image to obtain a pin positioning frame containing the component pin image; A contour set acquisition unit, the contour set acquisition unit is used to perform pixel processing and contour extraction processing on the pin positioning frame to obtain a pin contour set containing pin contour information; A deformation degree acquisition unit, wherein the deformation degree acquisition unit acquires the surrounding area and the convex hull area of ​​the pin based on the pin outline set, and performs a ratio operation on the surrounding area and the convex hull area of ​​the pin to obtain the deformation degree of the pin; A pin width acquisition unit, wherein the pin width acquisition unit acquires a region perimeter corresponding to a preset sampling length based on a pin outline set, and performs a subtraction operation on the region perimeter and the sampling length to obtain a pin width value; A pin length acquisition unit, wherein the pin length acquisition unit acquires the pin's contour perimeter based on the pin contour set, and performs a subtraction operation on the pin's contour perimeter and the pin's width value to obtain the pin's length value; A pin defect detection unit performs pin defect detection on components based on engineering parameters of the pins to obtain component pin defect detection results, wherein the engineering parameters of the pins include deformation degree, width value and length value of the pins.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for detecting component pin defects as described in any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the component pin defect detection according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Chip apparent defect detection method

    CN109785316A

  • QFP chip pin defect discrimination method based on pixel region growth

    CN112348840A

  • Component antipole defect detection method, system and equipment and storage medium

    CN116468680A

  • Camera module defect detection method and device, equipment, storage medium and product

    CN116993654A

  • Semiconductor inspection system

    US20140219545A1