Circuit board circuit automatic identification and drawing method

By analyzing and recognizing circuit board images, the system automatically identifies circuit board components and their locations, and draws circuit diagrams. This solves the problem of difficult circuit board fault diagnosis, improves the efficiency of fault point identification, and reduces maintenance costs.

CN121961990APending Publication Date: 2026-05-01HUANENG JINGMEN THERMAL POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUANENG JINGMEN THERMAL POWER CO LTD
Filing Date
2025-12-01
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, circuit board fault diagnosis is difficult, and fault points cannot be quickly identified, resulting in wasted costs from replacing circuit boards.

Method used

By acquiring circuit board images, performing clarity analysis, identifying target key images, and combining image recognition models and scanners, the circuit board components and their locations are identified, and circuit diagrams are drawn using circuit diagram drawing software.

Benefits of technology

It enables intelligent identification and drawing of circuit boards, quickly locating fault points and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121961990A_ABST
    Figure CN121961990A_ABST
Patent Text Reader

Abstract

The invention provides a circuit board circuit automatic identification and drawing method, and relates to the technical field of circuits, and the method comprises the steps: obtaining and analyzing a first circuit board diagram of a current target circuit board, and obtaining a target key diagram; based on the target key graph, identifying the target circuit board to obtain a target identification result; and drawing a target circuit diagram of the current target circuit board according to the target identification result. A first circuit board diagram of a current target circuit board is obtained and analyzed to obtain a target key diagram; based on the target key graph, identifying a circuit and a device of the current target circuit board to obtain a target identification result; and drawing the target circuit diagram of the current target circuit board according to the target identification result, thereby effectively realizing intelligent identification and drawing of the circuit board, further helping to quickly find out a circuit fault point, and reducing the cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of circuit technology, and in particular to a method for automatic identification and drawing of circuit boards. Background Technology

[0002] In practice, many electrical equipment failures are caused by damaged circuit boards. However, due to the complexity of circuit boards and the relatively unfamiliar components, it is difficult to determine which component on the circuit board is causing the failure. Consequently, it is impossible to troubleshoot the circuit quickly, and the only option is to replace the circuit board, which wastes resources. Therefore, how to automatically identify and draw circuit boards to effectively help find the fault point has become one of the current research areas.

[0003] Therefore, the present invention provides a method for automatic identification and drawing of circuit boards. Summary of the Invention

[0004] This invention provides an automatic circuit board circuit identification and drawing method, which obtains a target key diagram by acquiring and analyzing a first circuit board diagram of the current target circuit board; based on the target key diagram, identifies the circuits and components of the current target circuit board to obtain a target identification result; and draws a target circuit diagram of the current target circuit board according to the target identification result, effectively realizing intelligent identification and drawing of circuit boards, thereby helping to quickly find circuit fault points and reduce costs.

[0005] This invention provides a method for automatic identification and drawing of circuit board circuits, including:

[0006] Step 1: Obtain and analyze the first circuit board diagram of the current target circuit board to obtain the target key diagram;

[0007] Step 2: Based on the target key map, identify the target circuit board to obtain the target identification result;

[0008] Step 3: Based on the target recognition results, draw the target circuit diagram of the current target circuit board.

[0009] Preferably, the first circuit board diagram of the current target circuit board is acquired and analyzed to obtain the target key diagram, including:

[0010] The target circuit board is photographed using a pre-defined acquisition tool to obtain the first circuit board diagram;

[0011] Using the target circuit board number as the filtering condition, the set circuit image library is traversed to filter the historical stored circuit board images of the current target circuit board;

[0012] If a historical storage circuit board diagram exists, the target key diagram is determined and output based on the clarity analysis of the first circuit board diagram and the historical storage circuit board diagram;

[0013] If no historical storage circuit board diagram exists, the first circuit board diagram will be output as the target key diagram.

[0014] Preferably, if a historical storage circuit board diagram exists, then based on a clarity analysis of the first circuit board diagram and the historical storage circuit board diagram, the target key diagram is determined and output, including:

[0015] If only a single historical storage circuit board diagram exists, then that historical storage circuit board diagram is designated as the first undetermined diagram.

[0016] If there are multiple historical storage circuit board diagrams, then obtain the historical storage time for each historical storage circuit board diagram;

[0017] Obtain all historical storage circuit diagrams that belong to a set time period and mark them as the first historical image;

[0018] If there is only a single first historical image, then the first historical image is regarded as the first undetermined image;

[0019] If there are multiple first historical images, the first historical image with the closest historical storage time to the current time is marked as the reference image, and the remaining first historical images are marked as analysis images;

[0020] When an analysis image is identical to the reference image, sharpness analysis is performed on both the analysis image and the reference image to obtain the corresponding sharpness coefficient.

[0021] The formula for calculating the sharpness factor is as follows:

[0022] In the formula, K1 represents the sharpness coefficient of the current image; q i γ is represented as the i-th sharpness index of the current image; i This represents the weight of the i-th sharpness index in calculating the image sharpness.

[0023] The image with the highest clarity coefficient among the analyzed and reference images is output as the first undetermined image.

[0024] When no image is identical to the reference image, the reference image is output as the first undetermined image.

[0025] A sharpness analysis is performed on the first undetermined image and the first circuit board diagram to obtain the corresponding sharpness coefficients;

[0026] Based on the clarity coefficient, a reliability analysis is performed on the first undetermined diagram and the first circuit board diagram to obtain the reliability coefficient;

[0027] When the reliability coefficient of the first undetermined diagram is greater than the reliability coefficient of the first circuit board diagram, the first undetermined diagram is output as the target key diagram.

[0028] When the reliability coefficient of the first undetermined diagram is not greater than the reliability coefficient of the first circuit board diagram, the first circuit board diagram is output as the target key diagram.

[0029] When the reliability coefficient of the first undetermined diagram is equal to the reliability coefficient of the first circuit board diagram, either the first undetermined diagram or the first circuit board diagram is arbitrarily selected as the target key diagram for output.

[0030] Preferably, the formula for calculating the first reliability coefficient is as follows:

[0031] In the formula, P1 represents the reliability coefficient of the current image; K1 represents the sharpness coefficient of the current image; α represents the weight of the influence of image sharpness on the reliability of the analyzed image; t0 represents the time interval between the storage time of the current image and the current moment; x j Let δ be the j-th quality index affecting the current image, where j = 1, 2, ..., m; m represents the total number of quality indices affecting the image; j Let represent the weight of the j-th quality index on the reliability of the analyzed image; β represent the weight of the image storage time on the reliability of the analyzed image; and ε represent the weight of the image quality on the reliability of the analyzed image.

[0032] Preferably, the sharpness metrics include gradient mean, gradient variance, and Laplacian variance.

[0033] Preferably, based on the target key map, the target circuit board is identified to obtain a target identification result, including:

[0034] The target key map is preprocessed to obtain a first image;

[0035] A color segmentation algorithm is used to distinguish different color regions in the first image to obtain the color features of the target area.

[0036] Contour extraction and edge detection are performed on the first image to obtain the shape features of the target area;

[0037] Extract the texture features of the first image, and use them together with the color and shape features as key image features. Input these features into a pre-trained image recognition model to obtain the first recognition result.

[0038] The target circuit board is scanned using a pre-set scanner to obtain a second identification result;

[0039] The first identification result is combined with the second identification result for analysis to determine the target identification result.

[0040] Preferably, the first identification result is combined with the second identification result for analysis to determine the target identification result, including:

[0041] Step 11: Compare the first recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result.

[0042] Step 12: If the two recognition results are different, the same recognition content in the two recognition results shall be regarded as useful recognition content;

[0043] The different identified content in the two identification results is marked as the analysis identification content, and the first content ratio of the analysis identification content is obtained;

