Circuit schematic inspection method, device, equipment and storage medium

By calculating the distance between the lines in the circuit schematic diagram and generating reminder information, the problem of virtual connection errors in the circuit schematic diagram is solved, the accuracy and efficiency of the inspection are improved, and the correctness of the circuit diagram is ensured.

CN112765930BActive Publication Date: 2024-11-22GUANGZHOU AVA ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110062946.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-18
Publication Date
2024-11-22
Estimated Expiration
2041-01-18

AI Technical Summary

Technical Problem

In electronic design automation, during the merger of circuit schematics, wiring details are difficult to be visually inspected, resulting in frequent virtual connection errors, resulting in the final generated schematic diagram inconsistent with the engineer's design intention, and it is time-consuming and labor-intensive, making it difficult to ensure that there is no accident.

Method used

By obtaining the circuit schematic diagram, calculate the distance between the two lines and the non-connected and disjointed parts, generate reminder information when the distance is less than the preset threshold, mark potential virtual connections, remind engineers to make secondary judgments and processing, and avoid virtual connections. mistake.

Benefits of technology

It effectively avoids circuit diagram errors caused by virtual connections, improves the accuracy and efficiency of circuit schematic inspection, and ensures that the final generated circuit diagram conforms to the design intention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112765930B_ABST
    Figure CN112765930B_ABST
Patent Text Reader

Abstract

The present invention discloses a circuit schematic inspection method, device, equipment and storage medium. The method includes the following steps: obtaining a circuit schematic as an object to be tested; detecting the circuit schematic, calculating the distance between at least two unconnected and non-intersecting parts of the circuit schematic; when the distance is less than a preset distance threshold, generating a reminder message for characterizing the risk of the line, and applying the reminder message to the object to be tested. The present invention checks the lines in the schematic, calculates the distance of the lines in the schematic to determine the proximity between the non-connected lines, and when the two lines are very close and the distance is less than a preset threshold, it is considered that there may be a potential virtual connection between the two lines. When there is a potential virtual connection circuit, a reminder message is issued to remind the engineer to make a secondary judgment and subsequent processing, thereby effectively avoiding connection errors caused by virtual connections on the circuit diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design of circuits, and more specifically, to a circuit schematic inspection method, device, equipment and storage medium. Background Art

[0002] EDA is the abbreviation of Electronic Design Automation. With EDA tools, electronic engineers can design electronic systems from concepts, algorithms, protocols, etc. A large amount of work can be completed by computers, and the entire process of electronic products from circuit design, performance analysis to IC layout or PCB layout design can be automatically processed on computers.

[0003] Usually, the circuits in a project are designed by multiple electronic engineers. Each engineer designs his or her own circuit diagram, and then merges multiple circuit diagrams to form the final circuit diagram of the project. Figure 1 As shown, in actual operation, when the circuit diagrams are merged, the following will appear Figure 1 The situation in the dotted circle A in the figure. When the schematic diagram is not magnified enough, the wiring seems to be connected only by naked eye. In fact, as shown in the dotted circle A', the two wirings are disconnected, virtually connected, and not connected, resulting in the final schematic diagram not being the schematic diagram designed by the engineer himself. In a project, there are many such interface connections. If each interface is checked by naked eye, it is very time-consuming and laborious, and it is difficult to ensure that there is no error. Therefore, there is an urgent need for a method that can quickly and accurately check the above errors and prompt them. Summary of the invention

[0004] The present invention is to overcome at least one of the defects of the prior art and provide a circuit schematic inspection method, device, equipment and storage medium. The technical solution adopted by the present invention is as follows.

[0005] In a first aspect, the present invention provides a method for checking a circuit schematic diagram, comprising the steps of:

[0006] Obtaining a circuit schematic diagram of a test object;

[0007] Detecting the circuit schematic diagram, and calculating the distance between the unconnected and non-intersecting parts of at least two lines in the circuit schematic diagram;

[0008] When the distance is less than a preset distance threshold, a reminder message for characterizing the line risk is generated, and the reminder message is applied to the object to be tested.

[0009] In one embodiment, the at least two lines include: a first line and a second line;

[0010] The distance between the two lines is the distance between the first line and the second line.

[0011] In one embodiment, the at least two lines include: a third line and a fourth line;

[0012] The third circuit includes a first terminal point to which no circuit element is connected;

[0013] The distance between the two lines is the distance from the first end point to the fourth line.

[0014] In one embodiment, the at least two lines include: a fifth line and a sixth line;

[0015] The fifth line includes a corner vertex;

