CN-121977459-A - Automatic pin height detection method and system for pin connector
Abstract
The disclosure provides a pin height automatic detection method and system for a pin connector, and relates to the technical field of automatic detection. The method comprises the steps of collecting pin images of a pin connector, detecting pin heights of pins in the pin connector based on the pin images to obtain height detection values, carrying out clustering operation on the pin height detection values in the pin connector to obtain clustering results, determining template jacks of the pin connector, determining matching degrees of the pins in the pin connector and the template jacks, determining accuracy measures of the pin heights of the pins in the pin connector based on the pin height detection values, the clustering results and the matching degrees, analyzing projection errors of the pin inclination angles, and determining actual pin heights of the pins in the pin connector. The pin height is determined based on the pin height detection value, the clustering result of the pin height detection value and the matching degree of the pin and the jack, and the pin height detection accuracy is improved.
Inventors
- WEI HONGCHUN
- YUAN TAO
- LIANG SONGFU
- LI WANXIA
Assignees
- 广东乾威精密连接器有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260402
Claims (10)
- 1. The automatic pin height detection method for the pin connectors is characterized by comprising the following steps: collecting a pin image of the pin connector; Detecting the pin height of each pin in the pin array connector based on the pin image to obtain a pin height detection value; Clustering operation is carried out on the height detection values of the pins in the pin header connector, so that a clustering result is obtained; Determining a template jack of the pin header connector, and determining the matching degree of the contact pin and the template jack in the pin header connector; determining an accuracy measure of a pin height of the pin in the pin header connector based on the height detection value of the pin, the clustering result, and the matching degree; And analyzing the projection error of the pin inclination angle based on the pin height accuracy measurement of the pins, and determining the actual pin height of the pins in the pin header connector.
- 2. The method for automatically detecting pin height of pin header connector according to claim 1, wherein the capturing pin images of pin header connector comprises: at least two of the pin images of the pin header connectors of the same production lot are acquired.
- 3. The automatic pin height detection method of pin header connector according to claim 2, wherein the detecting the pin height of the pin based on the pin image for each pin in the pin header connector, to obtain the pin height detection value, comprises: Performing edge detection on the pins in the pin header connector for a plurality of times based on an edge detection algorithm in the pin header image; And extracting the corresponding pin profile of each pin based on a profile extraction algorithm aiming at the detection result of each edge detection, and determining the height detection value of the corresponding pin based on the pin profile.
- 4. The pin header connector pin height automatic detection method of claim 3, wherein the clustering results comprise a first clustering result and a second clustering result; The step of performing a clustering operation on the height detection values of the pins in the pin header connector to obtain a clustering result includes: Clustering operation is carried out on the height detection values of the pins in all the pin connectors in the same production batch, so that a first clustering result is obtained; and clustering the height detection values of all the pins in each pin array connector to obtain the second clustering result.
- 5. The method for automatically detecting pin heights of pin header connectors according to claim 4, wherein determining the degree of matching of the pins in the pin header connectors with the reticle receptacles comprises: Determining the vertical distance between the jack at each position in the template jack and the datum plane of the pin header connector; Determining the diameter difference between the diameter of the jack at each position in the pin header connector and the standard diameter of the template jack; the degree of matching is determined based on the perpendicular distance and the diameter difference.
- 6. The method of claim 5, wherein the determining an accuracy measure of the pin height of the pins in the pin header connector based on the height detection value, the clustering result, and the matching degree of the pins comprises: Determining an initial accuracy of the height detection value of the pin; Determining a position number of the pin based on the first clustering result, determining a first correction coefficient based on the position number and the second clustering result, and correcting the initial accuracy based on the first correction coefficient to obtain intermediate accuracy; An accuracy measure of the pin is determined based on the degree of matching and the intermediate accuracy.
- 7. The method of claim 6, wherein said determining an initial accuracy of said height detection value of said pin comprises: Determining a first difference value of the height detection values of the pins of any two pin header connectors of the same production lot at the same position; determining standard deviations of the height detection values of the pins at all positions of the same production batch obtained by detection each time, and calculating second difference values of any two standard deviations; the initial accuracy is determined based on the first difference and the second difference.
- 8. The method of claim 6, wherein determining a first correction factor based on the position number and the second aggregation result comprises: determining the first similarity of the position numbers of any two pin header connectors at the same position in the same class cluster of the second aggregation result; determining a set of the position numbers of any two different pin header connectors in the same cluster, and determining a second similarity based on the set of the position numbers; The first correction coefficient is determined based on the first similarity and the second similarity.
- 9. The method for automatically detecting pin heights of pin connectors according to claim 1, wherein analyzing projection errors of the pin inclination angles based on the accuracy measure of the pin heights of the pins, determining actual pin heights of the pins in the pin connectors, comprises: acquiring a pixel conversion coefficient, and determining a projection height value of each pin based on the height detection value of each pin in the pin image and the pixel conversion coefficient; Screening the pins based on the pin accuracy measurement and a preset accuracy threshold to obtain a reference pin and an offset pin; Determining a horizontal offset for each offset pin based on a lateral distance between a center point of each offset pin and a center point of an adjacent nearest reference pin; determining the inclination angle of each offset pin based on the horizontal offset of each offset pin and the design length of the pin; Determining the actual pin height of each offset pin based on the projection height value of each offset pin and the cosine value of the inclination angle; the actual pin height of the reference pins is the average value of the projection height values of all the reference pins.
- 10. Automatic pin height detection system for pin connectors, characterized in that it comprises: The acquisition unit is used for acquiring the contact pin images of the pin header connector; the detection unit is used for detecting the pin height of each pin in the pin connector based on the pin image to obtain a pin height detection value; The detection unit is further used for carrying out clustering operation on the height detection values of the pins in the pin header connector to obtain a clustering result; The detection unit is also used for determining a template jack of the pin header connector and determining the matching degree of the contact pin and the template jack in the pin header connector; The detection unit is further used for determining the pin height of the pins in the pin header connector based on the height detection value, the clustering result and the matching degree of the pins; The detection unit is further used for analyzing projection errors of the inclination angles of the pins based on the pin heights of the pins and determining correction heights of the pins in the pin array connector.
Description
Automatic pin height detection method and system for pin connector Technical Field The invention relates to the technical field of automatic detection, in particular to a method and a system for automatically detecting the height of a pin connector. Background Pin header connectors are a common type of electrical connector that typically consist of a row of metal pins for connection to a circuit board of an electronic device. Pins of the pin header connector may be inserted or soldered into holes in the circuit board to establish electrical connection between the electronic components. With the rapid development of the pin header connector industry and the continuous increase of market demands and the wide application of the pin header connector in the fields of computers, communications, automobiles and the like, the pin header connector pin height automatic detection method and system also become key links for ensuring the production quality and the production efficiency of the connector, and the accuracy of the pin header height directly influences the stability and the reliability of electrical connection. In the related art, when the height of the contact pin is detected, the influence of the jack problem on the detection is not considered, and if the diameter of the jack is too large or too small, the matching degree between the contact pin and the jack is not high, so that the accuracy of the height detection of the contact pin is affected. Disclosure of Invention In order to solve the problem of low detection accuracy in the pin height detection process of the related technology, the invention aims to provide the pin height automatic detection method of the pin connector, and the adopted technical scheme is as follows: collecting a pin image of the pin connector; Detecting the pin height of each pin in the pin array connector based on the pin image to obtain a pin height detection value; Clustering operation is carried out on the height detection values of the pins in the pin header connector, so that a clustering result is obtained; Determining a template jack of the pin header connector, and determining the matching degree of the contact pin and the template jack in the pin header connector; determining an accuracy measure of a pin height of the pin in the pin header connector based on the height detection value of the pin, the clustering result, and the matching degree; And analyzing the projection error of the pin inclination angle based on the pin height accuracy measurement of the pins, and determining the actual pin height of the pins in the pin header connector. Correspondingly, the invention also provides an automatic pin height detection system of the pin connector, which specifically comprises the following steps: The acquisition unit is used for acquiring the contact pin images of the pin header connector; the detection unit is used for detecting the pin height of each pin in the pin connector based on the pin image to obtain a pin height detection value; The detection unit is further used for carrying out clustering operation on the height detection values of the pins in the pin header connector to obtain a clustering result; The detection unit is also used for determining a template jack of the pin header connector and determining the matching degree of the contact pin and the template jack in the pin header connector; The detection unit is further used for determining an accuracy measure of the pin height of the pins in the pin header connector based on the height detection value of the pins, the clustering result and the matching degree; the detection unit is further used for analyzing projection errors of the inclined angles of the pins based on the accuracy measurement of the pin heights of the pins, and determining actual pin heights of the pins in the pin header connector. The invention may have some or all of the following beneficial effects: The automatic pin height detection method for the pin connector comprises the steps of collecting pin images of the pin connector, detecting the pin height of pins based on the pin images aiming at each pin in the pin connector to obtain pin height detection values, carrying out clustering operation on the pin height detection values in the pin connector to obtain clustering results, determining template jacks of the pin connector, determining the matching degree of the pins in the pin connector and the template jacks, and determining the pin heights of the pins in the pin connector based on the pin height detection values, the clustering results and the matching degree. After the heights of the pins in the pin header connector are detected, clustering operation and matching degree of the pins and the template jacks are further carried out on the height detection values, so that the height detection values can be corrected based on the clustering result and the matching degree, the corrected pin heights are obtained, and the accuracy of the