[0044] Step 13: When the proportion of the first content exceeds the set content threshold, output a warning message to notify maintenance personnel to handle it manually and obtain the target recognition result;

[0045] Step 14: When the proportion of the first content is not greater than the set content threshold, take a picture of the current target circuit board again using the set acquisition tool to obtain the second circuit board diagram;

[0046] Step 15: After image preprocessing and feature extraction of the second circuit board diagram, the third recognition result is obtained using an image recognition model;

[0047] Step 16: Compare the third recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result.

[0048] If the proportion of the first content that is different and has different corresponding identification content is not greater than the set content threshold, repeat steps 12-16 until a consistent identification result is obtained as the target identification result output or the maximum number of comparisons is reached.

[0049] Step 17: If the two identification results are still different after the maximum number of comparisons is reached, a warning message will be output to notify maintenance personnel to manually process the data and obtain the target identification result.

[0050] Preferably, based on the target recognition result, drawing the target circuit diagram of the current target circuit board includes:

[0051] Determine the target storage format based on current application requirements;

[0052] Using circuit diagram drawing software, the target circuit diagram is drawn based on the target identification results and the target storage format.

[0053] Compared with the prior art, the beneficial effects of this application are as follows:

[0054] The target key diagram is obtained by acquiring and analyzing the first circuit board diagram of the current target circuit board; based on the target key diagram, the circuits and components of the current target circuit board are identified to obtain the target identification result; according to the target identification result, the target circuit diagram of the current target circuit board is drawn, which effectively realizes intelligent identification and drawing of circuit boards, thereby helping to quickly find circuit fault points and reduce costs.

[0055] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description and the accompanying drawings.

[0056] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0057] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0058] Figure 1 This is a flowchart of a method for automatic identification and drawing of circuit boards according to an embodiment of the present invention. Detailed Implementation

[0059] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0060] This invention provides a method for automatic identification and drawing of circuit board circuits, such as... Figure 1 As shown, it includes:

[0061] Step 1: Obtain and analyze the first circuit board diagram of the current target circuit board to obtain the target key diagram;

[0062] Step 2: Based on the target key map, identify the target circuit board to obtain the target identification result;

[0063] Step 3: Based on the target recognition results, draw the target circuit diagram of the current target circuit board.

[0064] In this embodiment, the target circuit board refers to the circuit board that needs to be automatically identified and drawn. The circuit board refers to the substrate used to support and connect electronic components. The first circuit board diagram refers to the image obtained by taking a picture of the current target circuit board using a set acquisition tool. The set acquisition tool refers to a high-definition camera. There are two ways to obtain the target key image. One way is to select the image with higher clarity as the target key image after performing a clarity analysis between the first circuit board diagram and the historical circuit board diagram when there is a historical circuit board diagram. The other way is to use the current first circuit board diagram as the target key image when there is no historical circuit board diagram.

[0065] In this embodiment, the target recognition result refers to the recognition content obtained by recognizing the target circuit board, including the components on the circuit board and their positions, such as resistors, capacitors, and chips, circuit connection relationships, and circuit board layout, such as the arrangement and distribution of components. Among them, the circuit connection relationship refers to the connection lines between various components and their routing. The target circuit diagram refers to the circuit diagram drawn using a set circuit diagram drawing software based on the target recognition result and the corresponding target storage format. The target storage format is determined according to the current storage requirements.

[0066] The beneficial effects of the above technical solution are as follows: by acquiring and analyzing the first circuit board diagram of the current target circuit board, a target key diagram is obtained; based on the target key diagram, the circuits and components of the current target circuit board are identified to obtain the target identification result; based on the target identification result, the target circuit diagram of the current target circuit board is drawn, which effectively realizes intelligent identification and drawing of circuit boards, thereby helping to quickly find circuit fault points and reduce costs.

[0067] This invention provides a method for automatic identification and drawing of circuit board diagrams, which involves acquiring and analyzing a first circuit board diagram of the current target circuit board to obtain a target key diagram, including:

[0068] The target circuit board is photographed using a pre-defined acquisition tool to obtain the first circuit board diagram;

[0069] Using the target circuit board number as the filtering condition, the set circuit image library is traversed to filter the historical stored circuit board images of the current target circuit board;

[0070] If a historical storage circuit board diagram exists, the target key diagram is determined and output based on the clarity analysis of the first circuit board diagram and the historical storage circuit board diagram;

[0071] If no historical storage circuit board diagram exists, the first circuit board diagram will be output as the target key diagram.

[0072] In this embodiment, the set acquisition tool refers to a high-definition camera; the first circuit board diagram refers to the current state image obtained by taking a picture of the current target circuit board using the set acquisition tool; the set circuit image library consists of the circuit board number and the corresponding historical circuit board diagrams taken by the camera; the historical stored circuit board diagrams refer to the historical circuit board diagrams of the current target circuit board selected by traversing the set circuit image library using the current target circuit board number as the filtering condition; there are two ways to obtain the target key image. One way is that when historical stored circuit board diagrams exist, the image with higher clarity is selected as the target key image after performing a clarity analysis between the first circuit board diagram and the historical stored circuit board diagrams; the other way is that when historical stored circuit board diagrams do not exist, the current first circuit board diagram is used as the target key image.

[0073] The beneficial effects of the above technical solution are: by using a set acquisition tool to take pictures of the current target circuit board, and combining the images with historical stored circuit board diagrams for clear image analysis to determine and output the target key image, it helps to improve the accuracy of subsequent circuit board identification.

[0074] This invention provides a method for automatic identification and drawing of circuit board diagrams. If historical circuit board diagrams exist, the method determines and outputs target key diagrams based on a clarity analysis of the first circuit board diagram and the historically stored circuit board diagrams, including:

[0075] If only a single historical storage circuit board diagram exists, then that historical storage circuit board diagram is designated as the first undetermined diagram.

[0076] If there are multiple historical storage circuit board diagrams, then obtain the historical storage time for each historical storage circuit board diagram;

[0077] Obtain all historical storage circuit diagrams that belong to a set time period and mark them as the first historical image;

[0078] If there is only a single first historical image, then the first historical image is regarded as the first undetermined image;

[0079] If there are multiple first historical images, the first historical image with the closest historical storage time to the current time is marked as the reference image, and the remaining first historical images are marked as analysis images;

[0080] When an analysis image is identical to the reference image, sharpness analysis is performed on both the analysis image and the reference image to obtain the corresponding sharpness coefficient.

[0081] The formula for calculating the sharpness factor is as follows:

[0082] In the formula, K1 represents the sharpness coefficient of the current image; q iγ is represented as the i-th sharpness index of the current image; i This represents the weight of the i-th sharpness index in calculating the image sharpness.

[0083] The image with the highest clarity coefficient among the analyzed and reference images is output as the first undetermined image.

[0084] When no image is identical to the reference image, the reference image is output as the first undetermined image.

[0085] A sharpness analysis is performed on the first undetermined image and the first circuit board diagram to obtain the corresponding sharpness coefficients;

[0086] Based on the clarity coefficient, a reliability analysis is performed on the first undetermined diagram and the first circuit board diagram to obtain the reliability coefficient;

[0087] When the reliability coefficient of the first undetermined diagram is greater than the reliability coefficient of the first circuit board diagram, the first undetermined diagram is output as the target key diagram.

[0088] When the reliability coefficient of the first undetermined diagram is not greater than the reliability coefficient of the first circuit board diagram, the first circuit board diagram is output as the target key diagram.

[0089] When the reliability coefficient of the first undetermined diagram is equal to the reliability coefficient of the first circuit board diagram, either the first undetermined diagram or the first circuit board diagram is arbitrarily selected as the target key diagram for output.

