Printed circuit board, device welding detection method and device and electronic equipment
By setting up multiple types of silk-print lines on the printed circuit board and calculating the offset distance based on the coordinates in the target image, the problem of not being able to detect the welding position of devices of different sizes in the prior art is solved, and different sizes for the same function are achieved Accurate detection of the welding position of the device.
Patent Information
- Application Number
- CN202310559649.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art cannot accurately detect the welding position of multiple devices with the same functions but different sizes on the same printed circuit board, resulting in the inability to realize welding position detection of any device with the same functions but different sizes.
By setting at least two types of silk-printed lines on the printed circuit board, corresponding to welding parts of different sizes, and calculating the offset distance of the welding parts based on the coordinates of the welding parts and the silk-printed lines in the target image to determine whether the welding position has occurred. Offset.
Accurate detection of the soldering position of any device with the same function but different sizes on the printed circuit board is achieved, improving the accuracy and reliability of the detection.
Smart Images

Figure CN118960550A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of AOI technology, and in particular to a printed circuit board, a device welding detection method, a device and an electronic device. Background Art
[0002] Automated Optical Inspection (AOI) is a method based on optical principles to detect common defects encountered in welding production. It is usually used in the patch process of printed circuit boards (PCBs), specifically to detect whether the welding position of the device on the printed circuit board is offset.
[0003] Figure 1 One of the structural schematic diagrams of a printed circuit board in the prior art is shown in FIG. Figure 1 As shown, the printed circuit board includes a substrate 11 and a silk screen line 12, and the silk screen line 12 is printed by ink during the production of the printed circuit board. Figure 1 As shown, in the related art, a circle of silk screen line 12 is usually set on the printed circuit board. When performing AOI inspection, the silk screen line 12 is used as a reference line. Based on the distance between the silk screen line 12 and the edge of the device soldered on the printed circuit board, it is determined whether the soldering position of the device on the printed circuit board is offset.
[0004] However, in the above-mentioned related technology, only the soldering position of a device with the same function soldered on the same printed circuit board can be detected. If multiple devices with the same function but different sizes are compatible on the same printed circuit board, it is impossible to detect the soldering position of any device with the same function but different sizes on the printed circuit board. Summary of the invention
[0005] The present invention provides a printed circuit board, a device welding detection method, an apparatus and an electronic device, which are used to solve the problem in the prior art that when multiple devices with the same function but different sizes are compatible on the same printed circuit board, it is impossible to detect the welding position of any device with the same function but different sizes on the printed circuit board, and the purpose of detecting the welding position of any device with the same function but different sizes on the printed circuit board is achieved.
[0006] The present invention also provides a device welding detection method, which is applied to a printed circuit board, wherein the printed circuit board includes a substrate and at least two types of silk screen lines arranged on the substrate; the types of the silk screen lines correspond to the identifications of the welding parts, and the functions of the welding parts of the respective identifications are the same; the method includes:
[0007] Acquire a target image; the target image includes a printed circuit board provided with welding parts;
[0008] Determine at least two first coordinates corresponding to the weldment in the target image;
[0009] Determine at least two second coordinates corresponding to a silk-screen line of a target type in the target image; the silk-screen line of the target type is a silk-screen line that is not covered by the welding member on all sides of the substrate;
[0010] Based on each of the first coordinates and each of the second coordinates, it is determined whether a welding position of the welding component on the printed circuit board is offset.
[0011] According to a device welding detection method provided by the present invention, the determining of at least two second coordinates corresponding to the silk screen line of the target type in the target image includes:
[0012] Determine all silk screen lines that are not covered in the target image;
[0013] Grouping all the silk-screen lines based on the type of the silk-screen lines to obtain at least one group;
[0014] Determining at least one target group of silk screen lines including all sides of the substrate in the at least one group; each silk screen line in the target group is a silk screen line of a target type;
[0015] For each of the target groups, at least two of the second coordinates corresponding to the silk-screen lines in the target group are determined.
[0016] According to a device welding detection method provided by the present invention, determining whether the welding position of the welding part on the printed circuit board is offset based on each of the first coordinates and each of the second coordinates includes:
[0017] Traversing from the first target group, determining a target value based on each of the first coordinates and at least two of the second coordinates corresponding to the screen printing lines in the first target group;
[0018] When it is determined that the target value is greater than the preset value, a new target value is determined based on each of the first coordinates and at least two of the second coordinates corresponding to the silk screen lines in the second target group, and the above steps are repeated until the new target value is less than or equal to the preset value, or until all the target groups are traversed.
[0019] According to a device welding detection method provided by the present invention, the first coordinate is used to characterize the position of the welding part in the target image; the second coordinate is used to characterize the position of the silk screen line of the target type in the target image.
[0020] The present invention provides a printed circuit board, comprising: a substrate and at least two types of silk screen lines arranged on the substrate; the types of the silk screen lines correspond to the identifications of welding parts, and the functions of the welding parts with different identifications are the same.
[0021] According to a printed circuit board provided by the present invention, for each type of silk screen line, the silk screen line includes at least four target lines, and the at least four target lines are respectively arranged at positions opposite to each side edge of the substrate.
[0022] According to a printed circuit board provided by the present invention, the type of the silk-screen line is characterized by at least one of the following: shape, color and size.
[0023] The present invention also provides a device for detecting device welding, the device comprising:
[0024] An acquisition module, used for acquiring a target image; the target image includes a printed circuit board provided with welding parts;
[0025] A determination module, used to determine at least two first coordinates corresponding to the weldment in the target image;
[0026] The determination module is further used to determine at least two second coordinates corresponding to a silk screen line of a target type in the target image; the silk screen line of the target type is a silk screen line that is not covered by the welding part on all sides of the substrate;
[0027] The determination module is further used to determine whether a welding position of the welding component on the printed circuit board is offset based on each of the first coordinates and each of the second coordinates.
[0028] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the device welding detection methods described above is implemented.
[0029] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the device welding detection method as described in any one of the above is implemented.
[0030] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the device welding detection method as described above is implemented.
[0031] The present invention provides a printed circuit board, a device welding detection method, an apparatus and an electronic device. The method obtains a target image of a printed circuit board including a welding part, determines at least two first coordinates corresponding to the welding part in the target image, and determines at least two second coordinates corresponding to a silk screen line of a target type in the target image. The silk screen line of the target type is a silk screen line that is not covered by the welding part on all sides of the substrate. Based on each first coordinate and each second coordinate, it is determined whether the welding position of the welding part on the printed circuit board is offset, thereby realizing the detection of the welding position of any welding part with the same function but different sizes on the printed circuit board. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 It is one of the structural schematic diagrams of a printed circuit board in the prior art;
[0034] Figure 2 This is the second structural schematic diagram of a printed circuit board in the prior art;
[0035] Figure 3 This is the third structural schematic diagram of a printed circuit board in the prior art;
[0036] Figure 4 This is the fourth structural schematic diagram of a printed circuit board in the prior art;
[0037] Figure 5 It is a schematic diagram of the size of a sensor chip in the prior art;
[0038] Figure 6 It is a schematic diagram of the dimensions of a printed circuit board corresponding to sensor chip welding in the prior art;
[0039] Figure 7 This is the fifth structural schematic diagram of a printed circuit board in the prior art;
[0040] Figure 8 It is one of the structural schematic diagrams of the printed circuit board provided by the embodiment of the present invention;
[0041] Fig. 9 This is the second structural schematic diagram of the printed circuit board provided by the embodiment of the present invention;
[0042] Fig.10 This is the third structural schematic diagram of the printed circuit board provided by the embodiment of the present invention;
[0043] Fig.11 This is a fourth structural schematic diagram of a printed circuit board provided by an embodiment of the present invention;
[0044] Fig.12 This is a fifth structural schematic diagram of a printed circuit board provided in an embodiment of the present invention;
[0045] Fig.13 This is the sixth structural schematic diagram of the printed circuit board provided by the embodiment of the present invention;
[0046] Fig.14 This is the seventh structural schematic diagram of the printed circuit board provided by the embodiment of the present invention;
[0047] Fig.15 This is an eighth structural schematic diagram of a printed circuit board provided by an embodiment of the present invention;
[0048] Fig.16 It is a schematic diagram of the process of the device welding detection method provided by an embodiment of the present invention;
[0049] Fig.17 This is a ninth structural diagram of a printed circuit board provided by an embodiment of the present invention;
[0050] Fig.18 is a schematic structural diagram of a device welding detection apparatus provided by an embodiment of the present invention;
[0051] Fig.19 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] With the rapid development of electronic products, people have higher and higher requirements on the quality of electronic products. Among them, the quality of electronic products is often related to whether the welding position of the welding parts on the printed circuit board in the electronic products is offset.
[0054] At present, when detecting whether the welding position of the welding parts on the printed circuit board is offset, the existing technology usually adopts an automatic optical detection method.
[0055] Specifically, the automatic optical detection method collects a target image of a printed circuit board with a welding part through a camera; a type of silk screen line is provided on the printed circuit board. After image preprocessing, the contour lines of the welding part and the silk screen line on the printed circuit board in the target image can be identified, and then based on the contour line, the coordinates of each vertex on the contour line can be obtained, and based on these obtained vertex coordinates, the offset of the welding position of the welding part on the printed circuit board is calculated, and compared with the offset threshold, so as to determine whether the welding position of the welding part on the printed circuit board is offset.
[0056] Apart from Figure 1 In addition to the long solid line type of silk screen line 12 shown, other types of silk screen lines can also be used. Exemplary, Figure 2 The second schematic diagram of the structure of the printed circuit board in the prior art is as follows: Figure 2 As shown, the silk screen line 21 can be a long and short line type; Figure 3 The third structural diagram of a printed circuit board in the prior art is shown in FIG. Figure 3 As shown, the silk screen line 31 may be a dotted line type; Figure 4 The fourth structural diagram of a printed circuit board in the prior art is shown in FIG. Figure 4 As shown, the silk screen line 41 may be a dotted line type.
[0057] It is understandable that when setting the silk screen line on the printed circuit board, the tolerance of the welding part in the horizontal direction and the vertical direction needs to be considered so as to more accurately detect whether the welding position of the welding part on the printed circuit board is offset.
[0058] like Figure 2 As shown, the tolerance can be taken as 8mil (mil), that is, the distance X1 between the left side of the silk screen line 21 and the geometric center P of the package is equal to the distance from the left side of the weld to the geometric center of the weld + 4mil, the distance X2 between the right side of the silk screen line 21 and the geometric center P of the package is equal to the distance from the right side of the weld to the geometric center of the weld + 4mil, the distance Y1 between the upper side of the silk screen line 21 and the geometric center P of the package is equal to the distance from the upper side of the weld to the geometric center of the weld + 4mil, and the distance Y2 between the lower side of the silk screen line 21 and the geometric center P of the package is equal to the distance from the lower side of the weld to the geometric center of the weld + 4mil. Among them, the geometric center P of the package is the center of the silk screen area divided for the weld on the printed circuit board, and the geometric center P of the package coincides with the geometric center of the weld.
[0059] However, in practical applications, the same printed circuit board is often required to be compatible with welding parts with the same function but different sizes. The welding parts with the same function but different sizes can be different models of devices produced by the same manufacturer, or different models of devices produced by different manufacturers. Taking the welding parts as sensor chips as an example, the sensor chip is a sensor. Table 1 includes sensor chips of different sizes. Among them, when the welding position of the sensor chip on the printed circuit board is greatly offset, the pins of the sensor chip will be poorly soldered, making it unable to power on normally. In addition, the offset of the welding position of the sensor chip on the printed circuit board will also affect the quality of its imaging and increase the probability of dark corners.
[0060] Table 1
[0061] Welding parts S1(cm) S3(cm) S2(cm) S4(cm) A(cm) B(cm) Sensor chip 1 0.943 0.981 0.737 0.583 5.764 3.64 Sensor chip 2 0.9196 0.9584 0.7749 0.5681 5.718 3.663 Sensor chip 3 1.17908 1.17992 0.99826 0.82074 6.199 4.139 Sensor chip 4 0.908 0.974 0.843 0.56 5.722 3.723 Sensor chip 5 0.938 0.972 0.864 0.688 5.75 3.872
[0062] Figure 5 is a schematic diagram of the size of a sensor chip in the prior art, such as Figure 5 As shown in the figure, A represents the length of the sensor chip and B represents the width of the sensor chip. Figure 6 The following is a schematic diagram of the dimensions of a printed circuit board required for sensor chip welding in the prior art; Figure 6 As shown, S1 represents the left side distance of the printed circuit board corresponding to the sensor chip welding in the horizontal direction; S2 represents the upper side distance of the printed circuit board corresponding to the sensor chip welding in the vertical direction; S3 represents the right side distance of the printed circuit board corresponding to the sensor chip welding in the horizontal direction; S4 represents the lower side distance of the printed circuit board corresponding to the sensor chip welding in the vertical direction.
[0063] The following description is made by taking a printed circuit board with a long solid silk screen line as an example.
[0064] Figure 7 FIG5 is a schematic diagram of the structure of a printed circuit board in the prior art, wherein 71 is the silk screen line corresponding to the welding part A on the printed circuit board; 72 is the silk screen line corresponding to the welding part B on the printed circuit board. Figure 7 As shown, when detecting whether the welding position of welding part B is offset, since there is no obvious difference in shape and thickness between silk screen line 71 and silk screen line 72 on the printed circuit board, it is easy to cause the wrong silk screen line to be selected as the reference line in automatic optical inspection or in manual visual inspection, that is, silk screen line 72 is used as the reference line on the left side and silk screen line 71 is used as the reference line on the right side, thereby affecting the automatic optical inspection or the production line workers' judgment on whether the welding position of welding part B on the printed circuit board is offset.
[0065] It can be seen that when faced with welding parts with the same function but different sizes, the existing technology cannot accurately determine whether the welding position of each welding part is offset, resulting in the inability to detect the welding position of any device with the same function but different sizes on the printed circuit board.
[0066] Based on this, an embodiment of the present invention provides a printed circuit board, comprising: a substrate and at least two types of silk screen lines arranged on the substrate; the types of the silk screen lines correspond to the identifications of the welding parts, and the welding parts with different identifications have the same functions. Therefore, when at least two types of silk screen lines are arranged, welding parts of different sizes can correspond to different types of silk screen lines, and then the offset of the welding position of the welding part on the printed circuit board can be calculated, so that the welding position of welding parts with the same function but different sizes on the printed circuit board can be detected.
[0067] Combine the following Figure 8-Figure 15 A printed circuit board according to an embodiment of the present invention is described. The printed circuit board can be applied in a device welding detection scenario, and in particular, can be applied in a welding detection scenario of welding parts having the same function but different sizes.
[0068] Figure 8 One of the structural schematic diagrams of the printed circuit board provided in the embodiment of the present invention is as follows: Figure 8 As shown, the printed circuit board includes a substrate 81 and at least two types of silk screen lines 82 arranged on the substrate 81; the types of the silk screen lines 82 correspond to the identifications of the welding parts, and the functions of the welding parts with each identification are the same.
[0069] The welding part is a device that needs to be welded on a printed circuit board. The identification of the welding part can be the model, size or a combination of the manufacturer and model of the welding part, and the present invention does not impose any specific limitation on this.
[0070] like Figure 8 As shown, in the embodiment of the present invention, two types of silk screen lines, namely, dotted lines and dash-dot lines, are used as examples for description.
[0071] Specifically, when detecting whether the welding position of the welding component on the printed circuit board is offset, the target image of the printed circuit board including the welding component can be first captured by a camera, and the target image can be analyzed to determine the contour line and silk screen line 82 of the welding component included in the target image; then, based on the position of the contour line and silk screen line 82 of the welding component in the target image, the offset distance between each side edge of the welding component and the corresponding side edge of the silk screen line is determined.
[0072] Exemplarily, when calculating the offset distance between each side of the weld and the side corresponding to the silk screen line based on the contour line of the weld and the position of the silk screen line 82 in the target image, at least two first coordinates corresponding to the weld in the target image can be determined, and at least two second coordinates corresponding to the silk screen line of the target type in the target image can be determined, and the offset distance is calculated based on each first coordinate and each second coordinate. The silk screen line of the target type is a silk screen line that is not covered by the weld on all sides of the substrate. The present application does not specifically limit the order of determining the first coordinate and the second coordinate.
[0073] It can be understood that the first coordinates may be the coordinates of any point on or within the contour of the weldment in the target image, and the second coordinates may be the coordinates of any point on the screen printing line of the target type in the target image.
[0074] For example, when the first coordinates are vertex coordinates on the contour line of the welded part in the target image, only two first coordinates may be obtained; when the first coordinates are non-vertex coordinates on the contour line of the welded part in the target image or coordinates of any point within the contour line, four first coordinates need to be obtained. Similarly, when the second coordinates are vertex coordinates on the silk screen of the target type in the target image, only two second coordinates may be obtained; when the second coordinates are non-vertex coordinates on the silk screen of the target type in the target image, four second coordinates need to be obtained.
[0075] Preferably, when the first coordinate is the vertex coordinate on the contour line of the welded part in the target image, and the second coordinate is also the vertex coordinate on the silk screen line of the target type in the target image, the offset distance between each side edge of the welded part and each side edge of the silk screen line can be calculated only by the two first coordinates and the two second coordinates.
[0076] Below Fig. 9 Taking the vertex coordinates A(x1, y1) and B(x2, y2) on the contour line of the welding part A as the first coordinates and the vertex coordinates C(x3, y3) and D(x4, y4) on the dotted line type silk screen line 92 as the second coordinates as an example, the offset distances between the side edges of the above-mentioned welding part and the side edges of the silk screen line are described in detail.
[0077] Specifically, Fig. 9 The second structural diagram of the printed circuit board provided by the embodiment of the present invention is as follows: Fig. 9 As shown, the printed circuit board includes a substrate 91, a silk screen line 92 and a welding part A. The coordinates of the geometric center P of the package are (0, 0), and the geometric center P of the package coincides with the geometric center of the welding part A.
[0078] like Fig. 9As shown, after determining the first coordinates A(x1, y1) and B(x2, y2) corresponding to the weldment A, the distance AX between the left side of the weldment A and the geometric center of the weldment A can be obtained by the absolute value |x1| of the horizontal coordinate x1 in the first coordinate A(x1, y1); the distance AY between the upper side of the weldment A and the geometric center of the weldment A can be obtained by the absolute value |y2| of the vertical coordinate y1 in the first coordinate A(x1, y1); the distance BX between the right side of the weldment A and the geometric center of the weldment A can be obtained by the absolute value |x2| of the horizontal coordinate x2 in the first coordinate B(x2, y2); and the distance BY between the lower side of the weldment A and the geometric center of the weldment A can be obtained by the absolute value |y2| of the vertical coordinate y2 in the first coordinate B(x2, y2).
[0079] Similarly, after determining the first coordinates C(x3, y3) and D(x4, y4) corresponding to the silk screen line 92, the distance CX between the left side of the silk screen line 92 and the geometric center P of the package can be obtained by the absolute value |x3| of the horizontal coordinate x3 in the second coordinate C(x3, y3); the distance CY between the upper side of the silk screen line 92 and the geometric center P of the package can be obtained by the absolute value |y3| of the vertical coordinate y3 in the second coordinate C(x3, y3); the distance DX between the right side of the silk screen line 92 and the geometric center P of the package can be obtained by the absolute value |x4| of the horizontal coordinate x3 in the second coordinate D(x4, y4); the distance DY between the lower side of the silk screen line 92 and the geometric center P of the package can be obtained by the absolute value |y4| of the vertical coordinate y3 in the second coordinate D(x3, y3).
[0080] like Fig. 9As shown, after obtaining the distances between the sides of the welding part A and the geometric center of the welding part A and the distances between the sides of the silk-screen line 92 and the geometric center P of the package, the offset distance X1 between the left side of the welding part A and the left side of the silk-screen line 92 can be calculated by subtracting the distance AX between the left side of the welding part A and the geometric center of the welding part A from the distance CX between the left side of the silk-screen line 92 and the geometric center P of the package; the offset distance X2 between the left side of the welding part A and the left side of the silk-screen line 92 can be calculated by subtracting the distance BX between the right side of the welding part A and the geometric center of the welding part A from the distance DX between the right side of the silk-screen line 92 and the geometric center P of the package. The offset distance X2 between the right side edge of connector A and the right side edge of the silk screen line 92; the offset distance Y1 between the upper side edge of welding part A and the upper side edge of the silk screen line 92 can be calculated by subtracting the distance AY between the upper side edge of welding part A and the geometric center of welding part A from the distance CY between the upper side edge of welding part A and the geometric center of welding part A; the offset distance Y2 between the lower side edge of welding part A and the lower side edge of the silk screen line 92 can be calculated by subtracting the distance BY between the lower side edge of welding part A and the geometric center of welding part A from the distance DY between the lower side edge of the silk screen line 92 and the geometric center P of the package.
[0081] Optionally, the correspondence between the identification of each welding part and the type of silk screen line can be pre-stored. In this way, when calculating the offset distance between each side of the welding part and the side corresponding to the silk screen line, the target silk screen line corresponding to the welding part can be determined based on the correspondence between the identification of the welding part and the type of silk screen line, and then the offset distance between each side of the welding part and the side corresponding to the target silk screen line can be calculated in the above manner.
[0082] Furthermore, after determining the offset distance between each side of welding part A and the corresponding side of the silk screen line 92, the horizontal offset of the welding position of welding part A on the printed circuit board can be calculated by the following formula (1), and the vertical offset of the welding position of welding part A on the printed circuit board can be calculated by the following formula (2), and then the horizontal offset and the vertical offset are compared with the corresponding offset thresholds to determine the offset result corresponding to welding part A.
[0083] DX = |X1-X2| / ((X1+X2) / 2) (1)
[0084] DY = |Y1-Y2| / ((Y1+Y2) / 2) (2)
[0085] Among them, DX represents the horizontal offset of the welding position of welding component A on the printed circuit board, DY represents the vertical offset of the welding position of welding component A on the printed circuit board; X1 represents the offset distance between the left side edge of welding component A and the left side edge of silk screen line 92; X2 represents the offset distance between the right side edge of welding component A and the right side edge of silk screen line 92; Y1 represents the offset distance between the upper side edge of welding component A and the upper side edge of silk screen line 92; Y2 represents the offset distance between the lower side edge of welding component A and the lower side edge of silk screen line 92.
[0086] For example, when it is determined that the offset result corresponding to the welding part is less than the offset threshold, it can be determined that the welding position of the welding part on the printed circuit board has not shifted. When it is determined that the offset result corresponding to the welding part is greater than or equal to the offset threshold, it is determined that the welding position of the welding part on the printed circuit board has shifted, that is, there may be a cold solder joint, and remedial measures such as repair soldering or power-on inspection are required.
[0087] The offset is also called the target value, and the offset threshold is also called the preset value. The size of the offset threshold is usually related to the tinning area of the welded part. For example, when the tinning area of the pin of the welded part is at least 70%, the horizontal offset and vertical offset of the welding position of the welded part on the printed circuit board can be obtained, and then the corresponding offset threshold can be determined. In this case, when the calculated offset corresponding to the welded part is still less than the offset threshold, it can be considered that the welded part is reliably welded.
[0088] The printed circuit board provided by the embodiment of the present invention includes a substrate and at least two types of silk screen lines arranged on the substrate; wherein the types of silk screen lines correspond to the identification of welding parts, and the functions of welding parts with different identifications are the same. In this way, when detecting whether the welding position of welding parts on the printed circuit board is offset, different types of silk screen lines correspond to welding parts of different sizes, and then the offset of the welding position of the welding parts on the printed circuit board can be calculated based on the different types of silk screen lines, so that the welding position of any welding parts with the same function but different sizes on the printed circuit board can be detected.
[0089] In a possible implementation, based on the above embodiment, for each type of screen printing line, the screen printing line includes at least four target lines, and the at least four target lines are respectively arranged at positions opposite to each side of the substrate. The lengths of the four target lines may be the same or different, and this application does not impose any specific restrictions on this.
[0090] Specifically, Fig.10 The third structural diagram of the printed circuit board provided by the embodiment of the present invention is as follows: Fig.10As shown, when two or more types of silk screen lines are provided in the printed circuit board, it is easy to cause cross-overlapping between the silk screen lines, wherein the dotted silk screen line is represented by 102, and the dotted silk screen line 103 and the dashed silk screen line 104 cross-overlap, resulting in the inability to effectively distinguish the sides of the dotted silk screen line 103 and the dashed silk screen line 104. Therefore, it is necessary to delete and optimize the silk screen lines to avoid the problem of cross-overlapping.
[0091] It is understandable that, since it is necessary to determine the offset distance between each side of the weldment and the corresponding side of the target silk screen line, at least four target lines need to be retained for each type of silk screen line. When only four target lines are retained, the four target lines are respectively located at positions relative to each side of the substrate 101; when the number of retained target lines is greater than four, there are multiple target lines at positions relative to at least one side of the substrate 101.
[0092] For example, Fig.11 A fourth structural schematic diagram of a printed circuit board provided in an embodiment of the present invention; Fig.12 A fifth structural diagram of a printed circuit board provided in an embodiment of the present invention; Fig.13 The sixth structural diagram of the printed circuit board provided by the embodiment of the present invention; Fig.11 As shown, the silk screen line 112 on the right is composed of various dots, so the silk screen line 112 cannot show its original dot-dash line type. Therefore, the silk screen line 112 on the right is an invalid silk screen line. Fig.12 As shown, the dot-dash type silk screen line 123 lacks one side, that is, there is no dot-dash type silk screen line 123 on the right side, so it cannot be used to detect the offset of the welding part relative to the silk screen line 123. Fig.13 As shown, each type of silk screen line retains four target lines, and the four target lines are located on each side of the substrate. Therefore, a second coordinate corresponding to each silk screen line can be obtained in different directions, and then the offset of the welding position of the welding part on the printed circuit board can be calculated.
[0093] From the above, it can be seen that the target line can be understood as at least two continuous minimum components included in the silk screen line. For example, taking the silk screen line as a dotted line, any two continuous line segments included in the dotted line are a target line, wherein any one line segment in the dotted line is the minimum component of the silk screen line.
[0094] Exemplarily, when calculating the offset distance between each side of the welded part and the corresponding side of the silk screen line, the distance between each side of each silk screen line and the geometric center of the package can be obtained based on the four target lines in each type of silk screen line, and based on the distance between each side of the silk screen line and the geometric center of the package, the offset distance between each side of the welded part and the corresponding side of the silk screen line is calculated.
[0095] Below Fig.14 Taking the silk screen line 142 in FIG. 1 as an example, the calculation process of the offset distance between the left side of the weldment A and the left side of the silk screen line is described in detail. The calculation process of the offset distance of other sides is similar, and will not be repeated here.
[0096] Fig.14 The seventh structural diagram of the printed circuit board provided by the embodiment of the present invention is as follows: Fig.14 As shown, P represents the geometric center of the package, 141 represents the substrate, 142 represents the dotted line type silk screen line, 143 represents the dotted line type silk screen line, wherein the geometric center P of the package coincides with the geometric center of the welding part A. Fig.14 As shown, the screen printing line 142 is composed of four target line segments respectively arranged at relative positions of the sides of the substrate 141. Exemplarily, each target line is composed of two continuous line segments.
[0097] like Fig.14As shown, assuming that the geometric center P of the package is the coordinate origin (0, 0), then at this time, the distance XA1 between the left side of the silk screen line 142 and the geometric center P of the package can be obtained by calculating the absolute value |a| of the horizontal coordinate value a in the coordinates (a, b) of any point on the outer edge of the left target line. Exemplarily, when all sides of the silk screen line 142 are not blocked by the welding member A, the coordinates of any point on the outer edge of the silk screen line 142 can be selected to obtain the distance between the left side of the silk screen line 142 and the geometric center P of the package, or the coordinates of any point in the silk screen line 142 or any point on the inner edge can be selected to obtain the distance between the left side of the silk screen line 142 and the geometric center P of the package. When at least one side of the silk screen line 142 is blocked by the welding member A, the coordinates of any point on the outer edge of the silk screen line 142 can be selected to obtain the distance between the left side of the silk screen line 142 and the geometric center P of the package. Further, after obtaining the distance between the left side of the silk screen line 142 and the geometric center P of the package, the offset distance between the left side of the welder A and the left side of the silk screen line can be calculated based on the first coordinate corresponding to the welder A, wherein the first coordinate is on the left side of the welder A. For example, taking the coordinate (c, d) of any point on the left side of the welder A as an example, wherein the absolute value |c| of the coordinate value c is the distance XA2 between the left side of the welder A and the geometric center of the welder A. Thus, the offset distance XA1-XA2 between the left side of the welder A and the left side of the silk screen line 142 can be expressed by subtracting the distance XA1 between the left side of the silk screen line 142 and the geometric center P of the package and the distance XA2 between the left side of the welder A and the geometric center of the welder A.
[0098] like Fig.14 As shown, the offset distances between the other side edges of the welding part A and the corresponding side edges of the silk screen line 142 can be obtained in the same manner, namely, the offset distance XA3-XA4 between the right side edge of the welding part A and the right side edge of the silk screen line 142, the offset distance YA1-YA2 between the upper side edge of the welding part A and the upper side edge of the silk screen line 142, and the offset distance YA3-YA4 between the lower side edge of the welding part A and the lower side edge of the silk screen line 142.
[0099] In this embodiment, each type of silk screen line includes at least four target lines, wherein at least four target lines are respectively arranged at positions relative to the respective side edges of the substrate. In this way, when detecting whether the welding position of the welding component on the printed circuit board is offset, for each target line segment, the coordinates of any point on the target line segment are obtained, thereby obtaining a more accurate distance between the side edges of the silk screen line and the geometric center of the package, and then based on the first coordinate corresponding to the welding component, the offset distance between the side edges of the welding component and the corresponding side edge of the silk screen line with higher accuracy can be calculated, thereby improving the accuracy of the offset amount of the welding position of the welding component on the printed circuit board, and then improving the accuracy of detecting whether the welding position of the welding component on the printed circuit board is offset.
[0100] Furthermore, the type of the silk-screen line in the above embodiments can be characterized by at least one of the following: shape, color and size.
[0101] Specifically, the type of silk screen line can be represented by different shapes. Fig.15 The eighth structural diagram of the printed circuit board provided by the embodiment of the present invention is as follows Fig.15 As shown, the silk screen line 151 is a broken line, and the silk screen line 152 is a straight line. For example, the shape, color and size can also be combined to represent different types of silk screen lines, and this application does not make any specific limitation on this.
[0102] In this embodiment, by using at least one of shape, color and size to characterize the type of silk screen line, each type of silk screen line can be made easier to identify, thereby improving the accuracy of detecting whether the welding position of the welding part on the printed circuit board is offset while determining a more accurate silk screen line.
[0103] The device welding detection method provided by the embodiment of the present invention is described below. The device welding detection method described below and the printed circuit board described above can be referred to each other.
[0104] Fig.16 A schematic diagram of a device welding detection method provided in an embodiment of the present invention is applied to a printed circuit board described in any of the above embodiments, such as Fig.16 As shown, the method includes:
[0105] Step 1610: Acquire a target image.
[0106] The target image includes a printed circuit board with welding parts.
[0107] Specifically, the target image can be acquired by shooting with a camera after the welded component has been completely welded to the printed circuit board, wherein the target image includes the complete welded component.
[0108] Step 1620: Determine at least two first coordinates corresponding to the weldment in the target image.
[0109] The first coordinate is used to represent the position of the weldment in the target image.
[0110] Specifically, the target image can be analyzed to obtain the contour lines of the sides of the welded component in the target image, and the first coordinates can be obtained based on the coordinates of any point on the contour lines of the sides. For example, taking the geometric center coordinates of the package as the origin (0, 0) as an example, where the geometric center of the package coincides with the geometric center of the welded component, the absolute value of the coordinate value in the first coordinate can represent the distance between the sides of the welded component and the geometric center of the package. The specific process can be referred to the aforementioned embodiment, which will not be repeated here.
[0111] Exemplarily, when the first coordinates are vertex coordinates on the contour line of the welded part in the target image, only two first coordinates can be obtained; when the first coordinates are non-vertex coordinates on the contour line of the welded part in the target image or the coordinates of any point within the contour line, four first coordinates need to be obtained.
[0112] Step 1630: Determine at least two second coordinates corresponding to the silk screen lines of the target type in the target image.
[0113] The target type of silk screen line is a silk screen line that is not covered by welding parts on all sides of the substrate; and the second coordinate is used to characterize the position of the target type of silk screen line in the target image.
[0114] Specifically, when determining at least two second coordinates corresponding to the silk screen line of the target type in the target image, the second coordinates corresponding to the silk screen line of the target type can be obtained by randomly selecting coordinate points. For example, the coordinates of any point on each side of the silk screen line of the target type can be selected as the second coordinates. In addition, the second coordinates corresponding to the silk screen line of the target type can also be obtained by specifying the selection of coordinate points. For example, the coordinates of each vertex of the silk screen line of the target type can be selected as the second coordinates.
[0115] Exemplarily, when the second coordinates are vertex coordinates on the silk screen line of the target type in the target image, only two second coordinates can be obtained; when the second coordinates are non-vertex coordinates on the silk screen line of the target type in the target image, four second coordinates need to be obtained.
[0116] Step 1640: Based on each first coordinate and each second coordinate, determine whether the welding position of the welding component on the printed circuit board is offset.
[0117] The following description will be made by taking as an example the first coordinates (a, b) of the left side of the weldment A and the second coordinates (c, d) of the left side of the screen printing line 142 of the target type.
[0118] Continue to refer to Fig.14 , when the coordinates of the geometric center P of the package are the origin (0, 0), the absolute value |a| in the first coordinate (a, b) can represent the distance XA1 between the left side of the welding part A and the geometric center of the welding part A, and the absolute value |c| in the second coordinate (c, d) can represent the distance XA2 between the left side of the silk screen line 142 and the geometric center P of the package. The absolute value of the difference between XA1 and XA2 is the offset distance XA1-XA2 between the left side of the welding part A and the left side of the silk screen line.
[0119] Furthermore, after obtaining the offset distance between each side of the welding part A and the corresponding side of the silk screen line, the horizontal offset and vertical offset of the welding position of the welding part A on the printed circuit board can be calculated respectively by the above formula (1) and formula (2), and then the horizontal offset and vertical offset are compared with the corresponding offset threshold value to determine whether the welding position of the welding part A on the printed circuit board is offset.
[0120] The device welding detection method provided by the embodiment of the present invention can be applied to the printed circuit board described in any of the above embodiments, wherein the printed circuit board includes a substrate and at least two types of silk screen lines arranged on the substrate; wherein the type of silk screen line corresponds to the identification of the welding part, and the function of each identified welding part is the same, so that when detecting whether the welding position of the welding part on the printed circuit board is offset, by acquiring a target image, the target image includes a printed circuit board with welding parts, and determining at least two first coordinates corresponding to the welding parts in the target image, and by determining at least two second coordinates corresponding to the silk screen line of the target type in the target image, the silk screen line of the target type is a silk screen line that is not covered by the welding parts on all sides of the substrate; the absolute value of the horizontal coordinate or the absolute value of the vertical coordinate in the first coordinate can represent the distance between each side edge of the welding part and the geometric center of the welding part, and the absolute value of the horizontal coordinate or the absolute value of the vertical coordinate in the second coordinate can represent the distance between each side edge of the silk screen line and the geometric center of the package. Then, the horizontal offset and vertical offset of the welding position of the welding component on the printed circuit board can be calculated based on each first coordinate and each second coordinate by difference, and compared with the corresponding offset threshold, so as to determine whether the welding position of the welding component on the printed circuit board is offset. Compared with the prior art, the device welding detection method provided in the embodiment of the present invention can realize the detection of the welding position of any welding component with the same function but different sizes on the printed circuit board.
[0121] Further, based on the above embodiments, when determining at least two second coordinates corresponding to the silk screen lines of the target type in the target image, the determination can be performed in the following manner: determine all silk screen lines that are not covered in the target image; group all silk screen lines based on the type of the silk screen lines to obtain at least one group; determine at least one target group of silk screen lines including all sides of the substrate in at least one group; each silk screen line in the target group is a silk screen line of the target type; and for each target group, determine at least two second coordinates corresponding to the silk screen lines in the target group.
[0122] Fig.17 The ninth structural schematic diagram of the printed circuit board provided for the embodiment of the present invention, wherein 171 represents a substrate; 172 represents a welded part that has been welded; 173 represents a dotted line type silk screen line; 174 represents a dashed line type silk screen line; 175 represents a long solid line type silk screen line; 176 represents a dotted line type silk screen line.
[0123] like Fig.17 As shown, the silk screen line 173 on the lower side is covered by the welding part 171, which means that the silk screen line 173 on the lower side is not an uncovered silk screen line, and the silk screen lines 174, 175 and 176 are not covered by the welding part 171, so all the silk screen lines 174, 175 and 176 are uncovered silk screen lines. Therefore, all the uncovered silk screen lines in the target image can be determined, and all the uncovered silk screen lines can be grouped based on the type of each silk screen line, that is, the silk screen lines 173, 174, 175 and 176 are each a group.
[0124] Furthermore, by determining whether the silk screen lines in each group include the silk screen lines on all sides of the substrate, the target group in each group where the silk screen lines are not covered by the welding parts can be determined. For example, the silk screen line 173 on the lower side is covered by the welding part 171, which means that the group corresponding to the silk screen line 173 does not include the silk screen lines corresponding to all sides. Therefore, the group corresponding to the silk screen line 173 is not the target group, while the group corresponding to the silk screen line 174, the group corresponding to the silk screen line 175, and the group corresponding to the silk screen line 176 are all target groups. Thus, for each target group, a second coordinate on each side of the silk screen line in each target group can be determined. The method for determining the second coordinate is the same as that for the target group. Fig.16 The same is true in the illustrated embodiment and will not be described again here.
[0125] In this embodiment, by determining all the silk screen lines that are not covered in the target image and grouping all the silk screen lines based on the type of the silk screen lines, at least one group is obtained, wherein each group corresponds to a type of silk screen line. In this way, for each group, at least one target group of silk screen lines including all sides of the substrate can be determined, and each silk screen line in the target group is a silk screen line of the target type, and the silk screen lines of the target type are silk screen lines that are not covered by welding parts on all sides of the substrate. In this way, the silk screen lines covered by welding parts can be eliminated, thereby determining a target group that is not covered by welding parts with higher accuracy, so that for each target group, a more accurate second coordinate corresponding to the silk screen lines in the target group can be determined.
[0126] Exemplarily, based on the above-mentioned embodiments, when determining at least two second coordinates corresponding to the silk screen line of the target type in the target image, the type of the silk screen line can be first determined based on the correspondence between the type of the welding part and the type of the silk screen line; then, based on the type of the silk screen line, a more accurate target group can be determined, thereby determining the second coordinate corresponding to the silk screen line in the target group with higher accuracy for each target group.
[0127] Further, in Fig.16 On the basis of the illustrated embodiment, when determining whether the welding position of the welding part on the printed circuit board is offset based on each first coordinate and each second coordinate, the determination can be made in the following manner: starting from the first target group, based on each first coordinate and at least two second coordinates corresponding to the silk screen line in the first target group, determine the target value; when it is determined that the target value is greater than the preset value, based on each first coordinate and at least two second coordinates corresponding to the silk screen line in the second target group, determine a new target value, and repeat the above steps until the new target value is less than or equal to the preset value, or until all target groups are traversed. The preset value is also called the offset threshold.
[0128] Continue with Fig.17 For example, Fig.17 As shown, the printed circuit board includes three target groups, namely, a group corresponding to silk screen line 174, a group corresponding to silk screen line 175, and a group corresponding to silk screen line 176. The order of the target groups can be arranged based on the distance between each target group and the welding part, or can be arranged based on the type of silk screen line in the target group, which is not specifically limited in this application.
[0129] The following example takes sorting each target group based on the distance between the target group and the weldment as an example. Fig.17 As shown, the group corresponding to the silk screen line 174 is the first target group, the group corresponding to the silk screen line 175 is the second target group, and the group corresponding to the silk screen line 176 is the third target group.
[0130] like Fig.17As shown, after obtaining the second coordinates corresponding to the above-mentioned silk-screen lines, the offset of the welding position of the welding part on the printed circuit board, i.e., the target value, can be calculated based on the second coordinates corresponding to the silk-screen line 174 and the first coordinates corresponding to the welding part. If it is determined that the target value is greater than the preset value, it is indicated that the offset determined by taking the silk-screen line 174 as the reference line is unqualified. Further, based on the second coordinates corresponding to the silk-screen line 175 and the first coordinates corresponding to the welding part, the new offset of the welding position of the welding part on the printed circuit board, i.e., the new target value, is calculated, and the above-mentioned judgment steps are repeated. Wherein, when the new target value is less than or equal to the preset value, it is indicated that the welding position of the welding part on the printed circuit board has not been offset. On the contrary, it is necessary to calculate another new target value of the welding position of the welding component on the printed circuit board based on the second coordinate corresponding to the silk screen line 176 and the first coordinates corresponding to the welding component, and repeat the above judgment steps again. At this time, if the new target value is still greater than the preset value, it means that the welding position of the welding component on the printed circuit board has shifted, and there may be a cold solder joint, which requires re-soldering or power-on inspection. Otherwise, no shift has occurred.
[0131] In this embodiment, by traversing from the first target group, a target value is determined based on each first coordinate and at least two second coordinates corresponding to the silk screen line in the first target group. The target value can represent the offset of the welding position of the welding component on the printed circuit board. Therefore, when the determined target value is greater than a preset value, the preset value represents the offset threshold of the welding position of the welding component on the printed circuit board. A new target value can be determined based on each first coordinate and at least two second coordinates corresponding to the silk screen line in the second target group, and the above steps are repeated until the new target value is less than or equal to the preset value, or until all target groups are traversed, that is, when the determined offsets of the welding position of the welding component on the printed circuit board are less than the offset threshold, it is judged that the welding position of the welding component on the printed circuit board has not shifted, otherwise, it is judged that the welding position of the welding component on the printed circuit board has shifted, so that it can be accurately determined whether the welding position of the welding component on the printed circuit board has shifted.
[0132] The device welding detection apparatus provided by the present invention is described below. The device welding detection apparatus described below and the device welding detection method described above can be referred to each other.
[0133] Fig.18 A schematic diagram of the structure of a device welding detection device provided by an embodiment of the present invention is shown in FIG. Fig.18 As shown, the device comprises:
[0134] The acquisition module 1810 is used to acquire a target image; the target image includes a printed circuit board with welding parts;
[0135] A determination module 1820, configured to determine at least two first coordinates corresponding to the weldment in the target image;
[0136] The determination module 1820 is further used to determine at least two second coordinates corresponding to the silk screen line of the target type in the target image; the silk screen line of the target type is a silk screen line that is not covered by the welding parts on all sides of the substrate;
[0137] The determination module 1820 is further used to determine whether the welding position of the welding component on the printed circuit board is offset based on each first coordinate and each second coordinate.
[0138] The device welding detection device provided by the embodiment of the present invention can be applied to the printed circuit board described in any of the above embodiments, and the printed circuit board includes a substrate and at least two types of silk screen lines arranged on the substrate; wherein the type of the silk screen line corresponds to the identification of the welding part, and the function of the welding parts of each identification is the same, so that when detecting whether the welding position of the welding part on the printed circuit board is offset, the target image is acquired by the acquisition module, and the target image includes a printed circuit board with welding parts, and the at least two first coordinates corresponding to the welding parts in the target image are determined by the determination module, and at least two second coordinates corresponding to the silk screen line of the target type in the target image are determined, and the silk screen line of the target type is a silk screen line that is not covered by the welding parts on all sides of the substrate; wherein the absolute value of the horizontal coordinate or the absolute value of the vertical coordinate in the first coordinate can represent the distance between each side edge of the welding part and the geometric center of the welding part, and the absolute value of the horizontal coordinate or the absolute value of the vertical coordinate in the second coordinate can represent the distance between each side edge of the silk screen line and the geometric center of the package. Then, the determination module can calculate the horizontal offset and vertical offset of the welding position of the welding part on the printed circuit board based on the difference between each first coordinate and each second coordinate, and compare it with the corresponding offset threshold, so as to determine whether the welding position of the welding part on the printed circuit board is offset. Compared with the prior art, the device welding detection method provided in the embodiment of the present invention can realize the detection of the welding position of any welding part with the same function but different sizes on the printed circuit board.
[0139] Optionally, the determination module 1820 is specifically configured to:
[0140] Determine all silkscreen lines that are not covered in the target image;
[0141] Grouping all silk screen lines based on the type of silk screen lines to obtain at least one group;
[0142] Determine at least one target group of screen printing lines including all sides of the substrate in at least one group; each screen printing line in the target group is a screen printing line of a target type;
[0143] For each target group, at least two second coordinates corresponding to the silk-screen lines in the target group are determined.
[0144] Optionally, the determination module 1820 is specifically configured to:
[0145] Traversing from the first target group, determining a target value based on each first coordinate and at least two second coordinates corresponding to the screen printing line in the first target group;
[0146] When it is determined that the target value is greater than the preset value, a new target value is determined based on each first coordinate and at least two second coordinates corresponding to the silk screen line in the second target group, and the above steps are repeated until the new target value is less than or equal to the preset value, or until all target groups are traversed.
[0147] Optionally, the first coordinate is used to represent the position of the welded part in the target image; and the second coordinate is used to represent the position of the silk screen line of the target type in the target image.
[0148] The device welding detection apparatus of this embodiment can be used to execute the method of any of the aforementioned device welding detection method embodiments. Its specific implementation process and technical effects are similar to those in the aforementioned device welding detection method embodiments. For details, please refer to the detailed description in the aforementioned device welding detection method embodiments, which will not be repeated here.
[0149] Fig.19 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.19 As shown, the electronic device may include: a processor 1910, a communication interface 1920, a memory 1930 and a communication bus 1940, wherein the processor 1910, the communication interface 1920 and the memory 1930 communicate with each other through the communication bus 1940. The processor 1910 may call the logic instructions in the memory 1930 to execute the device welding detection method provided by each method, and the method includes:
[0150] Acquire a target image; the target image includes a printed circuit board provided with welding parts;
[0151] Determine at least two first coordinates corresponding to the weldment in the target image;
[0152] Determine at least two second coordinates corresponding to a silk-screen line of a target type in the target image; the silk-screen line of the target type is a silk-screen line that is not covered by the welding member on all sides of the substrate;
[0153] Based on each of the first coordinates and each of the second coordinates, it is determined whether a welding position of the welding component on the printed circuit board is offset.
[0154] In addition, the logic instructions in the above-mentioned memory 1930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0155] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the device welding detection method provided by the above methods, the method includes:
[0156] Acquire a target image; the target image includes a printed circuit board provided with welding parts;
[0157] Determine at least two first coordinates corresponding to the weldment in the target image;
[0158] Determine at least two second coordinates corresponding to a silk-screen line of a target type in the target image; the silk-screen line of the target type is a silk-screen line that is not covered by the welding member on all sides of the substrate;
[0159] Based on each of the first coordinates and each of the second coordinates, it is determined whether a welding position of the welding component on the printed circuit board is offset.
[0160] In another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the device welding detection method provided by the above methods is implemented, and the method includes:
[0161] Acquire a target image; the target image includes a printed circuit board provided with welding parts;
[0162] Determine at least two first coordinates corresponding to the weldment in the target image;
[0163] Determine at least two second coordinates corresponding to a silk-screen line of a target type in the target image; the silk-screen line of the target type is a silk-screen line that is not covered by the welding member on all sides of the substrate;
[0164] Based on each of the first coordinates and each of the second coordinates, it is determined whether a welding position of the welding component on the printed circuit board is offset.
[0165] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device welding detection method, characterized in that: Applied to a printed circuit board, the printed circuit board comprises a substrate and at least two types of silk screen lines arranged on the substrate; The type of the silk screen line corresponds to the identification of the welding part, and the welding parts with different identifications have the same function; the method includes: Acquire a target image; the target image includes a printed circuit board provided with welding parts; Determine at least two first coordinates corresponding to the weldment in the target image; Determine at least two second coordinates corresponding to a silk-screen line of a target type in the target image; the silk-screen line of the target type is a silk-screen line that is not covered by the welding member on all sides of the substrate; Based on each of the first coordinates and each of the second coordinates, it is determined whether a welding position of the welding component on the printed circuit board is offset.
2. The device welding detection method according to claim 1, characterized in that: The determining of at least two second coordinates corresponding to the silk screen line of the target type in the target image includes: Determine all silk screen lines that are not covered in the target image; Grouping all the silk-screen lines based on the type of the silk-screen lines to obtain at least one group; Determining at least one target group of silk screen lines including all sides of the substrate in the at least one group; each silk screen line in the target group is a silk screen line of a target type; For each of the target groups, at least two of the second coordinates corresponding to the silk-screen lines in the target group are determined.
3. The device welding detection method according to claim 2, characterized in that: The step of determining whether a welding position of the welding component on the printed circuit board is offset based on each of the first coordinates and each of the second coordinates includes: Traversing from the first target group, determining a target value based on each of the first coordinates and at least two of the second coordinates corresponding to the screen printing lines in the first target group; When it is determined that the target value is greater than the preset value, a new target value is determined based on each of the first coordinates and at least two of the second coordinates corresponding to the silk screen lines in the second target group, and the above steps are repeated until the new target value is less than or equal to the preset value, or until all the target groups are traversed.
4. The device welding detection method according to any one of claims 1 to 3, characterized in that: The first coordinate is used to represent the position of the welded part in the target image; the second coordinate is used to represent the position of the silk screen line of the target type in the target image.
5. A printed circuit board, characterized in that: It comprises a substrate and at least two types of silk screen lines arranged on the substrate; the types of the silk screen lines correspond to the identifications of the welding parts, and the functions of the welding parts with different identifications are the same.
6. The printed circuit board according to claim 5, characterized in that: For each type of screen printing line, the screen printing line includes at least four target lines, and the at least four target lines are respectively arranged at positions opposite to the side edges of the substrate.
7. The printed circuit board according to claim 5 or 6, characterized in that: The type of the silk-screen line is characterized by at least one of the following: shape, color and size.
8. A device welding detection device, characterized in that: The device comprises: An acquisition module, used for acquiring a target image; the target image includes a printed circuit board provided with welding parts; A determination module, used to determine at least two first coordinates corresponding to the weldment in the target image; The determination module is further used to determine at least two second coordinates corresponding to a silk screen line of a target type in the target image; the silk screen line of the target type is a silk screen line that is not covered by the welding part on all sides of the substrate; The determination module is further used to determine whether a welding position of the welding component on the printed circuit board is offset based on each of the first coordinates and each of the second coordinates.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the device welding detection method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device welding detection method according to any one of claims 1 to 4 is implemented.