[0016] The sixth line includes a second terminal point not connected to a circuit element;

[0017] The distance between the two lines is the distance between the corner vertex and the second end point.

[0018] In one embodiment, the at least two lines include: a seventh line and an eighth line;

[0019] The seventh line includes a third terminal point to which no circuit element is connected;

[0020] The eighth circuit includes a fourth terminal point to which no circuit element is connected;

[0021] The distance between the two lines is the distance between the third endpoint and the fourth endpoint.

[0022] In one implementation, the circuit schematic includes a grid, and the preset distance threshold is a grid spacing.

[0023] In one embodiment, when the distance is less than a preset distance threshold, a process of generating reminder information for characterizing line risk and applying the reminder information to the object to be detected includes the steps of:

[0024] When the distance is less than a preset distance threshold, a corresponding position is marked on the circuit schematic.

[0025] In a second aspect, the present invention provides a circuit schematic inspection device, comprising:

[0026] An acquisition module, used for acquiring a circuit schematic diagram of an object to be tested;

[0027] A calculation module, used for detecting the circuit schematic diagram, and calculating the distance between the unconnected and non-intersecting parts of at least two lines in the circuit schematic diagram;

[0028] The reminder module is used to generate reminder information for characterizing line risks when the distance is less than a preset distance threshold, and to apply the reminder information to the object to be tested.

[0029] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods when executing the program.

[0030] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any of the above-mentioned embodiments.

[0031] The present invention checks the circuits in the schematic diagram, calculates the distance between the circuits in the schematic diagram to determine the proximity between the non-connected circuits, and when two circuits are very close and the distance is less than a preset threshold, it is considered that there may be a potential virtual connection between the two circuits. When there is a potential virtual connection circuit, a reminder message is issued to remind engineers to make a secondary judgment and subsequent processing, thereby well avoiding connection errors caused by virtual connections on the circuit diagram. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic diagram of virtual connection of circuit in the prior art.

[0033] Figure 2 It is a flow chart of the first embodiment of the present invention.

[0034] Figure 3 This is an exemplary diagram of an embodiment of the present invention.

[0035] Figure 4 is an exemplary diagram of another embodiment of the present invention.

[0036] Figure 5 This is an exemplary diagram of another embodiment of the present invention.

[0037] Figure 6 It is an exemplary diagram of yet another embodiment of the present invention.

[0038] Figure 7 is a schematic diagram of an embodiment of the present invention.

[0039] Figure 8 It is a structural diagram of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0040] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0041] It should be noted that the terms "first\second\..." involved in the embodiments of the present invention are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\..." can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\..." can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0042] Embodiment 1

[0043] See also Figure 2 , Figure 2 The flowchart of a circuit schematic inspection method provided in the first embodiment of the present invention includes step S110, step S120 and step S130. It should be noted that step S110, step S120 and step S130 are only reference numerals for clarifying the embodiment and the appendix. Figure 2 The corresponding relationship does not limit the order of the steps in the method in this embodiment.

[0044] Step S110, obtaining a circuit schematic diagram of a test object.

[0045] Obtain a circuit schematic diagram as the object to be tested. Usually, the schematic diagram is a schematic diagram formed by merging multiple circuit diagrams as described in the background art. Of course, it can also be other types of schematic diagrams to be checked.

[0046] It should be pointed out that the circuit schematic checking method of the present invention can be applied to various wiring software, and the wiring software may be, for example, Allegro, Protel and other software, but is not limited thereto.

[0047] Step S120: Detect the circuit schematic diagram, and calculate the minimum distance between unconnected and non-intersecting parts of at least two lines in the circuit schematic diagram.

[0048] Generally speaking, the reason for the virtual connection between two lines in the schematic diagram is that the two lines are very close to each other, but not actually connected. For this type of line, it is difficult to find it with the naked eye. Therefore, the distance between the two lines can be calculated. When there is a distance between the two lines, it can be determined that the two lines are not connected. In addition, the distance between the lines can also indicate the degree of proximity between the two lines. It must be pointed out here that since the unconnected lines are to be found, the connected lines, or the intersecting lines (generally speaking, the cross intersections and the center points are not drawn with a solid dot, or a small arc is drawn to indicate bypassing, which indicates intersecting lines), or the lines with a distance equal to 0 are not within the scope of the circuit we calculate. For example, there is an intersection between two lines A and B, and lines A and B need to be connected in parallel. One end of line A is connected to line B, and the other end of line A is close to line B but not connected. The distance referred to here includes both the distance between the non-endpoint non-intersecting parts of line A and line B, and the distance from the other end of line A to line B.