[0090] In this embodiment, the historical stored circuit board diagram refers to the historical circuit board diagram of the current target circuit board selected by traversing the set circuit image library using the number of the current target circuit board as the filtering condition; the set time period is preset; the reference image refers to the first historical image whose historical storage time is closest to the current time, wherein the first historical image refers to all historical stored circuit diagrams whose historical storage time belongs to the set time period; the analysis image refers to the remaining first historical images among multiple first historical images other than the reference image; the clarity coefficient is used to describe the clarity of the current image.

[0091] In this embodiment, for example, there are historical storage circuit board diagrams a1, a2, and a3. The historical storage time corresponding to historical storage circuit board diagrams a1 and a2 belongs to a set time period, while the historical storage time corresponding to historical storage circuit board diagram a3 does not belong to the set time period. In this case, historical storage circuit board diagrams a1 and a2 are marked as first historical images.

[0092] Since the historical storage time of the historical storage circuit board diagram a1, which is marked as the first historical image, is closer to the current time than that of the historical storage circuit board diagram a2, the historical storage circuit board diagram a1, which is marked as the first historical image, is now marked as the reference image, and the historical storage circuit board diagram a2, which is marked as the first historical image, is marked as the analysis image.

[0093] In this embodiment, the reliability coefficient is used to describe the reliability of the current image; the sharpness index includes gradient mean, gradient variance and Laplacian variance, which are determined by calculating the gradient of the image in the horizontal and vertical directions using the image gradient operator, calculating the gradient magnitude of each pixel, and then determining the index based on the gradient magnitude of the entire image. The image gradient operator refers to the Sobel operator.

[0094] The beneficial effects of the above technical solution are: by performing clarity analysis on the first circuit board diagram and the historical stored circuit board diagram, and outputting the image with a higher clarity coefficient as the target key image, it is ensured that the selected image can most realistically reflect the current state of the circuit board, which helps to improve the accuracy of subsequent circuit board identification.

[0095] This invention provides a method for automatic identification and drawing of circuit boards. The formula for calculating the first reliability coefficient is as follows:

[0096] In the formula, P1 represents the reliability coefficient of the current image; K1 represents the sharpness coefficient of the current image; α represents the weight of the influence of image sharpness on the reliability of the analyzed image; t0 represents the time interval between the storage time of the current image and the current moment; x j Let δ be the j-th quality index affecting the current image, where j = 1, 2, ..., m; m represents the total number of quality indices affecting the image; j Let represent the weight of the j-th quality index on the reliability of the analyzed image; β represent the weight of the image storage time on the reliability of the analyzed image; and ε represent the weight of the image quality on the reliability of the analyzed image.

[0097] In this embodiment, the weights of the influence of image clarity, image storage time, and image quality on the reliability of the analyzed image are obtained by solving a matrix constructed by pairwise comparison and relative importance scoring using the analytic hierarchy process. The quality indicators include camera resolution, image compression rate, and visual information fidelity. The visual information fidelity is obtained by using a natural image statistical model, an image distortion model, and a human visual system model.

[0098] The beneficial effects of the above technical solution are: by calculating the reliability coefficient, data can be provided to screen out the target key images, ensuring that the selected images can most realistically reflect the current state of the circuit board, thereby helping to improve the accuracy of subsequent circuit board identification.

[0099] This invention provides an automatic circuit board circuit identification and drawing method, which identifies the target circuit board based on the target key image to obtain the target identification result, including:

[0100] The target key map is preprocessed to obtain a first image;

[0101] A color segmentation algorithm is used to distinguish different color regions in the first image to obtain the color features of the target area.

[0102] Contour extraction and edge detection are performed on the first image to obtain the shape features of the target area;

[0103] Extract the texture features of the first image, and use them together with the color and shape features as key image features. Input these features into a pre-trained image recognition model to obtain the first recognition result.

[0104] The target circuit board is scanned using a pre-set scanner to obtain a second identification result;

[0105] The first identification result is combined with the second identification result for analysis to determine the target identification result.

