A comparison method for FPC drawings
By setting colors with different grayscale values in the CAD software and comparing the pixel differences of FPC drawings, the problem of cumbersome comparison of FPC drawings in the existing technology is solved, and pixel-level precision comparison results and efficiency improvements are achieved.
Patent Information
- Application Number
- CN202110251274.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-03-08
AI Technical Summary
In the FPC production process, the comparison method of FPC drawings in the existing technology is cumbersome and requires a lot of manpower to check whether there are missing or added lines.
In the CAD software, set the background colors of the comparison file and the target file to colors with different grayscale values, import them into canvases of the same size, compare the differences in grayscale values of all pixels one by one, use different colors to represent the differences, and Perform manual review.
It achieves pixel-level precision comparison results, and visually displays the differences between the comparison file and the target file through the output canvas, which improves comparison efficiency and can quickly discover differences in line patterns.
Smart Images

Figure CN112989730B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of FPC, and in particular to a comparison method of FPC drawings. Background Art
[0002] In the production process of FPC, since the production process includes the development and etching of copper clad boards, the front and back circuits of FPC need to be converted into film drawings during this process. In this conversion process, the drawings may have problems such as missing circuits. Therefore, it is necessary to compare whether the circuits of the film drawings are different from the original FPC circuit files. The commonly used comparison method is to import the LAYOUT file of FPC into the CAD software to form a target file, and superimpose the circuit pattern of the target file with the pattern in the converted film drawing file (comparison file) to confirm whether there are problems such as missing or added circuits. However, this method is cumbersome and requires more manpower for comparison and verification.
[0003] Therefore, the prior art has defects and needs to be improved. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for comparing FPC drawings.
[0005] The technical solution of the present invention is as follows: The present invention provides a comparison method of FPC drawings, comprising the following steps: Step 1: in CAD software, the background color of the comparison file and the target file is set to a first color and the line is set to a second color, and the grayscale values of the first color and the second color are different;
[0006] Step 2: Set the comparison canvas and target canvas of the same size according to the size of the content to be compared;
[0007] Step 3: Import the part of the comparison file that needs to be compared into the comparison canvas;
[0008] Step 4: Import the part of the target file that needs to be compared into the target canvas;
[0009] Step 5: sequentially comparing the grayscale value differences of all pixels in all rows and columns of the comparison canvas and the target canvas, and determining the magnitude relationship between the grayscale value of the pixel at the corresponding position of the comparison canvas and the grayscale value of the pixel at the corresponding position of the target canvas; if the grayscale value is greater than the grayscale value, the corresponding position of the output canvas is displayed in a third color; if the grayscale value is less than the grayscale value, the corresponding position of the output canvas is displayed in a fourth color; if the grayscale value is equal to the grayscale value, the corresponding position of the output canvas is displayed in the same color as the corresponding position of the comparison canvas or the target canvas;
[0010] Step 6: Output the output canvas.
[0011] Furthermore, the comparison method also includes step 7: manually re-judging the difference parts.
[0012] Furthermore, the comparison file is a film drawing file, and the target file is a file formed after the FPC LAYOUT file is imported into the CAD software.
[0013] Furthermore, the size of the output canvas is the same as that of the comparison canvas and the target canvas.
[0014] Furthermore, the first color is black and the second color is white.
[0015] Furthermore, the third color is red, and the fourth color is green.
[0016] Furthermore, the third color and the fourth color are both red.
[0017] By adopting the above scheme, the beneficial effect of the present invention is that: a comparison result with pixel-level accuracy can be achieved, and the difference between the FPC circuit patterns on the comparison file and the target file can be intuitively found through subsequent output of the output canvas, which can improve the comparison efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0019] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0020] See also Figure 1 In this embodiment, the present invention provides a comparison method for FPC drawings, including: Step 1: in the CAD software, the background color of the comparison file and the target file is set to the first color and the line is set to the second color, the grayscale values of the first color and the second color are different, and the present embodiment is summarized as follows: the first color is black, and the second color is white. The comparison file in this embodiment is a film drawing file, and the target file is a file formed after the FPC LAYOUT file is imported into the CAD software.
[0021] Step 2: Set the comparison canvas and target canvas to the same size according to the size of the content to be compared.
[0022] Step 3: Import the part of the comparison file that needs to be compared into the comparison canvas.
[0023] Step 4: Import the portion of the target file that needs to be compared into the target canvas.
[0024] Step 5: Compare the grayscale value differences of all pixels in all rows and columns of the comparison canvas and the target canvas in turn, and determine the magnitude relationship between the grayscale values of the pixels at the corresponding positions of the comparison canvas and the grayscale values of the pixels at the corresponding positions of the target canvas; if they are greater than, display them at the corresponding positions of the output canvas in a third color; if they are less than, display them at the corresponding positions of the output canvas in a fourth color; if they are equal, display the same color as the corresponding positions of the comparison canvas or the target canvas at the corresponding positions of the output canvas; the third color is red, and the fourth color is green.
[0025] Step 6: Output the output canvas.
[0026] Step 7: Manually review the differences.
[0027] Specifically, in the output canvas output after comparison by the method in this implementation, the positions where the grayscale values of the comparison canvas and the target canvas are different are displayed as the third color or the fourth color, and the positions where the grayscale values of the comparison canvas and the target canvas are the same are displayed as the same color as the comparison canvas or the target canvas, so that the output canvas can display the same parts of the comparison canvas and the target canvas, and also display the different parts of the comparison canvas and the target canvas, and can also determine whether the extra part is in the comparison canvas or the target canvas according to the third color and the fourth color, thereby realizing the discovery of the differences between the comparison file and the target file.
[0028] In this implementation, by comparing the grayscale value differences of the pixels of the comparison canvas and the target canvas one by one, a comparison result of the FPC circuits in the target file and the comparison file with pixel-level accuracy can be achieved. By subsequently outputting the output canvas for manual review, the same parts and different parts of the comparison canvas and the target canvas are displayed on the output canvas, and the differences between the FPC circuit patterns on the comparison file and the target file can be intuitively found. The color difference of the circuit patterns on the target canvas can be used to intuitively distinguish the extra circuit parts of the comparison file relative to the target file and the extra circuit parts of the target file relative to the comparison file, which can improve the comparison efficiency and quickly find the difference parts of the FPC circuits in the target file and the comparison file.
[0029] It is worth noting that in other embodiments of the present invention, compared with the previous embodiment, the difference is that the third color and the fourth color in step 5 can be the same color, for example, both are red. In this case, the pixels with grayscale value differences between the comparison canvas and the target canvas will be displayed in red at the corresponding positions of the output canvas, and the pixels with no grayscale value differences will be displayed in black at the corresponding positions of the output canvas. This situation is suitable for the situation where it is only necessary to compare the difference between the PFC circuit patterns in the comparison canvas and the target canvas, without distinguishing which file the difference is from.
[0030] In summary, the FPC drawing comparison method of the present solution can achieve pixel-level precision comparison results. By subsequently outputting the canvas, the difference between the FPC circuit patterns on the comparison file and the target file can be intuitively found, which can improve the comparison efficiency.
[0031] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for comparing FPC drawings, characterized in that: The following steps are involved: Step 1: In the CAD software, the background colors of the comparison file and the target file are set to a first color and the lines are set to a second color, and the grayscale values of the first color and the second color are different; Step 2: Set the comparison canvas and target canvas of the same size according to the size of the content to be compared; Step 3: Import the part of the comparison file that needs to be compared into the comparison canvas; Step 4: Import the part of the target file that needs to be compared into the target canvas; Step 5: sequentially comparing the grayscale value differences of all pixels in all rows and columns of the comparison canvas and the target canvas, and determining the magnitude relationship between the grayscale values of the pixels at the corresponding positions of the comparison canvas and the grayscale values of the pixels at the corresponding positions of the target canvas; if the grayscale values are greater than the grayscale values, the corresponding positions of the output canvas are displayed in a third color; if the grayscale values are less than the grayscale values, the corresponding positions of the output canvas are displayed in a fourth color; if the grayscale values are equal to the grayscale values, the corresponding positions of the output canvas are displayed in the same color as the corresponding positions of the comparison canvas or the target canvas; Step 6: Output the output canvas.
2. The FPC drawing comparison method according to claim 1, characterized in that: The method also includes step 7: manually re-judging the different parts.
3. The FPC drawing comparison method according to claim 1 or 2, characterized in that: The comparison file is a film drawing file, and the target file is a file formed after the FPC LAYOUT file is imported into the CAD software.
4. The FPC drawing comparison method according to claim 1 or 2, characterized in that: The size of the output canvas is the same as that of the comparison canvas and the target canvas.
5. The FPC drawing comparison method according to claim 1 or 2, characterized in that: The first color is black, and the second color is white.
6. The FPC drawing comparison method according to claim 1 or 2, characterized in that: The third color is red, and the fourth color is green.
7. The FPC drawing comparison method according to claim 1 or 2, characterized in that: The third color and the fourth color are both red.
Citation Information
Patent Citations
Pixel calling method and device
CN105679235A
Architectural drawing automatic comparison method and device
CN109858452A
Method and system for improved display of sampled data differences
US20100182334A1