[0049] It must be pointed out here that the circuit referred to in the present invention refers to a circuit without branches. When the circuit has branches, the branches become another new circuit. Figure 1 As shown, although B1 has a bend, the bend does not produce a branch, so B1 is still a line all the way to the grounding point. The branch of B1 is B2, and B2 is another line. Similarly, B3 is a line, and the branch of B3, B4, is another line.

[0050] Step S130, when the distance is less than a preset distance threshold, generating reminder information for characterizing line risk, and applying the reminder information to the object to be tested.

[0051] In step S120, the lines that are not connected have been found, and the distances have been marked, and the data on the proximity between the lines has been obtained. For this type of lines, some need to be connected, but due to various reasons, a virtual connection is generated that appears to be connected but is not actually connected, and some do not need to be connected. Generally speaking, the reason for the virtual connection is that the two lines are too close to each other to be recognized by the naked eye, so a distance threshold can be preset. When the distance between the two lines is less than the distance threshold, it is considered to be a distance that cannot be recognized by the naked eye, that is, it may be a potential virtual connection. It must be pointed out here that there may be one or more points between the two lines that send out reminder information, because the distance between the two lines may have several values, and there may be multiple values ​​less than the threshold value among these values. At this time, the positions represented by the multiple distance values ​​must send out reminder information.

[0052] For potential virtual connections, since it is impossible to know whether it is a real virtual connection or the design itself requires it to be so close, the present invention generates reminder information for characterizing line risks, and applies the reminder information to the object to be tested to remind engineers, reminding engineers to make secondary judgments and subsequent processing, so that the final circuit diagram is the circuit diagram obtained by the engineer's own design intention.

[0053] The present invention checks the circuits in the schematic diagram, calculates the distance between the circuits in the schematic diagram to determine the proximity between the non-connected circuits, and when two circuits are very close and the distance is less than a preset threshold, it is considered that there may be a potential virtual connection between the two circuits. When there is a potential virtual connection circuit, a reminder message is issued to remind engineers to make a secondary judgment and subsequent processing, thereby well avoiding connection errors caused by virtual connections on the circuit diagram.

[0054] In one implementation, the at least two lines include: a first line and a second line; and the distance between the two lines is the distance between the first line and the second line.

[0055] like Figure 3 As shown, there are two lines, namely, a first line connected to R1 on the left and a second line connected to R2 on the right. At this time, the lower end of the second line may also need to be grounded, that is, the lower end of the second line may need to be connected to the first line. In this case, the at least two lines in the step "calculating the distance between at least two lines in the circuit schematic" include: a first line and a second line, and the distance between the two lines is the distance between the first line and the second line. When the two lines are very close, it is possible to mistakenly think that the two lines are connected because they are too close, so it is necessary to issue a reminder message for the engineer to further confirm.

[0056] In one implementation, the at least two lines include: a third line and a fourth line; the third line includes a first end point to which no circuit element is connected; and the distance between the two lines is the distance from the first end point to the fourth line.

[0057] like Figure 4As shown, there are two lines, namely, the third line connected to R3 on the left and the fourth line connected to R4 on the right. At this time, the third line and the fourth line may need to be connected, that is, the endpoint A of the third line may be virtually connected. In this case, the at least two lines in the step "calculating the distance between at least two lines in the circuit schematic" include: the third line and the fourth line, the third line includes a first endpoint A without a circuit element connected, and the distance between the two lines is the distance from the first endpoint A to the fourth line. When the endpoint A of the third line is very close to the fourth line, it is necessary to issue a reminder message for the engineer to further confirm.

[0058] It must be pointed out here that the fourth line can be Figure 4 As shown, it is a straight line, or it may be Figure 5 Like the fifth line in , it is a line with bends.

[0059] In one embodiment, the at least two lines include: a fifth line and a sixth line; the fifth line includes a corner vertex; the sixth line includes a second endpoint not connected to a circuit element; and the distance between the two lines is the distance between the corner vertex and the second endpoint.

[0060] like Figure 5 As shown, there are two lines, namely, the fifth line with a turn on the left side and connected to R5 and the sixth line with R6 on the right side. At this time, the corner vertex B of the fifth line and the end point C of the sixth line may need to be connected. In this case, the at least two lines in the step "calculating the distance between at least two lines in the circuit schematic diagram" include: the fifth line and the sixth line, the fifth line includes a corner vertex, the sixth line includes a second end point without a circuit element connected, and the distance between the two lines is the distance between the corner vertex and the second end point. When the corner vertex B of the fifth line is very close to the end point B of the sixth line, it is necessary to issue a reminder message for the engineer to further confirm.

