Continuous stripe feature search method for locating solder joints of printed circuit board components

Through the continuous stripe feature search method, the problem of difficult positioning of components on printed circuit boards is solved, efficient positioning of patch components and solder joints is achieved, and it is suitable for inspection scenarios of various shapes of packages.

CN114943844BActive Publication Date: 2024-09-13SHANGHAI HANGYI HI TECH DEV RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210382456.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2024-09-13
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

It is difficult to position patch components on the existing printed circuit board from a global level, especially when the component density is high, the format is not uniform, and the hand-welded solder joints are diverse, the positioning effect is not good.

Method used

The continuous stripe feature search method is used to extract image edge features by setting parameters such as global scaling, estimated number of stripe pins, spacing, similarity threshold, etc., perform rectangular fitting and establish a sliding search window, and identify pin groups and stripes to further confirm the component position, and statistically locate the solder joints through solder joint grayscale projection.

Benefits of technology

It effectively locates the solder joints corresponding to components and pins, improves the accuracy and efficiency of circuit board surface mounting and inspection, and is suitable for SMD component inspection scenarios of various shapes of packages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114943844B
    Figure CN114943844B
Patent Text Reader

Abstract

The present invention relates to a continuous stripe feature search method for locating solder joints of patch components on a circuit board. In order to solve the problems of high density of components in old-style circuit boards, non-uniform formats of located components, and strong diversity of manual solder joints, the present invention can effectively locate patch components and corresponding solder joints through component pin stripes. The present invention mainly includes the following steps: scaling the image to be detected; obtaining component edge information; locating a single pin; searching for remaining pins laterally; identifying pin stripes; obtaining stripe information; searching for components corresponding to pins laterally; matching symmetrical pin stripes; filling missed pins according to symmetrical relationships; estimating solder joint length through pin information; determining solder joint length through continuous grayscale projection; locating solder joints. By sequentially arranging pins near the locating component, the purpose of locating the component and the corresponding solder joint of the pin is achieved according to the arrangement characteristics of the identification stripes and components and solder joints, and the present invention is suitable for the field of circuit board surface positioning and detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a universal positioning method for a stripe pin patch component, and belongs to the technical field of high-speed and high-precision visual detection surface mounting. Background Art

[0002] The package structure of SMD components is usually rectangular and is widely used in the production of printed circuit boards for integrated circuits. SMD components have a large number of pins, which are usually distributed on both sides of the component and arranged in a regular pattern. Due to the high integration density of printed circuit boards, strict requirements are placed on the mounting and testing process of components.

[0003] Common circuit board component positioning methods include positioning methods based on binary connected domain screening and template matching methods based on component models. The positioning method based on binary connected domain screening has the following shortcomings in actual scenarios: 1) The algorithm usually needs to obtain different size information of components in the board, and the initial information collection is difficult; 2) The positioning effect of the algorithm is easily affected by other electronic components in the board, that is, when the size of other electronic components is small compared with the size of the target component to be detected, the screening of the target component will be difficult, which greatly affects the detection effect of the algorithm; 3) The binary preprocessing method in the algorithm has requirements for the shooting environment, light exposure and surface reflective materials of the components to be detected, and is not universal. The template matching method based on the component model has the following main shortcomings: 1) The algorithm needs to read, establish and save templates of different components and different angles, which has high requirements for computer memory; 2) For each model, the entire board needs to be matched and calculated, and the matching process takes a long time, which increases the execution time of the algorithm; 3) The template matching algorithm relies heavily on the accuracy of the model, and has high requirements for the contour accuracy of the components to be matched. The positioning result of the algorithm is easily affected by the interference points on the edge of the component. Summary of the invention

[0004] The technical problem to be solved by the present invention is that it is difficult to position the patch components on the existing printed circuit board from a global level.

[0005] In order to solve the above technical problems, the technical solution of the present invention is to provide a continuous stripe feature search method for locating solder joints of circuit board patch components, characterized in that it includes the following steps:

[0006] Step 1: Set the parameters that need to be set in advance, including the global scaling ratio or scaling size, the estimated number of stripe pins Num e , spacing estimation d e , stripe search similarity threshold, stripe pin quantity threshold, solder joint grayscale projection decrease amplitude threshold;

[0007] Step 2: Obtain edge feature information in the image to be detected;

[0008] Step 3: Based on the edge feature information, a single pin is fitted with a rectangle to locate the position of the first pin and obtain the pin information of the first pin. The pin information of the first pin is represented by x1, y1, w1, and h1, and w1 and h1 are used as the parameter basis of the stripe sliding search window, where: x1 and y1 are the coordinates (x, y) of the upper left corner endpoint of the fitting rectangle in the image to be detected after the first pin is fitted with a rectangle, w1 is the horizontal width of the fitting rectangle, and h1 is the vertical length of the fitting rectangle;

[0009] Step 4: Establish a blank stripe container according to the pin information of a single pin obtained in step 3, and establish a stripe sliding search window horizontally, specifically including the following steps:

[0010] Step 401: Based on the pin information of the single pin located in step 3, a blank stripe container is established. The blank stripe container is a two-dimensional array container, which is recorded as [V1, V2, ..., V i , ...] T ,in, Represents the position vector of the i-th pin, which is a one-dimensional vector with four elements, and the four elements are the position information x of the i-th pin i ,y i 、w i 、h i ;

[0011] Step 402: Initialize the blank stripe container, V1 = [x1, y1, w1, h1], [V2, ..., V i , ...] T Initialized as a vector of all 0s;

[0012] Step 403: Estimating the number of stripe pins Num according to the preset number e , spacing estimation d e And w1, h1 obtained in step 3, calculate the size of the stripe sliding search window, and set the horizontal width and vertical length of the stripe sliding search window to be W respectively win and H win , then:

[0013] W win =1.5×(Num e ×w1+(Num e -1)×d e )

[0014] H win =1.5×h1

[0015] Step 5: perform rectangular fitting on the pin edges of the remaining pins in the stripe sliding search window, continue searching according to the pin features of the first pin obtained in step 4, perform similarity matching on the pin features of the search sliding window obtained by fitting and the pin features of the first pin located in step 4, and confirm the remaining pins according to the pin search similarity threshold;

[0016] Step 6: If the number of pins searched in the stripe sliding search window is greater than the pre-set stripe pin number threshold, all identified pins are defined as a pin group, and the pin group is further identified as an initial stripe, and the pin information of all pins corresponding to the initial stripe is saved to the blank stripe container created in step 4, and the stripe vector [V1, V2, ..., V i , ..., V I ] T , then the positioning of the initial stripe and all the pins inside it is completed;

[0017] Step 7, calculating the stripe width S and stripe length h of the initial stripe located in step 6, and calculating the pin spacing d and the number of pins Num;

[0018] Step 8: After obtaining the stripe position and stripe information of the initial stripe through step 7, the component parameters corresponding to the stripe are estimated, and the component is searched within a certain range according to the estimated information to further confirm whether the initial stripe determined previously is a stripe near the target component, which specifically includes the following steps:

[0019] Step 801: Set the horizontal width W of the component search window according to the stripe width S calculated in step 7. icwin =1.5×S and vertical length H icwin =1.2×W icwin ;

[0020] Step 802: According to the horizontal width W icwin , vertical length H icwin , component centerline x mid Create a component search window, x mid =x1+0.5×(x I -x1);

[0021] The initial point position information of the component search window is different according to the upward and downward directions of the vertical search: if the search is for upward components, the upper left corner vertex position of the initial point position of the component search window is described as (x, y) = (x mid -0.5×W ic , y1+h1); if the search is for downward components, the upper left corner vertex position of the initial point of the component search window is described as (x, y) = (xmid -0.5×W ic ,y1-h1-H icwin );

[0022] Step 803: Fit a maximum rectangular area within the component search window according to the edge information of the component as the component positioning area;

[0023] Step 9: By searching for components upward or downward, the relative position of the initial stripes and the components can be determined. Since the pins are usually arranged symmetrically on both sides of the components, stripe matching is performed based on the initial stripe information at the symmetrical position relative to the components through the symmetry relationship, including the following steps:

[0024] Step 901, establishing a complete stripe matching template according to the stripe length h, stripe width S, pin number Num and pin spacing d of the initial stripe;

[0025] Step 902: perform stripe matching at the other side of the corresponding component according to the stripe matching template. If the stripe similarity is greater than the stripe search similarity threshold, define the stripe as a symmetrical stripe, and write the stripe information of the symmetrical stripe and the stripe information of the initial stripe, the component information, and the positioning information into a component information vector for storage, where:

[0026] The stripe information of the initial stripe includes the pin starting point of each pin in the initial stripe and the stripe width S, stripe length h, pin number Num and pin spacing d of the initial stripe;

[0027] The stripe information of the symmetrical stripe includes the pin width, pin length, and pin starting point of each pin in the symmetrical stripe, where:

[0028] Pin width of the sth pin in a symmetrical stripe

[0029] Pin length of the sth pin in a symmetrical stripe

[0030] The pin starting point (x s ,y s )=(x1+(i-1)×(w s +d), y1), where i≤Num, the sth pin in the symmetrical stripe is symmetrical to the ith pin in the initial stripe;

[0031] Component information includes the horizontal width W of the component search window icwin , vertical length H icwin and the upper left corner vertex position (x, y) of the initial point position of the component search window;

[0032] Positioning information includes xmid and mid , where y mid =y1+0.5×(y I -y1);

[0033] Step 10: For the newly matched symmetrical stripes in step 9, perform rectangle fitting and similarity calculation of the initial pins in the area to find missing solder joints. If there are missing pins in the symmetrical stripes relative to the initial stripes, add the missing pin information at the corresponding position of the initial stripes and update the stripe information;

[0034] Step 11: based on the searched initial stripe-component-symmetrical stripe position and internal pin arrangement information, estimate the solder joint length corresponding to the pin to perform solder joint search, specifically including the following steps:

[0035] Step 1101, create a solder joint search window:

[0036] Create a length of (H icwin +2×1h)~(H icwin +2×4h) solder joint search window, the solder joint search window is y mid The length of the upper and lower sides is gradually increased for the vertical center line, and the grayscale projection statistics of the solder joint area are performed at the same time;

[0037] Step 1102: When the solder joint search window is continuously increased in length to cover more component peripheral information, grayscale projection statistics are performed on the solder joint area within the solder joint search window. In the solder joint area, the point where the drop amplitude of the horizontal grayscale projection of the solder joint exceeds the drop amplitude threshold of the solder joint grayscale projection is the solder joint edge;

[0038] Step 1103: Determine the length of the solder joint according to the searched solder joint edge, using w s The length of +0.5d separates the solder joint area;

[0039] Step 1104: Record the location information of the solder joint.

[0040] Preferably, after step 1 and before step 2, the method further comprises the following steps:

[0041] Perform size correction on the image to be detected.

[0042] Preferably, in step 1, the parameters that need to be set in advance also include a global scaling ratio or a scaling size;

[0043] When the size of the image to be detected is corrected, the detected image is scaled to a size of m×n according to the global scaling ratio or scaling size set in step 1.

[0044] Preferably, in step 2, multiple downsampling operations are performed on the image to be detected, and differential operations are performed on different dimensions of the downsampling to extract the difference content between the upper and lower images, thereby obtaining edge feature information of the image to be detected.

[0045] Preferably, in step 1, the parameters that need to be set in advance also include a pin search similarity threshold Th, and step 5 specifically includes the following steps:

[0046] Step 501, obtaining the pin feature of the first pin located in step 4, and creating a matching template according to the pin feature, wherein the pin feature includes contrast, grayscale, and structural features;

[0047] Step 502: Create a search sliding window for single pin matching, the size of which is 1.2w1×1.2h1;

[0048] Step 503: In the search sliding window, the similarity between the image in the search sliding window and the matching template is calculated based on the pin features, and the matching results are screened using a pre-set pin search similarity threshold Th.

[0049] Preferably, in step 7,

