Circuit board detection method and system
By acquiring and splicing partial images of the circuit board, a panoramic image is formed and judged to meet the design requirements, which solves the problem of inaccurate overlapping parts in visual inspection, improves the accuracy of circuit board inspection and detailed shooting, and achieves a more efficient circuit Board quality inspection.
Patent Information
- Application Number
- CN202111193828.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-10-13
Smart Images

Figure CN113902718B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit board detection, and in particular to a circuit board detection method and system. Background Art
[0002] At present, circuit boards are mainly composed of pads, vias, mounting holes, wires, components, connectors, fillings, electrical boundaries and other parts; pads are metal holes used to solder component pins; vias include metal vias and non-metal vias, among which metal vias are used to connect the pins of components between layers; mounting holes are used to fix circuit boards; wires are used to connect the electrical network copper film of component pins; connectors are used to connect components between circuit boards; fillings are used for copper coating of ground network, which can effectively reduce impedance; electrical boundaries are used to determine the size of the circuit board, and all components on the circuit board cannot exceed this boundary.
[0003] Usually, the installation process of electronic components is to use electronic circuit surface assembly technology SMT (Surface Mount Technology) for processing. It is a circuit assembly technology that mounts pinless or short-lead surface assembly components on the surface of a circuit board or other substrate, and then solders and assembles them through methods such as reflow soldering or dip soldering. Different electronic components are installed and processed using different patch processing techniques; after different electronic components are mounted on the circuit board, in order to ensure the quality of the circuit board, the position of the components on the circuit board needs to be detected to detect whether the solder feet of the components are in contact with the pads of the circuit board. Visual inspection is usually used to inspect the circuit board. The inspection process is to take a picture of the circuit board and then use a computer to identify the photographed picture.
[0004] With respect to the above-mentioned related technologies, the inventors believe that the following defects exist: in the process of visual inspection, multiple cameras are used to capture pictures of different parts. In the process of visual inspection and recognition of different pictures, it is easy to cause inaccurate detection of partially overlapping positions. Summary of the invention
[0005] In order to improve the problem of inaccurate detection of overlapping parts during visual inspection of circuit boards, the present application provides a circuit board inspection method and system.
[0006] The present application provides a circuit board detection method, comprising:
[0007] Acquire multiple partial images of the circuit board;
[0008] Stitching multiple local images into a panoramic image;
[0009] Determining whether the panoramic image meets the design requirements;
[0010] If yes, obtaining a detection result based on the panoramic image;
[0011] If it does not meet the requirements, the default test result will be unqualified.
[0012] By adopting the above technical solution, whether the overlapping part in the panoramic image meets the design requirements is determined by judging whether the panoramic image meets the design requirements, thereby enabling the overlapping part in the panoramic image to be detected, thereby increasing the accuracy of the overlapping part detection. After the overlapping position detection is completed, the circuit board is inspected through the panoramic image to obtain the circuit board detection result.
[0013] Optionally, acquiring a plurality of partial images of the circuit board includes:
[0014] Divide the circuit board into multiple inspection areas according to requirements;
[0015] Photographing multiple detection areas respectively to obtain multiple area images;
[0016] Processing all regional images to obtain corresponding processed images;
[0017] The plurality of processed images are used as a plurality of partial images.
[0018] By adopting the above technical solution, the entire circuit board is divided into detection areas, which makes it easier to shoot multiple different parts of the circuit board. When shooting different parts of the circuit board, the shooting details are increased and the image distortion caused by shooting with a single camera is reduced.
[0019] Optionally, the processing of all regional images to obtain corresponding processed images includes:
[0020] De-noise all regional images;
[0021] The image brightness of all regional images after denoising is unified to obtain the corresponding processed image.
[0022] By adopting the above technical solution, all regional images are denoised, the influence of noise on the regional images during the digitization process is reduced, and the image brightness of all regional images after denoising is unified, making it easier to splice the regional images.
[0023] Optionally, before photographing the plurality of detection areas respectively and acquiring the plurality of area images, the method further includes:
[0024] Acquiring electronic component information of the circuit board;
[0025] Obtaining the position of each electronic component on the circuit board according to the electronic component information;
[0026] The electronic components at the junction of adjacent detection areas are determined as target electronic components.
[0027] By adopting the above technical solution, the position of the electronic components on the circuit board is obtained. Since the positions of the electronic components on different circuit boards are different and the shapes of different electronic components are different, the electronic components can be used as a medium for splicing.
[0028] Optionally, stitching the multiple local images into a panoramic image includes:
[0029] Determine adjacent detection areas corresponding to adjacent local images;
[0030] The target electronic components corresponding to the adjacent detection areas are taken as coincidence features;
[0031] Based on the overlapping features, the corresponding adjacent detection areas are spliced to obtain a panoramic image.
[0032] By adopting the above technical solution, the target electronic components corresponding to adjacent detection areas are used as overlap features. Since different electronic components have different functions at different positions and different electronic components have different shapes, the electronic components are used as overlap features.
[0033] Optionally, there are two or more target electronic components;
[0034] The method of taking target electronic components corresponding to adjacent detection areas as coincidence features includes:
[0035] Determine the shape specificity of each target electronic component on the circuit board, wherein the shape specificity is the number of times a device having a shape similar to that of the target electronic component appears on the circuit board, and the higher the number, the lower the shape specificity, and the lower the number, the higher the shape specificity;
[0036] A feature with high shape specificity is selected from a plurality of target electronic components as a coincidence feature.
[0037] By adopting the above technical solution, the measurement concept of shape specificity is used to calibrate the number of devices with shapes similar to those of the target electronic components that appear on the corresponding circuit board around the target resistor component, so that the properties of the electronic components themselves are used as coincidence features.
[0038] Optionally, the determining whether the panoramic image meets the design requirements includes:
[0039] In addition, the original circuit diagram of the circuit board is a first circuit diagram;
[0040] Recognize the panoramic image to generate a second circuit diagram;
[0041] comparing the first circuit diagram with the second circuit diagram to generate a similarity value;
[0042] By judging whether the similarity value is greater than a threshold, it is judged whether the panoramic image meets the design requirements.
[0043] By adopting the above technical solution, a similarity value is generated by comparing the first circuit diagram with the second circuit diagram, and whether the panoramic image meets the requirements is judged by comparing the similarity value with the similarity threshold, so as to judge whether the welding and installation of electronic components on the circuit board meet the requirements.
[0044] In summary, the present application includes at least one of the following beneficial technical effects:
[0045] 1. Whether the overlapping part in the panoramic image meets the design requirements is determined by judging whether the panoramic image meets the design requirements, so as to detect the overlapping part and increase the accuracy of the detection of the overlapping part. The entire circuit board is divided into different detection areas to facilitate the shooting of multiple different parts of the circuit board. When shooting different parts of the circuit board, the shooting details are increased and the image distortion caused by shooting with a single camera is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of one embodiment of a circuit board detection method of the present application;
[0047] Figure 2 It is a flowchart of step S1100 in one embodiment of a circuit board detection method of the present application;
[0048] Figure 3 It is a flowchart of step S2300 in one embodiment of a circuit board detection method of the present application;
[0049] Figure 4 This is a schematic diagram of the process before step S2200 in one embodiment of a circuit board detection method of the present application;
[0050] Figure 5 It is a flowchart of step S1200 in one embodiment of a circuit board detection method of the present application;
[0051] Figure 6 It is a flowchart of step S5200 in one embodiment of a circuit board detection method of the present application;
[0052] Figure 7 It is a flowchart of step S1300 in one embodiment of a circuit board detection method of the present application. DETAILED DESCRIPTION
[0053] The present application is further described in detail below in conjunction with the accompanying drawings.
[0054] Reference Figure 1 , a circuit board detection method, comprising the following steps:
[0055] S1100, acquiring multiple local images of a circuit board.
[0056] Among them, since the distribution of electronic components on the circuit board is relatively complex and the volume of some electronic components is small, directly photographing the entire circuit board can easily cause the captured image to be distorted, resulting in errors in the identification of the electronic components on the circuit board, and then causing errors in the identification of the circuit board. Therefore, local images of the circuit board are obtained separately to reduce the distortion.
[0057] S1200: stitch multiple local images into a panoramic image.
[0058] The multiple local images are spliced according to the corresponding splicing method, and the panoramic image after splicing contains all the electronic components on one side of the circuit board, so that the electronic components in the circuit board can be detected through the panoramic image.
[0059] S1300: Determine whether the panoramic image meets the design requirements.
[0060] Among them, the design requirements are that the circuit in the panoramic image is the same as the circuit corresponding to the original circuit board, no logical errors occur in the circuit connection process, and the pre-calculated effect can be met after power is turned on. When the electronic components are soldered on the circuit board, if the panoramic image does not meet the requirements, the panoramic image generated by stitching will be blurred, the electronic components will overlap, the wires on the surface of the circuit board will overlap, etc., which means that the stitching of the panoramic image has failed.
[0061] S1400: If the conditions are met, obtain a detection result based on the panoramic image.
[0062] Among them, when it meets the design requirements, the panoramic image needs to be inspected to detect whether there are any welding errors in the electronic components in the corresponding circuit or whether the marking symbols are incorrect. For example, when the soldering feet of electronic components are soldered on the pads of the circuit board, due to slight jitter, the soldering position of the soldering feet will shift, so it is necessary to detect whether the pins of the electronic components are soldered incorrectly and whether the soldering feet of the electronic components are in contact with the pads.
[0063] S1500, if not, the default test result is unqualified.
[0064] The implementation principle of a circuit board detection method in an embodiment of the present application is: obtaining multiple local images of the circuit board, stitching the multiple local images into a panoramic image, judging whether the panoramic image meets the design requirements, stitching the multiple local images into a corresponding panoramic image, and determining whether the overlapping part in the panoramic image meets the design requirements by judging whether the panoramic image meets the design requirements, thereby enabling the overlapping part to be detected, thereby increasing the accuracy of the overlapping part detection, and after the overlapping position detection is completed, the panoramic image is used to facilitate the detection of the circuit board to obtain the detection result.
[0065] Reference Figure 2 , obtaining multiple local images of the circuit board, including the following steps:
[0066] S2100, dividing the circuit board into multiple inspection areas according to requirements.
[0067] Among them, the demand corresponds to the requirements for circuit board area division. The circuit board is divided according to different accuracy requirements and the size of the circuit board. The number of areas divided for circuit boards with larger areas is different from that for circuit boards with smaller areas. The area division of circuit boards with more complex distribution of surface electronic components is different from that of circuit boards with simpler distribution of surface electronic components. Circuit boards with more complex distribution of surface electronic components need to show more details, so the number of divided areas is greater and the unit area is smaller. There are common areas between adjacent detection areas, and the common areas enable adjacent detection areas to be spliced.
[0068] S2200 , photograph multiple detection areas respectively to obtain multiple area images.
[0069] Among them, the acquired regional image is the image generated by shooting each inspection area of the circuit board. Each regional image corresponds to a uniquely designated inspection area. The same regional image will not completely cover two or more inspection areas. If the photographed area exceeds the overall area of the circuit board, it will be cropped to reduce the distortion caused by the edge area of the regional image and facilitate matching.
[0070] S2300: Process all regional images to obtain corresponding processed images.
[0071] Among them, the image produced by shooting has poor image quality due to external influences during the shooting process, or additional lighting interference, vibration interference and other factors during the shooting process, or the image data file produced by the shooting will produce data noise, so it is necessary to process the corresponding noise to obtain the corresponding processed image. The processing process includes grayscale processing of the image file, filtering noise reduction and edge detection.
[0072] S2400: Use the multiple processed images as multiple local images.
[0073] Among them, before using multiple processed images as local images respectively, it is necessary to determine whether the noise of the local images affects image stitching and image recognition. If it affects image stitching and image recognition, the processed images are further processed. If the impact on image stitching and image recognition is not affected or the impact is small, the multiple processed images can be used as multiple local images.
[0074] The implementation principle of obtaining multiple local images of a circuit board in the embodiment of the present application is as follows: corresponding to different types of circuit boards, the circuit boards are divided into different detection areas according to different needs, and multiple area images are obtained by photographing different detection areas. After photographing, the area images need to be processed until the noise in the image has little or no effect on image recognition, and the corresponding processed images are obtained, and the multiple processed images are used as local images.
[0075] Reference Figure 3 , all regional images are processed to obtain corresponding processed images. The processing of regional images is mainly to correct the regional images, including the following steps:
[0076] S3100, performing noise reduction on all area images.
[0077] Among them, the inevitable thermal motion of electrons in electronic devices will cause noise, and the greater the gain, the greater the noise, that is, the regional image will produce more noise and noise. In order to reduce the impact of noise on the regional image, all regional images need to be denoised.
[0078] S3200: unify the image brightness of all the regional images after noise reduction to obtain corresponding processed images.
[0079] Among them, due to the influence of ambient light or camera exposure parameters, the color transition of the overlapping areas of adjacent area images will be uneven when stitching, which is more likely to cause ghosting. At this time, it is necessary to unify the image brightness of all area images after denoising to reduce the impact of brightness difference on image stitching.
[0080] The implementation principle of the embodiment of the present application for processing all regional images to obtain corresponding processed images is: the processing of regional images mainly includes measures such as geometric correction of regional images and reducing distortion of regional images. In this embodiment, since different regions have been divided into different areas and the regional images have been processed by cropping, it is only necessary to process the regional images by noise reduction and brightness unification respectively to obtain corresponding processed images.
[0081] Reference Figure 4 , before taking pictures of multiple detection areas and obtaining images of multiple areas, the method also includes:
[0082] S4100. Obtain electronic component information of the circuit board.
[0083] Among them, the electronic component information of the circuit board includes the position, shape, model, placement direction and other information of the electronic components. For example, to obtain the information of a resistor, due to different resistance values, application positions, etc., the corresponding resistor shape, color, connection method and installation and welding position are also different, so the identified resistor information is different, and the electronic component information of the corresponding circuit board is obtained.
[0084] S4200. Obtain the position of each electronic component on the circuit board according to the electronic component information.
[0085] The information of each electronic component is displayed on the circuit diagram. When designing a circuit board corresponding to the circuit diagram, the position of each electronic component is displayed on the circuit board accordingly, and the electronic component is obtained according to the electronic component information.
[0086] S4300: Determine electronic components at the junction of adjacent detection areas as target electronic components.
[0087] There is a junction between adjacent detection areas, and electronic components are welded at the junction at the same time, and the electronic components corresponding to the junction are used as target electronic components.
[0088] The implementation principle of the embodiment of the present application for processing all area images to obtain corresponding processed images is: first, the information of electronic components is obtained, and then the position of each electronic component on the circuit board is obtained according to the electronic component information; after the circuit board is divided into different detection areas, the electronic components at the junction of adjacent detection areas are determined as target electronic components.
[0089] Reference Figure 5 , stitching multiple local images into a panoramic image, including the following steps:
[0090] S5100: Determine adjacent detection areas corresponding to adjacent local images.
[0091] Each partial image corresponds to a uniquely designated detection area. There are overlapping electronic components between adjacent detection areas, and similarly, there are overlapping features between adjacent partial images.
[0092] S5200: Target electronic components corresponding to adjacent detection areas are taken as overlap features.
[0093] Among them, after the target electronic components are photographed as digital image files, they can be used as overlapping features of the target electronic components corresponding to adjacent detection areas, wherein the position, shape and color of the overlapping features can all be used as overlapping elements.
[0094] S5300: splice corresponding adjacent detection areas based on overlapping features to obtain a panoramic image.
[0095] Among them, the corresponding adjacent detection areas are stitched and fused to obtain a panoramic image through the feature information such as the position, angle and color of the overlapping features and the better feature point sets of different parts of the overlapping features. The stitching process is to copy one of the images to the position of the corresponding feature points of the other image, and establish a projection mapping matrix of the two overlapping features based on the feature information and feature point set of the overlapping features, and realize accurate stitching of the panoramic image through the transformation mapping matrix.
[0096] The implementation principle of stitching multiple local images into a panoramic image in the embodiment of the present application is as follows: adjacent detection areas corresponding to adjacent local images are determined, each local image corresponds to a uniquely designated detection area, there are overlapping electronic components between adjacent detection areas, and similarly, there are overlapping features corresponding to adjacent local images; the target electronic components corresponding to the adjacent detection areas are used as overlapping features, and after the target electronic components are photographed as digital image files, they can be used as overlapping features of the target electronic components corresponding to the adjacent detection areas, wherein the position, shape and color of the overlapping features can all be used as overlapping elements; based on the overlapping features, the corresponding adjacent detection areas are stitched together to obtain a panoramic image, and the corresponding adjacent detection areas are stitched and fused through the feature information such as the position, angle and color of the overlapping features and the relatively excellent feature point set of different parts of the overlapping features to obtain a panoramic image, and the stitching process is to copy one of the images to the position of the corresponding feature point of the other image, establish a projection mapping matrix of the two overlapping features based on the feature information and feature point set of the overlapping features, and realize accurate stitching of the panoramic image through the transformation mapping matrix.
[0097] Reference Figure 6 There are two or more target electronic components. Through two or more target electronic components, the positioning of the detection area in the two-dimensional local image is realized, making the stitching of the panoramic image more accurate.
[0098] The target electronic components corresponding to the adjacent detection areas are taken as coincident features, including:
[0099] S6100, determining the shape specificity of each target electronic component on the circuit board, where the shape specificity is the number of times a device similar in shape to the target electronic component appears on the circuit board, and the higher the number, the lower the shape specificity, and the lower the number, the higher the shape specificity.
[0100] Among them, due to the large number of electronic components used in the same circuit board, the use of circuit components may be repeated during the circuit board design process, such as electronic components such as resistors and capacitors soldered in the circuit board. Therefore, when these electronic components are used as coincidence features, it is necessary to consider the influence of adjacent repeated electronic components on the selection of coincidence features. Therefore, the concept of shape specificity is introduced. Shape specificity is the number of devices with shapes similar to the target electronic components appearing per unit area on the circuit board. The higher the number, the lower the shape specificity, and vice versa. When an electronic component is selected as a coincidence feature, if there are a large number of electronic components similar to the electronic component around the electronic component, it will be easier to make a wrong selection during the selection of the coincidence feature, resulting in errors in image stitching and fusion.
[0101] S6200, selecting a shape with high specificity from multiple target electronic components as an overlap feature.
[0102] Among them, a resistor component with high shape specificity is selected as the overlap feature, that is, the number of identical or similar electronic components appearing around the target electronic component is small. Using the target electronic component as the overlap feature can reduce the errors generated in the image stitching and fusion process.
[0103] The implementation principle of the embodiment of the present application for taking the target electronic components corresponding to adjacent detection areas as the overlap features is as follows: determining the shape specificity of each target electronic component on the circuit board. The shape specificity is the number of times devices with a shape similar to that of the target electronic component appear on the circuit board. The higher the number, the lower the shape specificity, and the lower the number, the higher the shape specificity. Select the target electronic components with high shape specificity from multiple target electronic components as the overlap features.
[0104] Reference Figure 7 , to determine whether the panoramic image meets the design requirements, including:
[0105] S7100. The original circuit diagram of the circuit board is the first circuit diagram.
[0106] Among them, the original circuit diagram of the circuit board is the circuit diagram when the circuit board is designed, or the circuit diagram when the circuit board is welded and assembled. When the original circuit diagram of the circuit board is the first circuit diagram, the first circuit diagram contains the connection method between all electronic components and corresponding electronic components in the circuit board design process.
[0107] S7200: Recognize the panoramic image and generate a second circuit diagram.
[0108] The panoramic image is identified by identifying the connection mode between the electronic components in the panoramic image, and the models of the electronic components are identified to form a second circuit diagram through the connection mode between the components.
[0109] S7300 . Compare the first circuit diagram and the second circuit diagram to generate a similarity value.
[0110] Among them, the similarity value is the degree of similarity between the first circuit diagram and the second circuit diagram, which is expressed in the form of a numerical display. The similarity value is in percentage. The larger the similarity value is, the greater the similarity between the first circuit diagram and the second circuit diagram is. For example, when the similarity value is 100%, it means that the first circuit diagram and the second circuit diagram are exactly the same.
[0111] S7400: Determine whether the panoramic image meets the design requirements by determining whether the similarity value is greater than a threshold.
[0112] Among them, due to objective factors such as welding accuracy during the welding process of the circuit board, inevitable minor errors that do not affect the use of the circuit board will occur when soldering electronic components on the circuit board. For example, there are certain differences in the placement of electronic components at welding angles, but it does not affect the use of the electronic components. Therefore, a similarity threshold is set. Although all electronic components above the similarity threshold range may have slight differences in distribution from the circuit diagram, it does not affect the use of the electronic components. It is determined whether the similarity threshold is greater than the similarity threshold. If the similarity value is greater than the threshold, it is determined that the panoramic image meets the design requirements, and the circuit board corresponding to the panoramic image detected meets the design requirements. If the similarity value is less than the threshold, it is determined that the panoramic image does not meet the design requirements, and the circuit board corresponding to the panoramic image detected does not meet the design requirements.
[0113] The implementation principle of a circuit board detection system in an embodiment of the present application is: the original circuit diagram of the circuit board is taken as the first circuit diagram, the panoramic image is identified to generate a second circuit diagram, a similarity value is generated by comparing the first circuit diagram with the second circuit diagram, and whether the panoramic image meets the design requirements is judged by comparing the similarity value with a threshold.
[0114] A circuit board detection system comprises an image acquisition module, an image stitching module and a judgment module; the image acquisition module is used to acquire multiple local images of the circuit board; the image stitching module is used to stitch the multiple local images into a panoramic image; the judgment module is used to judge whether the panoramic image meets the design requirements, the image acquisition module is a high-definition camera used to shoot the circuit board, the high-definition camera transmits the shot image signal to a processing computer and stores it in the storage medium of the computer, the image stitching module and the judgment module are processors in the processing computer, and the processors are connected to the corresponding storage medium.
[0115] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A circuit board detection method, characterized in that: include: Acquire multiple partial images of the circuit board; Stitching multiple local images into a panoramic image; Determining whether the panoramic image meets the design requirements; If yes, obtaining a detection result based on the panoramic image; If it does not meet the requirements, the test result will be deemed unqualified by default; Wherein, acquiring a plurality of partial images of the circuit board comprises: Divide the circuit board into multiple inspection areas according to requirements; Photographing multiple detection areas respectively to obtain multiple area images; Processing all regional images to obtain corresponding processed images; using the plurality of processed images as a plurality of local images; Among them, the demand is to divide the circuit board according to different accuracy requirements and the size of the circuit board. The number of regions divided into a circuit board with a large area is different from that of a circuit board with a small area. The number of regions divided into a circuit board with complex surface electronic components is greater than that of a circuit board with simple surface electronic components. The unit area is smaller, and there is a common area between adjacent detection areas, and the adjacent detection areas can be spliced through the common area. Wherein, before photographing the plurality of detection areas respectively and obtaining the plurality of area images, the method further comprises: Acquiring electronic component information of the circuit board; Obtaining the position of each electronic component on the circuit board according to the electronic component information; Determine the electronic components at the junction of adjacent detection areas as target electronic components; The step of stitching the multiple local images into a panoramic image includes: Determine adjacent detection areas corresponding to adjacent local images; The target electronic components corresponding to the adjacent detection areas are taken as coincidence features; Based on the overlapped features, corresponding adjacent detection areas are stitched together to obtain a panoramic image; Wherein, the number of target electronic components is two or more; The method of taking target electronic components corresponding to adjacent detection areas as coincidence features includes: Determine the shape specificity of each target electronic component on the circuit board, wherein the shape specificity is the number of times a device having a shape similar to that of the target electronic component appears on the circuit board, and the higher the number, the lower the shape specificity, and the lower the number, the higher the shape specificity; A feature with high shape specificity is selected from a plurality of target electronic components as a coincidence feature.
2. A circuit board detection method according to claim 1, characterized in that: The processing of all the regional images to obtain corresponding processed images comprises: De-noise all regional images; The image brightness of all regional images after denoising is unified to obtain the corresponding processed image.
3. A circuit board detection method according to claim 1, characterized in that: The determining whether the panoramic image meets the design requirements includes: In addition, the original circuit diagram of the circuit board is a first circuit diagram; Recognize the panoramic image to generate a second circuit diagram; comparing the first circuit diagram with the second circuit diagram to generate a similarity value; By judging whether the similarity value is greater than a threshold, it is judged whether the panoramic image meets the design requirements.
4. A circuit board detection system, characterized in that: It includes an image acquisition module, an image stitching module and a judgment module; The image acquisition module is used to acquire multiple local images of the circuit board; The image stitching module is used to stitch multiple local images into a panoramic image; The judging module is used to judge whether the panoramic image meets the design requirements; If yes, obtaining a detection result based on the panoramic image; If it does not meet the requirements, the test result will be deemed unqualified by default; Wherein, acquiring a plurality of partial images of the circuit board comprises: Divide the circuit board into multiple inspection areas according to requirements; Photographing multiple detection areas respectively to obtain multiple area images; Processing all regional images to obtain corresponding processed images; using the plurality of processed images as a plurality of local images; Among them, the demand is to divide the circuit board according to different accuracy requirements and the size of the circuit board. The number of regions divided into a circuit board with a large area is different from that of a circuit board with a small area. The number of regions divided into a circuit board with complex surface electronic components is greater than that of a circuit board with simple surface electronic components. The unit area is smaller, and there is a common area between adjacent detection areas, and the adjacent detection areas can be spliced through the common area. Wherein, before photographing the plurality of detection areas respectively and obtaining the plurality of area images, the method further comprises: Acquiring electronic component information of the circuit board; Obtaining the position of each electronic component on the circuit board according to the electronic component information; Determine the electronic components at the junction of adjacent detection areas as target electronic components; The step of stitching the multiple local images into a panoramic image includes: Determine adjacent detection areas corresponding to adjacent local images; The target electronic components corresponding to the adjacent detection areas are taken as coincidence features; Based on the overlapped features, corresponding adjacent detection areas are stitched together to obtain a panoramic image; Wherein, the number of target electronic components is two or more; The method of taking target electronic components corresponding to adjacent detection areas as coincidence features includes: Determine the shape specificity of each target electronic component on the circuit board, wherein the shape specificity is the number of times a device having a shape similar to that of the target electronic component appears on the circuit board, and the higher the number, the lower the shape specificity, and the lower the number, the higher the shape specificity; A feature with high shape specificity is selected from a plurality of target electronic components as a coincidence feature.