[0061] It must be pointed out here that the corner may be Figure 5 Right angles are shown; other angles are possible.

[0062] In one embodiment, the at least two lines include: a seventh line and an eighth line; the seventh line includes a third endpoint not connected to a circuit element; the eighth line includes a fourth endpoint not connected to a circuit element; and the distance between the two lines is the distance between the third endpoint and the fourth endpoint.

[0063] like Figure 6As shown, there are two lines, namely the seventh line connected to R7 on the left and the eighth line connected to R8 on the right. At this time, the endpoint E of the seventh line and the endpoint F of the eighth line may need to be connected. In this case, the at least two lines in the step "calculating the distance between at least two lines in the circuit schematic" include: the seventh line and the eighth line; the seventh line includes a third endpoint without a circuit element connected; the eighth line includes a fourth endpoint without a circuit element connected; the distance between the two lines is the distance between the third endpoint and the fourth endpoint. When the endpoint E of the seventh line is very close to the endpoint F of the eighth line, it is necessary to issue a reminder message for the engineer to further confirm.

[0064] It must be pointed out here that the endpoints between the two lines may be Figure 6 As shown, the vertical distance is caused by different heights. It is also possible that the heights are the same but not connected horizontally, resulting in a horizontal distance. It is also possible that both the vertical and horizontal directions are not aligned, resulting in a diagonal distance.

[0065] In one implementation, the circuit schematic includes a grid, and the preset distance threshold is a grid spacing.

[0066] Generally speaking, circuit schematics contain grids, which can help users find out whether the lines are aligned or not. Therefore, when the preset distance threshold is greater than a grid spacing, it can be considered that the engineer can find out that the line is disconnected, that is, the disconnection is not a virtual connection, but the actual design of the engineer itself makes it disconnected. Therefore, setting the preset distance threshold to a grid spacing can more specifically issue reminder information for actual virtual connections.

[0067] In one embodiment, when the distance is less than a preset distance threshold, a reminder message for characterizing line risk is generated, and the reminder message is applied to the object to be tested, comprising the steps of: when the distance is less than a preset distance threshold, marking a corresponding position on the circuit schematic.

[0068] Generally speaking, there are many ways to send reminder messages, but the most intuitive way is as follows Figure 7 As shown, on the circuit schematic, when the distance is less than a preset distance threshold, the corresponding position where the distance is less than the preset distance threshold is directly marked, so that engineers can quickly check the potential virtual connection location.

[0069] It must be pointed out here that there are many ways to mark, such as Figure 7In that way, by marking with a circle, other marking methods may also be used, such as highlighting, adding tag information, etc. Those skilled in the art may select a qualified marking method according to actual needs.

[0070] Embodiment 2

[0071] Corresponding to the method of embodiment 1, as Figure 8 As shown, the present invention further provides a circuit schematic inspection device 2, comprising: an acquisition module 201, a calculation module 202 and a reminder module 203.

[0072] An acquisition module 201 is used to acquire a circuit schematic diagram of an object to be tested;

[0073] A calculation module 202, configured to detect the circuit schematic diagram and calculate a distance between at least two unconnected and non-intersecting parts of the circuit schematic diagram;

[0074] The reminder module 203 is used to generate reminder information for characterizing line risks when the distance is less than a preset distance threshold, and to apply the reminder information to the object to be tested.

[0075] In one implementation, the at least two lines include: a first line and a second line; and the distance between the two lines is the distance between the first line and the second line.

[0076] In one implementation, the at least two lines include: a third line and a fourth line; the third line includes a first end point to which no circuit element is connected; and the distance between the two lines is the distance from the first end point to the fourth line.

[0077] In one embodiment, the at least two lines include: a fifth line and a sixth line; the fifth line includes a corner vertex; the sixth line includes a second endpoint not connected to a circuit element; and the distance between the two lines is the distance between the corner vertex and the second endpoint.

[0078] In one embodiment, the at least two lines include: a seventh line and an eighth line; the seventh line includes a third endpoint not connected to a circuit element; the eighth line includes a fourth endpoint not connected to a circuit element; and the distance between the two lines is the distance between the third endpoint and the fourth endpoint.

[0079] In one implementation, the circuit schematic includes a grid, and the preset distance threshold is a grid spacing.