[0106] In this embodiment, there are two ways to obtain the target key image. One way is to select the image with higher clarity as the target key image after performing a clarity analysis on the first circuit board image and the historical circuit board image when a historical circuit board image exists. The other way is to use the current first circuit board image as the target key image when a historical circuit board image does not exist. The first image is obtained by preprocessing the target key image, wherein the image preprocessing includes grayscale transformation and denoising processing and image enhancement.

[0107] In this embodiment, the color segmentation algorithm is used to distinguish different color regions in an image, thereby identifying the color information of the target part; the target part includes components, solder joints, and circuits, etc.; the image recognition model is a model obtained by training a neural network using a preset amount of circuit board image data as training data, used to identify the circuits and components of the circuit board diagram, etc.; shape features include perimeter, area, roundness, width, and height, etc.; texture features are extracted from the first image using a texture analysis algorithm, such as the gray-level co-occurrence matrix; the first recognition result refers to the result obtained by inputting the texture features, color features, and shape features extracted from the current first image as key image features into the image recognition model, such as components and circuit connection relationships; the second recognition result refers to the result obtained by scanning the current target circuit board using a set scanner, where the set scanner refers to a pre-set digitization processing device for scanning the circuit board; the target recognition result refers to the recognition result obtained by combining the first recognition result and the second recognition result, including the components on the circuit board and their positions, such as resistors, capacitors, and chips, circuit connection relationships, and circuit board layout, such as the arrangement and distribution of components, where the circuit connection relationship refers to the connection lines between various components and their routing.

[0108] The beneficial effects of the above technical solution are: by combining image preprocessing, multiple feature extraction, image recognition model and scanner recognition results, efficient and accurate identification of key parts of the target circuit board is achieved, providing more accurate and comprehensive information support for subsequent circuit board repair, testing or production.

[0109] This invention provides an automatic circuit board circuit identification and drawing method, which combines and analyzes the first identification result and the second identification result to determine the target identification result, including:

[0110] Step 11: Compare the first recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result.

[0111] Step 12: If the two recognition results are different, the same recognition content in the two recognition results shall be regarded as useful recognition content;

[0112] The different identified content in the two identification results is marked as the analysis identification content, and the first content ratio of the analysis identification content is obtained;

[0113] Step 13: When the proportion of the first content exceeds the set content threshold, output a warning message to notify maintenance personnel to handle it manually and obtain the target recognition result;

[0114] Step 14: When the proportion of the first content is not greater than the set content threshold, take a picture of the current target circuit board again using the set acquisition tool to obtain the second circuit board diagram;

[0115] Step 15: After image preprocessing and feature extraction of the second circuit board diagram, the third recognition result is obtained using an image recognition model;

[0116] Step 16: Compare the third recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result.

[0117] If the proportion of the first content that is different and has different corresponding identification content is not greater than the set content threshold, repeat steps 12-16 until a consistent identification result is obtained as the target identification result output or the maximum number of comparisons is reached.

[0118] Step 17: If the two identification results are still different after the maximum number of comparisons is reached, a warning message will be output to notify maintenance personnel to manually process the data and obtain the target identification result.

[0119] In this embodiment, useful identification content refers to the same identification content in the first identification result and the second identification result, such as components; analysis identification content refers to the different identification content in the first identification result and the second identification result; the first content ratio refers to the proportion of analysis identification content to the first identification content; the set content threshold is preset, generally 65%; manual processing refers to maintenance personnel manually modifying and drawing the analysis identification content according to the current target circuit board; the set acquisition tool refers to a high-definition camera; the second circuit board diagram refers to the image obtained by taking another picture of the current target circuit board using the set acquisition tool.

[0120] In this embodiment, the third recognition result refers to the result obtained by using an image recognition model to perform content recognition on the second circuit image; the maximum number of comparisons is predetermined.