[0050] The stripe width S is the stripe vector [V1, V2, ..., V i , ..., V I ] T The pin information x1 of the first pin and the pin information x of the Ith pin I The difference between

[0051] The stripe length h is the stripe vector [V1, V2, ..., V i , ..., V I ] T The position information of each position vector in h i The average value of is:

[0052]

[0053] Pin spacing

[0054] Number of pins

[0055] The present invention solves the problems of high density of components in old-style circuit boards, non-uniform formats of positioned components, and strong diversity of manual soldering joints. The method provided by the present invention achieves the purpose of positioning components and corresponding solder joints of pins by sequentially arranging pins near positioning components, and by identifying stripes, components, and arrangement characteristics of solder joints. It can effectively locate patch components and corresponding solder joints through component pin stripes, and is suitable for positioning and detecting the surface of circuit boards. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a flow chart of the present invention;

[0057] Figure 2 Schematic diagram of the components in the embodiment;

[0058] Figure 3 The pin images corresponding to the components in the embodiment;

[0059] Figure 4 This is the effect of the component after edge information extraction;

[0060] Figure 5 It is the combined stripe edge feature of sequentially arranged pins;

[0061] Figure 6 is the pin edge information image;

[0062] Figure 7 It is a schematic diagram of stripe-element-stripe;

[0063] Figure 8 A solder joint inspection window established based on solder joint length estimation;

[0064] Fig. 9 It is a schematic diagram of the grayscale projection area during the solder joint positioning process;

[0065] Fig.10 This is the actual grayscale projection effect of the component area. DETAILED DESCRIPTION

[0066] The present invention is further described below in conjunction with specific examples. It should be understood that these examples are only to help those of ordinary skill in the art understand the principles and knowledge of the present invention, and are not intended to limit the scope of the present invention, and cannot be considered to limit the application scenarios of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art may make various changes or modifications to the present invention, but the deformation, changes and conversions made to the embodiments based on the principles and purposes of the present invention also fall within the scope defined by the claims attached to this application. And it is obvious that this specification is only exemplified by preferred embodiments, and there is no need to exhaust all embodiments.

[0067] The present invention proposes a method for locating electronic patch components and solder joints corresponding to their pins in a global image of a circuit board, which is mainly used in the field of circuit board and component welding effect detection. The following will provide a unified description of the positioning method and steps of specific components and solder joints.

[0068] The present embodiment discloses a method for searching for continuous stripe features for locating solder joints of printed circuit board patch components, which specifically includes the following steps:

[0069] Step 1: Set the parameters that need to be set in advance. In this embodiment, the parameters that need to be set in advance include the global scaling ratio or scaling size, the estimated number of stripe pins Num e , spacing estimation d e , pin search similarity threshold Th, stripe search similarity threshold, stripe pin quantity threshold, solder joint grayscale projection decrease amplitude threshold.

[0070] Step 2: perform size correction on the image to be detected. Scale the detected image to a size of m×n according to the global scaling ratio or scaling size set in step 1 to reduce the influence of subtle noise in the image, thereby reducing the difficulty of preprocessing operations, better extracting image features, and increasing the speed of extracting image features.

[0071] Step 3: Perform multiple downsampling operations on the image of size m×n, and perform differential operations on different dimensions of the downsampling to extract the difference content between the upper and lower images, that is, to obtain the edge feature information in the image.

[0072] Step 4: After obtaining the edge feature information in the image, a single pin is fitted with a rectangle based on the edge feature information to locate the position of the first pin and obtain the pin information of the first pin. The pin information of the first pin is expressed as x1, y1, w1, and h1, and w1 and h1 are used as the parameter basis of the stripe sliding search window.

[0073] Step 4 specifically includes the following steps:

[0074] Step 401, according to the pin edge information, use rectangle fitting to obtain the position information x1, y1, w1, h1 of the first pin of the blank stripe container, where x1, y1 are the coordinates (x, y) of the upper left corner endpoint of the fitting rectangle in the image to be detected after the rectangle fitting is performed on the first pin, w1 is the horizontal width of the fitting rectangle, and h1 is the vertical length of the fitting rectangle.