[0080] In one implementation, the reminder module 203 is further configured to mark a corresponding position on the circuit schematic when the distance is less than a preset distance threshold.

[0081] The present invention checks the circuits in the schematic diagram, calculates the distance between the circuits in the schematic diagram to determine the proximity between the non-connected circuits, and when two circuits are very close and the distance is less than a preset threshold, it is considered that there may be a potential virtual connection between the two circuits. When there is a potential virtual connection circuit, a reminder message is issued to remind engineers to make a secondary judgment and subsequent processing, thereby well avoiding connection errors caused by virtual connections on the circuit diagram.

[0082] Embodiment 3

[0083] An embodiment of the present invention further provides a storage medium on which computer instructions are stored. When the instructions are executed by a processor, the method for checking the circuit schematic diagram of any of the above embodiments is implemented.

[0084] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, random access memories (RAM), read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0085] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.

[0086] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, an encoder, and a computer program stored in the memory and executable on the encoder, wherein when the encoder executes the program, a circuit schematic inspection method as described in any one of the above-mentioned embodiments is implemented.

[0087] The above computer device checks the circuits in the schematic diagram and calculates the distance between the circuits in the schematic diagram to determine the proximity between the non-connected circuits. When two circuits are very close and the distance is less than a preset threshold, it is considered that there may be a potential virtual connection between the two circuits. When there is a potential virtual connection circuit, a reminder message is issued to remind the engineer to make a secondary judgment and subsequent processing, thereby effectively avoiding connection errors caused by virtual connections on the circuit diagram.

[0088] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0089] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. 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 claims of the present invention.

Claims

1. A method for checking a circuit schematic, characterized in that: Includes steps: Obtaining a circuit schematic diagram of a test object; Detect the circuit schematic diagram, calculate that at least two lines in the circuit schematic diagram are not connected and Distance of disjoint parts; When the distance is less than the preset distance threshold, a prompt for indicating that the line has a virtual connection risk is generated. Reminding information, and applying the reminding information to the object to be tested; The at least two lines include: a first line and a second line; The distance between the first line and the second line is the distance between roads; The at least two lines also include: a third line and a fourth line; The third circuit includes a first terminal point to which no circuit element is connected; The distance between the third line and the fourth line is the distance between the first end point and the The distance of the fourth line; The at least two lines include: a fifth line and a sixth line; The fifth line includes a corner vertex; The sixth line includes a second terminal point not connected to a circuit element; The distance between the fifth and sixth lines is the distance between the corner vertex and the The distance between the second endpoints; The at least two lines include: a seventh line and an eighth line; The seventh line includes a third terminal point to which no circuit element is connected; The eighth circuit includes a fourth terminal point to which no circuit element is connected; The distance between the seventh and eighth lines is the distance between the third end point and the The distance between the fourth endpoints.

2. The circuit schematic inspection method according to claim 1, characterized in that: The circuit The schematic diagram includes a grid, and the preset distance threshold is a grid spacing.

3. The circuit schematic inspection method according to claim 1, characterized in that: When the distance is less than a preset distance threshold, a reminder message for characterizing the line risk is generated, and the reminder message is applied to the object to be tested, comprising the steps of: When the distance is less than a preset distance threshold, a corresponding position is marked on the circuit schematic.

4. A circuit schematic inspection device, characterized in that: include: An acquisition module, used for acquiring a circuit schematic diagram of an object to be tested; A calculation module, used for detecting the circuit schematic diagram, and calculating the distance between the unconnected and non-intersecting parts of at least two lines in the circuit schematic diagram; A reminder module, used for generating reminder information for indicating that there is a risk of virtual connection in the line when the distance is less than a preset distance threshold, and applying the reminder information to the object to be tested; The at least two lines include: a first line and a second line; The distance between the two lines with respect to the first line and the second line is the distance between the first line and the second line; The at least two lines also include: a third line and a fourth line; The third circuit includes a first terminal point to which no circuit element is connected; The distance between the two lines with respect to the third line and the fourth line is the distance from the first end point to the fourth line; The at least two lines also include: a fifth line and a sixth line; The fifth line includes a corner vertex; The sixth line includes a second terminal point not connected to a circuit element; The distance between the two lines with respect to the fifth line and the sixth line is the distance between the corner vertex and the second end point; The at least two lines also include: a seventh line and an eighth line; The seventh line includes a third terminal point to which no circuit element is connected; The eighth circuit includes a fourth terminal point to which no circuit element is connected; The distance between the two lines with respect to the seventh line and the eighth line is the distance between the third end point and the fourth end point.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.