[0121] The beneficial effects of the above technical solution are: by comparing and combining the acquired multiple recognition results to determine the target recognition result, the accuracy and reliability of circuit board diagram recognition can be effectively improved, and the processing efficiency can be optimized.

[0122] This invention provides an automatic circuit board circuit identification and drawing method, which, based on the target identification result, draws a target circuit diagram of the current target circuit board, including:

[0123] Determine the target storage format based on current application requirements;

[0124] Using circuit diagram drawing software, the target circuit diagram is drawn based on the target identification results and the target storage format.

[0125] In this embodiment, the current application requirement refers to the storage format of the circuit diagram drawn using the specified circuit diagram drawing software; the target storage format refers to the storage format of the circuit board diagram of the current target circuit board drawn using the specified circuit diagram drawing software, such as Parquet, ORCFile, TextFile, SequenceFile, etc.; the specified circuit diagram drawing software is a pre-determined software for drawing circuit diagrams that is compatible with the current target storage format, such as Eplan, AutoCAD Electrical, CADe_simu.cn, etc.; the target recognition result refers to the recognition content obtained by recognizing the target circuit board, including the components on the circuit board and their positions, such as resistors, capacitors, and chips, circuit connection relationships, and circuit board layout, such as the arrangement and distribution of components, where the circuit connection relationships refer to the connection lines between various components and their routing; the target circuit diagram refers to the circuit diagram of the current target circuit board diagram drawn using the specified circuit diagram drawing software.

[0126] The beneficial effects of the above technical solution are: by determining the target storage format according to the current application requirements and using the set circuit diagram drawing software to draw the target circuit diagram, the efficiency of circuit board drawing is improved, providing an effective basis for helping to quickly find circuit fault points and reduce costs.

[0127] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for automatic identification and drawing of circuit board circuits, characterized in that, include: Step 1: Obtain and analyze the first circuit board diagram of the current target circuit board to obtain the target key diagram; Step 2: Based on the target key map, identify the target circuit board to obtain the target identification result; Step 3: Based on the target recognition results, draw the target circuit diagram of the current target circuit board.

2. The method for automatic identification and drawing of circuit boards according to claim 1, characterized in that, Obtain and analyze the first circuit board diagram of the current target circuit board to obtain the target key diagram, including: The target circuit board is photographed using a pre-defined acquisition tool to obtain the first circuit board diagram; Using the target circuit board number as the filtering condition, the set circuit image library is traversed to filter the historical stored circuit board images of the current target circuit board; If a historical storage circuit board diagram exists, the target key diagram is determined and output based on the clarity analysis of the first circuit board diagram and the historical storage circuit board diagram; If no historical storage circuit board diagram exists, the first circuit board diagram will be output as the target key diagram.

3. The method for automatic identification and drawing of circuit boards according to claim 2, characterized in that, If a historical storage circuit board diagram exists, the target key diagram is determined and output based on the clarity analysis of the first circuit board diagram and the historical storage circuit board diagram, including: If only a single historical storage circuit board diagram exists, then that historical storage circuit board diagram is designated as the first undetermined diagram. If there are multiple historical storage circuit board diagrams, then obtain the historical storage time for each historical storage circuit board diagram; Obtain all historical storage circuit diagrams that belong to a set time period and mark them as the first historical image; If there is only a single first historical image, then the first historical image is regarded as the first undetermined image; If there are multiple first historical images, the first historical image with the closest historical storage time to the current time is marked as the reference image, and the remaining first historical images are marked as analysis images; When an analysis image is identical to the reference image, sharpness analysis is performed on both the analysis image and the reference image to obtain the corresponding sharpness coefficient. The formula for calculating the sharpness factor is as follows: In the formula, K1 represents the sharpness coefficient of the current image; q i γ is represented as the i-th sharpness index of the current image; i This represents the weight of the i-th sharpness index in calculating the image sharpness. The image with the highest clarity coefficient among the analyzed and reference images is output as the first undetermined image. When no image is identical to the reference image, the reference image is output as the first undetermined image. A sharpness analysis is performed on the first undetermined image and the first circuit board diagram to obtain the corresponding sharpness coefficients; Based on the clarity coefficient, a reliability analysis is performed on the first undetermined diagram and the first circuit board diagram to obtain the reliability coefficient; When the reliability coefficient of the first undetermined diagram is greater than the reliability coefficient of the first circuit board diagram, the first undetermined diagram is output as the target key diagram. When the reliability coefficient of the first undetermined diagram is not greater than the reliability coefficient of the first circuit board diagram, the first circuit board diagram is output as the target key diagram. When the reliability coefficient of the first undetermined diagram is equal to the reliability coefficient of the first circuit board diagram, either the first undetermined diagram or the first circuit board diagram is arbitrarily selected as the target key diagram for output.