[0075] Step 402: record w1 and h1 as the basis for defining parameters of the stripe sliding search window in step 5.

[0076] Step 5: Establish a blank stripe container according to the pin information of a single pin obtained in step 4, and establish a stripe sliding search window horizontally.

[0077] Step 5 specifically includes the following steps:

[0078] Step 501: Based on the pin information of the single pin located in step 4, a blank stripe container is established. The blank stripe container is a two-dimensional array container, which is recorded as [V1, V2, ..., V i , ...]T ,in, Represents the position vector of the i-th pin, which is a one-dimensional vector with four elements, and the four elements are the position information x of the i-th pin i ,y i 、w i 、h i ;

[0079] Step 502: Initialize the blank stripe container, V1 = [x1, y1, w1, h1], [V2, ..., V i , ...] T Initialized as a vector of all 0s;

[0080] Step 503: Estimating the number of stripe pins Num according to the pre-set number e , spacing estimation d e And w1, h1 obtained in step 4, calculate the size of the stripe sliding search window, and set the horizontal width and vertical length of the stripe sliding search window to be W respectively win and H win , then:

[0081] W win =1.5×(Num e ×w1+(Num e -1)×d e )

[0082] H win =1.5×h1

[0083] Step 6: After creating the stripe sliding search window, perform rectangular fitting on the pin edges of the remaining pins in the stripe sliding search window, and continue searching based on the pin features of the first pin obtained in step 4. Perform similarity matching between the pin features of the search sliding window obtained by fitting and the pin features of the first pin located in step 4, and confirm the remaining pins based on the pin search similarity threshold.

[0084] Step 6 specifically includes the following steps:

[0085] Step 601: Obtain the pin feature of the first pin located in step 4, and create a matching template according to the pin feature, wherein the pin feature includes contrast, grayscale, and structural features;

[0086] Step 602: Create a search sliding window for single pin matching, the size of which is 1.2w1×1.2h1;

[0087] Step 603: In the search sliding window, the similarity between the image in the search sliding window and the matching template is calculated based on the pin features, and the matching results are screened using the pin search similarity threshold Th set in advance.

[0088] Step 7: If the number of pins searched in the stripe sliding search window is greater than the pre-set stripe pin number threshold, all identified pins are defined as a pin group, and the pin group is further identified as an initial stripe, and the pin information of all pins corresponding to the initial stripe is saved to the blank stripe container created in step 5, and the stripe vector [V1, V2, ..., V i , ..., V I ] T , the positioning of the initial stripe and all the pins inside it is completed.

[0089] Step 8: Calculate the stripe length and stripe width of the initial stripe located in step 7, and calculate information such as the pin spacing and the number of pins.

[0090] The stripe width S is the stripe vector [V1, V2, ..., V i , ..., V I ] T The pin information x1 of the first pin and the pin information x of the Ith pin I The difference between

[0091] The stripe length h is the stripe vector [V1, V2, ..., V i , ..., V I ] T The position information of each position vector in h i The average value of is:

[0092]

[0093] Pin spacing

[0094] Number of pins

[0095] Step 9, after obtaining the stripe position and stripe information of the initial stripe through step 8, estimate the component parameters corresponding to the stripe, and search whether there is a component within a certain range based on the estimated information, so as to further confirm whether the initial stripe determined previously is a stripe near the target component.

[0096] Step 9 specifically includes the following steps:

[0097] Step 901: Set the horizontal width W of the component search window according to the stripe width S calculated in step 8. icwin=1.5×S and vertical length H icwin =1.2×W icwin ;

[0098] Step 902: According to the horizontal width W icwin , vertical length H icwin , component centerline x mid Create a component search window, x mid =x1+0.5×(x I -x1).

[0099] The initial point position information of the component search window is different according to the upward and downward directions of the vertical search: if the search is for upward components, the upper left corner vertex position of the initial point position of the component search window is described as (x, y) = (x mid -0.5×W ic , y1+h1); if the search is for downward components, the upper left corner vertex position of the initial point of the component search window is described as (x, y) = (x mid -0.5×W ic ,y1-h1-H icwin ).

