CN-122019619-A - Method for identifying outdoor wiring diagram of railway signal
Abstract
The invention provides a method for identifying a railway signal outdoor wiring diagram, which sequentially identifies an outdoor direction box and an outdoor equipment box according to indoor direction ports in a railway signal outdoor wiring diagram CAD format electronic drawing, then identifies the names and types of the boxes and the cable lengths among the boxes, identifies terminals and wiring sequences in the boxes, digitizes the information finally, and correspondingly associates each outdoor box with the names, types of the boxes and the cable lengths among the boxes to form four relation tables for searching, searching and positioning. The invention can automatically identify the box, the cable, the terminal and the position of the wiring in the CAD drawing, namely the graphic element composition information, in the railway signal cable wiring drawing, establish the connection relation between the electronic cable boxes, and correlate the CAD drawing coordinate position with the box cable and the like.
Inventors
- LI HAI
- FAN LEI
- WANG ZEXU
- WU YIFAN
- LI GUODONG
- HAN DONG
- SUN AIZHONG
- GU BIN
- HU QIN
- HE TAO
- CHU ZHENGYUN
- FU SONG
- SHI CHENG
- ZHAO JINLEI
Assignees
- 河南辉煌科技股份有限公司
- 中国铁路上海局集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251231
Claims (4)
- 1. A method for identifying an outdoor wiring diagram of a railway signal, comprising: (1) Acquiring a drawing file of a railway signal outdoor wiring diagram in a CAD format, and reading information of all elements in the drawing file, wherein the elements comprise line segments, characters and various shapes, and the information comprises coordinates and sizes; (2) Identifying the box; Based on the line segments in the elements, finding all closed rectangles, identifying the rectangles as boxes if the rectangles are penetrated by a plurality of horizontal straight lines, and identifying the rectangles as indoor ports if the rectangles are not penetrated by a plurality of horizontal straight lines; the method for finding the closed rectangle comprises the following steps: Finding two straight lines, calculating the included angle of the two straight lines and the distances between four pairs of endpoints of the two straight lines according to the coordinates of the two straight lines, and considering that the two straight lines vertically intersect and can be used as two sides of a closed rectangle when the deviation of the included angle value and 90 degrees is within the range of 0.001 degrees and the distance between one pair of endpoints of the two straight lines is within the range of 0.01; According to the two found rectangular sides, the other two sides of the rectangle are found by the same judging method, and the other two sides are confirmed to be vertically intersected, namely, a closed rectangle is found; (3) Identifying cable information; identifying the characters above the box as cable information characters for the rectangle where the box is located; (4) Identifying the box name and type; In the rectangle of the box, finding two horizontal straight lines with the distance difference between two end points and two vertical edges of the rectangle smaller than 0.001, forming a rectangle I by a straight line with large Y coordinates, the upper edge and the vertical edge of the rectangle, identifying the characters in the rectangle I as the box names, forming a rectangle II by a straight line with small Y coordinates, the straight line with large Y coordinates and the vertical edge, and identifying the characters in the rectangle II as the box types; (5) Identifying wiring terminal information in the box; Recognizing a rectangular horizontal line passing through a box as a core wire of the cable, and recognizing characters at the upper position of the core wire as wiring terminal information of the core wire in the corresponding box, wherein the upper position of the core wire is X coordinate in the X coordinate range of two vertical sides of the box, and Y coordinate in the coordinate range passing through the upper side 0.5 of the horizontal line; (6) Identifying the wire sequence of the cable; Firstly, identifying a plurality of core wires which pass through a horizontal line and are used as a cable between two boxes, and then identifying characters at the upper position of each horizontal line as line sequence information of the core wires, wherein the upper position of the horizontal line is that X coordinates are in the X coordinate range of the vertical sides of two adjacent boxes, and Y coordinates are in the coordinate range of 0.5 which passes through the upper side of the horizontal line; (7) Identifying an indoor terminal; In the indoor port rectangle, searching a horizontal line intersecting with the left vertical edge of the indoor port rectangle, and recognizing characters at the right side of each horizontal line as an indoor terminal number of the core wire, wherein the method for searching the horizontal line intersecting with the left vertical edge of the indoor port rectangle comprises the following steps: Searching two endpoints of a horizontal line, wherein one endpoint is smaller than the X coordinate of the left vertical side of the rectangle, and the other endpoint is between the X coordinates of the two vertical sides of the rectangle, and the right position of the horizontal line is in a range that the Y coordinate is smaller than 0.5 of the horizontal line, and the X coordinate is larger than the X coordinate of the endpoint of the horizontal line and smaller than the X coordinate of the right vertical side of the rectangle; (8) Function of identifying cable core wire The method comprises the steps of searching a horizontal line intersecting with the left vertical side of an indoor port rectangle in the indoor port rectangle, and identifying characters at the upper position of the horizontal line as a core line, wherein the upper position of the horizontal line is in a range that Y coordinates are smaller than 0.5 of the horizontal line, and the left lower X coordinates of the characters are between the left side X coordinates of the port rectangle and the end point X coordinates of the horizontal line in the rectangle; (9) Establishing a cable connection relationship between indoor boxes and outdoor boxes; The method comprises the steps of searching core wires from an indoor port to a box and connecting wires between the indoor port and the box as well as between the indoor port and the box and between the box and the inner core wires, wherein the core wires are connected with wiring terminals of the box to form a cable connection relation of the whole drawing; (10) Storing all the identified position information in an associated mode; Storing the position, name and type of each box graph, wiring length between two boxes, core wire line sequence position name, internal terminal number of the box, and related core wire line sequence position name connected to the wiring terminal, wherein the graphs on the CAD drawing all have GUID, and the graphs formed by a plurality of graphs such as the terminal or the box are combined into a block, and the block has one GUID; based on the box, the cable, the terminal, the core wire and the CAD graph GUID, a box cable relation information table, a core wire terminal relation table, a terminal GUID table and a box GUID table are generated.
- 2. An electronic device, comprising: At least one processor, and a memory coupled to the at least one processor; Wherein the memory stores a computer program executable by the at least one processor to perform the steps of the method of identifying a railway signal outdoor wiring diagram of claim 1.
- 3. A computer-readable storage medium, in which a computer program is stored which, when executed, enables the steps of the method for identifying a railway signal outdoor wiring diagram according to claim 1 to be carried out.
- 4. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method of identifying a railway signal outdoor wiring diagram as in claim 1.
Description
Method for identifying outdoor wiring diagram of railway signal Technical Field The invention relates to the technical field of railway signal engineering design, in particular to a method for identifying an outdoor wiring diagram of a railway signal. Background The outdoor wiring diagram of the railway signal is a vital technical drawing in a railway signal system, and particularly describes detailed wiring connection information between various signal devices extending from indoor equipment of a signal machine to the outdoor, such as a signal machine, a track circuit, a switch machine and the like. The drawings clearly mark the trend, specification and core number of the cable in a graphical mode and the specific wiring relation of the internal terminals of various boxes (such as cable boxes, transformer boxes and the like). In general, the number of wiring drawings related to a station is huge, and each drawing is densely drawn with complex connections among a plurality of boxes, multi-section cables and corresponding devices, so that a complete set of signal equipment electrical communication logic is formed together. At present, the drawings are still stored in a railway signal equipment room in a centralized manner in a paper form or are stored in a computer in a scattered manner in a form of a whole CAD electronic file. This traditional management approach exposes significant drawbacks during actual repair and fault handling. When the field signal equipment fails, maintenance personnel often need to turn over paper drawings one by one according to experience or sequentially open a plurality of CAD files in a computer for manual investigation due to lack of effective drawing content retrieval means. The process is time-consuming and labor-consuming, and key information is missed easily due to visual fatigue or drawing relevance understanding deviation, so that the efficiency and accuracy of fault positioning are affected. In order to solve the problems, the realization of the digital intelligent identification and information structuring processing of the outdoor wiring diagram of the railway signal is urgently needed. Disclosure of Invention The invention aims at overcoming the defects of the prior art, and provides a method and a system for identifying an outdoor wiring diagram of a railway signal. The invention can identify the information of boxes, cables and terminal wirings in the outdoor wiring drawing of each railway signal, and can correlate the information with the area so as to perform information retrieval and positioning. Specifically, the first aspect of the present invention provides a method for identifying an outdoor wiring diagram of a railway signal, which includes: (1) Acquiring a drawing file of a railway signal outdoor wiring diagram in a CAD format, and reading information of all elements in the drawing file, wherein the elements comprise line segments, characters and various shapes, and the information comprises coordinates and sizes; (2) Identifying the box; Based on the line segments in the elements, finding all closed rectangles, identifying the rectangles as boxes if the rectangles are penetrated by a plurality of horizontal straight lines, and identifying the rectangles as indoor ports if the rectangles are not penetrated by a plurality of horizontal straight lines; the method for finding the closed rectangle comprises the following steps: Finding two straight lines, calculating the included angle of the two straight lines and the distances between four pairs of endpoints of the two straight lines according to the coordinates of the two straight lines, and considering that the two straight lines vertically intersect and can be used as two sides of a closed rectangle when the deviation of the included angle value and 90 degrees is within the range of 0.001 degrees and the distance between one pair of endpoints of the two straight lines is within the range of 0.01; According to the two found rectangular sides, the other two sides of the rectangle are found by the same judging method, and the other two sides are confirmed to be vertically intersected, namely, a closed rectangle is found; (3) Identifying cable information; identifying the characters above the box as cable information characters for the rectangle where the box is located; (4) Identifying the box name and type; In the rectangle of the box, finding two horizontal straight lines with the distance difference between two end points and two vertical edges of the rectangle smaller than 0.001, forming a rectangle I by a straight line with large Y coordinates, the upper edge and the vertical edge of the rectangle, identifying the characters in the rectangle I as the box names, forming a rectangle II by a straight line with small Y coordinates, the straight line with large Y coordinates and the vertical edge, and identifying the characters in the rectangle II as the box types; (5) Identifying wiring terminal information