4. The method for automatic identification and drawing of circuit boards according to claim 3, characterized in that, The formula for calculating the reliability coefficient is as follows: In the formula, P1 represents the reliability coefficient of the current image; K1 represents the sharpness coefficient of the current image; α represents the weight of the influence of image sharpness on the reliability of the analyzed image; t0 represents the time interval between the storage time of the current image and the current moment; x j Let δ be the j-th quality index affecting the current image, where j = 1, 2, ..., m; m represents the total number of quality indices affecting the image; j Let represent the weight of the j-th quality index on the reliability of the analyzed image; β represent the weight of the image storage time on the reliability of the analyzed image; and ε represent the weight of the image quality on the reliability of the analyzed image.

5. The method for automatic identification and drawing of circuit boards according to claim 3, characterized in that, The sharpness metrics include gradient mean, gradient variance, and Laplacian variance.

6. The method for automatic identification and drawing of circuit boards according to claim 1, characterized in that, Based on the target key map, the target circuit board is identified to obtain the target identification result, including: The target key map is preprocessed to obtain a first image; A color segmentation algorithm is used to distinguish different color regions in the first image to obtain the color features of the target area. Contour extraction and edge detection are performed on the first image to obtain the shape features of the target area; Extract the texture features of the first image, and use them together with the color and shape features as key image features. Input these features into a pre-trained image recognition model to obtain the first recognition result. The target circuit board is scanned using a pre-set scanner to obtain a second identification result; The first identification result is combined with the second identification result for analysis to determine the target identification result.

7. The method for automatic identification and drawing of circuit boards according to claim 6, characterized in that, The first identification result is combined with the second identification result for analysis to determine the target identification result, including: Step 11: Compare the first recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result. Step 12: If the two recognition results are different, the same recognition content in the two recognition results shall be regarded as useful recognition content; The different identified content in the two identification results is marked as the analysis identification content, and the first content ratio of the analysis identification content is obtained; Step 13: When the proportion of the first content exceeds the set content threshold, output a warning message to notify maintenance personnel to handle it manually and obtain the target recognition result; Step 14: When the proportion of the first content is not greater than the set content threshold, take a picture of the current target circuit board again using the set acquisition tool to obtain the second circuit board diagram; Step 15: After image preprocessing and feature extraction of the second circuit board diagram, the third recognition result is obtained using an image recognition model; Step 16: Compare the third recognition result with the second recognition result. If the two recognition results are completely consistent, output either recognition result as the target recognition result. If the proportion of the first content that is different and has different corresponding identification content is not greater than the set content threshold, repeat steps 12-16 until a consistent identification result is obtained as the target identification result output or the maximum number of comparisons is reached. Step 17: If the two identification results are still different after the maximum number of comparisons is reached, a warning message will be output to notify maintenance personnel to manually process the data and obtain the target identification result.

8. The method for automatic identification and drawing of circuit boards according to claim 1, characterized in that, Based on the target recognition results, draw the target circuit diagram of the current target circuit board, including: Determine the target storage format based on current application requirements; Using circuit diagram drawing software, the target circuit diagram is drawn based on the target identification results and the target storage format.