[0100] Step 903: Inside the component search window, according to the edge information of the component, fit the largest rectangular area as the positioning area of ​​the component.

[0101] Step 10: By searching upward or downward for the component, the relative position of the initial stripe and the component can be determined. Since the pins are usually arranged symmetrically on both sides of the component, stripe matching is performed based on the initial stripe information at the symmetrical position relative to the component through the symmetry relationship.

[0102] Step 1001, establishing a complete stripe matching template according to the stripe length h, stripe width S, pin number Num and pin spacing d of the initial stripe;

[0103] Step 1002: perform stripe matching at the other side of the corresponding component according to the stripe matching template. If the stripe similarity is greater than the stripe search similarity threshold, define the stripe as a symmetrical stripe, and write the stripe information of the symmetrical stripe and the stripe information of the initial stripe, the component information, and the positioning information into a component information vector for storage, where:

[0104] The stripe information of the initial stripe includes the pin starting point of each pin in the initial stripe and the stripe width S, stripe length h, pin number Num and pin spacing d of the initial stripe.

[0105] The stripe information of the symmetrical stripe includes the pin width, pin length, and pin starting point of each pin in the symmetrical stripe, where:

[0106] Pin width of the sth pin in a symmetrical stripe

[0107] Pin length of the sth pin in a symmetrical stripe

[0108] The pin starting point (x s ,y s )=(x1+(i-1)×(w s +d), y1), where i≤Num, the sth pin in the symmetrical stripe is symmetrical to the ith pin in the initial stripe;

[0109] Component information includes the horizontal width W of the component search window icwin , vertical length H icwin and the upper left corner vertex position (x, y) of the initial point position of the component search window;

[0110] Positioning information includes x mid and mid , where y mid =y1+0.5×(y I -y1).

[0111] Step 11: For the newly matched symmetrical stripes in step 10, perform rectangle fitting and similarity calculation of the initial pins in the area to find missing solder joints. If there are missing pins in the symmetrical stripes relative to the initial stripes, add the missing pin information at the corresponding position of the initial stripes and update the stripe information.

[0112] Step 12: Based on the searched initial stripe-component-symmetrical stripe position and internal pin arrangement information, estimate the solder joint length corresponding to the pin to perform solder joint search.

[0113] In step 12, estimating the length of the solder joint specifically includes the following steps:

[0114] Step 1201, create a solder joint search window:

[0115] Usually the solder joint length interval is set to 1h~4h, and further according to the solder joint length, a length of (H icwin +2×1h)~(H icwin +2×4h) solder joint search window, the solder joint search window is y mid The length of the upper and lower sides is gradually increased for the vertical center line, and the grayscale projection statistics of the solder joint area are performed at the same time;

[0116] Step 1202: When the solder joint search window is continuously increased in length to cover more component peripheral information, grayscale projection statistics are performed on the solder joint area within the solder joint search window. In the solder joint area, the point where the drop amplitude of the horizontal grayscale projection of the solder joint exceeds the drop amplitude threshold of the solder joint grayscale projection is the solder joint edge;

[0117] Step 1203: Determine the length of the solder joint according to the searched solder joint edge, using w s The length of +0.5d separates the solder joint area;

[0118] Step 1204: Record the location information of the solder joint.

[0119] The present invention can be applied to detection scenarios of patch-type components packaged in various shapes. Without departing from the spirit and essence of the present invention, technical personnel in this field can make various corresponding changes based on the present invention, but these corresponding changes should all fall within the scope of protection of the claims attached to the present invention.

Claims

1. A continuous stripe feature search method for locating solder joints of circuit board patch components, characterized in that: The following steps are involved: Step 1: Set the parameters that need to be set in advance, including the global scaling ratio or scaling size, the estimated number of stripe pins Num e , spacing estimation d e , stripe search similarity threshold, stripe pin quantity threshold, solder joint grayscale projection decrease amplitude threshold; Step 2: Obtain edge feature information in the image to be detected; Step 3: Fit a rectangle to a single pin based on the edge feature information to locate the position of the first pin and obtain the pin information of the first pin. The pin information of the first pin is represented by x1, y1, w1, and h1, and w1 and h1 are used as the parameter basis of the stripe sliding search window, where: x1 and y1 are the coordinates (x, y) of the upper left corner endpoint of the fitting rectangle in the image to be detected after the first pin is fitted with a rectangle, w1 is the horizontal width of the fitting rectangle, and h1 is the vertical length of the fitting rectangle; Step 4: Establish a blank stripe container according to the pin information of a single pin obtained in step 3, and establish a stripe sliding search window horizontally, specifically including the following steps: Step 401: Based on the pin information of the single pin located in step 3, a blank stripe container is established. The blank stripe container is a two-dimensional array container, which is recorded as [V1, V2, ..., V i , ...] T ,in, Represents the position vector of the i-th pin, which is a one-dimensional vector with four elements, and the four elements are the position information x of the i-th pin i ,y i 、w i 、h i ; Step 402: Initialize the blank stripe container, V1 = [x1, y1, w1, h1], [V2, ..., V i , ...] T Initialized as a vector of all 0s; Step 403: Estimating the number of stripe pins Num according to the preset number e , spacing estimation d e And w1, h1 obtained in step 3, calculate the size of the stripe sliding search window, and set the horizontal width and vertical length of the stripe sliding search window to be W respectively win and H win , then: W win =1.5×(Number e ×w1+(Num e -1)×d e ) H win =1.5×h1 Step 5: perform rectangular fitting on the pin edges of the remaining pins in the stripe sliding search window, continue searching according to the pin features of the first pin obtained in step 4, perform similarity matching on the pin features of the search sliding window obtained by fitting and the pin features of the first pin located in step 4, and confirm the remaining pins according to the pin search similarity threshold; Step 6: If the number of pins searched in the stripe sliding search window is greater than the pre-set stripe pin number threshold, all identified pins are defined as a pin group, and the pin group is further identified as an initial stripe, and the pin information of all pins corresponding to the initial stripe is saved to the blank stripe container created in step 4, and the stripe vector [V1, V2, ..., V i , ..., V I ] T , then the positioning of the initial stripe and all the pins inside it is completed; Step 7, calculating the stripe width S and stripe length h of the initial stripe located in step 6, and calculating the pin spacing d and the number of pins Num; Step 8: After obtaining the stripe position and stripe information of the initial stripe through step 7, the component parameters corresponding to the stripe are estimated, and the component is searched within a certain range according to the estimated information to further confirm whether the initial stripe determined previously is a stripe near the target component, which specifically includes the following steps: Step 801: Set the horizontal width W of the component search window according to the stripe width S calculated in step 7. icwin =1.5×S and vertical length H icwin =1.2×W icwin ; Step 802: According to the horizontal width W icwin , vertical length H icwin , component centerline x mid Create a component search window, x mid =x1+0.5×(x I -x1); The initial point position information of the component search window is different according to the upward and downward directions of the vertical search: if the search is for upward components, the upper left corner vertex position of the initial point position of the component search window is described as (x, y) = (x mid -0.5×W ic , y1+h1); if the search is for downward components, the upper left corner vertex position of the initial point of the component search window is described as (x, y) = (x mid -0.5×W ic ,y1-h1-H icwin ); Step 803: Fit a maximum rectangular area within the component search window according to the edge information of the component as the component positioning area; Step 9: By searching for components upward or downward, the relative position of the initial stripes and the components can be determined; since the pins are usually arranged symmetrically on both sides of the components, stripe matching is performed according to the initial stripe information at the symmetrical position relative to the components through the symmetry relationship, including the following steps: Step 901, establishing a complete stripe matching template according to the stripe length h, stripe width S, pin number Num and pin spacing d of the initial stripe; Step 902: perform stripe matching at the other side of the corresponding component according to the stripe matching template. If the stripe similarity is greater than the stripe search similarity threshold, define the stripe as a symmetrical stripe, and write the stripe information of the symmetrical stripe and the stripe information of the initial stripe, the component information, and the positioning information into a component information vector for storage, where: The stripe information of the initial stripe includes the pin starting point of each pin in the initial stripe and the stripe width S, stripe length h, pin number Num and pin spacing d of the initial stripe; The stripe information of the symmetrical stripe includes the pin width, pin length, and pin starting point of each pin in the symmetrical stripe, where: Pin width of the sth pin in a symmetrical stripe Pin length of the sth pin in a symmetrical stripe The pin starting point (x s ,y s )=(x1+(i-1)×(w s +d), y1), where i≤Num, the sth pin in the symmetrical stripe is symmetrical to the ith pin in the initial stripe; Component information includes the horizontal width W of the component search window icwin , vertical length H icwin and the upper left corner vertex position (x, y) of the initial point position of the component search window; Positioning information includes x mid and mid , where y mid =y1+0.5×(y I -y1); Step 10: For the newly matched symmetrical stripes in step 9, perform rectangle fitting and similarity calculation of the initial pins in the area to find missing solder joints; if there are missing pins in the symmetrical stripes relative to the initial stripes, add the missing pin information at the corresponding position of the initial stripes and update the stripe information; Step 11: based on the searched initial stripe-component-symmetrical stripe position and internal pin arrangement information, estimate the solder joint length corresponding to the pin to perform solder joint search, specifically including the following steps: Step 1101, create a solder joint search window: Create a length of (H icwin +2×1h)~(H icwin +2×4h) solder joint search window, the solder joint search window is y mid The length of the upper and lower sides is gradually increased for the vertical center line, and the grayscale projection statistics of the solder joint area are performed at the same time; Step 1102: When the solder joint search window is continuously lengthened to cover more component peripheral information, grayscale projection statistics are performed on the solder joint area within the solder joint search window; in the solder joint area, the point where the decrease amplitude of the horizontal grayscale projection of the solder joint exceeds the threshold of the decrease amplitude of the solder joint grayscale projection is the solder joint edge; Step 1103: Determine the length of the solder joint according to the searched solder joint edge, using w s The length of +0.5d separates the solder joint area; Step 1104: Record the location information of the solder joint.

2. A continuous stripe feature search method for locating solder joints of circuit board patch components as claimed in claim 1, characterized in that: After step 1 and before step 2, the method further includes the following steps: performing size correction on the image to be detected.

3. A continuous stripe feature search method for locating solder joints of circuit board patch components as claimed in claim 1, characterized in that: In step 1, the parameters that need to be set in advance also include the global scaling ratio or scaling size; When the size of the image to be detected is corrected, the detected image is scaled to a size of m×n according to the global scaling ratio or scaling size set in step 1.

4. A continuous stripe feature search method for locating solder joints of circuit board patch components as claimed in claim 1, characterized in that: In step 2, the image to be detected is downsampled multiple times, and the different dimensions of the downsampling are differentially operated to extract the difference content between the upper and lower images, thereby obtaining the edge feature information of the image to be detected.

5. A continuous stripe feature search method for locating solder joints of circuit board patch components as claimed in claim 1, characterized in that: In step 1, the parameters that need to be set in advance also include the pin search similarity threshold Th, and step 5 specifically includes the following steps: Step 501, obtaining the pin feature of the first pin located in step 4, and creating a matching template according to the pin feature, wherein the pin feature includes contrast, grayscale, and structural features; Step 502: Create a search sliding window for single pin matching, the size of which is 1.2w1×1.2h1; Step 503: In the search sliding window, the similarity between the image in the search sliding window and the matching template is calculated based on the pin features, and the matching results are screened using a pre-set pin search similarity threshold Th.

6. A continuous stripe feature search method for locating solder joints of circuit board patch components as claimed in claim 1, characterized in that: In step 7, The stripe width S is the stripe vector [V1, V2, ..., V i , ..., V I ] T The pin information x1 of the first pin and the pin information x of the Ith pin I The difference between The stripe length h is the stripe vector [V1, V2, ..., V i , ..., V I ] T The position information of each position vector in h i The average value of is: Pin spacing Number of pins