CTC station graph automatic drawing method and system based on image recognition
Through the CTC station map automatic drawing method based on image recognition, the connection relationship between station signal equipment objects is obtained using image recognition technology, and the station static station site map is automatically drawn through CAD automatic drawing software, solving the problems of low efficiency and error-prone manual drawing in the existing technology, and achieving efficient and accurate automatic drawing of station maps.
Patent Information
- Application Number
- CN202510715619.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-05-30
AI Technical Summary
In the prior art, station map drawing relies on manual operations, resulting in large repetitive workload, low drawing efficiency and prone to errors.
The CTC station map automatic drawing method based on image recognition is adopted to obtain the connection relationship of the station signal equipment object through image recognition technology, and the CAD automatic drawing software is used to automatically match, call and splice the primitives to generate the station static station map.
It realizes automatic drawing of station maps, significantly shortens the station map drawing cycle, improves work efficiency, and ensures the accuracy of CTC station data.
Smart Images

Figure CN120234855A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of image recognition, train dispatching, vehicle control, etc., and particularly relates to a method and system for automatically drawing a CTC station diagram based on image recognition. Background Art
[0002] The CTC decentralized autonomous dispatching and concentration system can achieve transparent command, real-time adjustment and centralized control of train operations by railway transportation dispatching at all levels. At the same time, it can also complete the control functions of station equipment within the jurisdiction. The realization of these functions requires the central dispatcher and the station operator to track important information such as the specific location of the train, the train type, the driving situation, the train running direction, and the status of various railway signals in real time through the intuitive display of the station yard plan. Therefore, the station yard diagram is a necessary basis for realizing the train operation dispatching function. The station yard diagram, that is, the schematic diagram of the plane state of the station, reflects the different railway signal types and connection structure layouts of the station yard. It finally presents an intuitive and standard station yard plane schematic diagram by drawing, combining and splicing various graphic elements corresponding to the station elements abstracted. At present, there are more than 9,000 stations in China. With the continuous densification of the Chinese railway network, the number of new stations and renovated stations will only increase, and the corresponding number of station diagram drawings will also increase accordingly. The traditional station diagram drawing work is all completed manually. Users usually interact with the computer in the way of keyboard and mouse, which has problems such as large repetitive workload and low drawing efficiency. Summary of the Invention
[0003] The object of the present invention is to provide a method and system for automatically drawing a CTC station diagram based on image recognition in view of the defects of the prior art, so as to form a CAD automatic drawing software that combines the existing station diagram drawing CAD software with intelligent software based on image recognition technology. The CAD automatic drawing software can realize functions such as automatic drawing of the static station yard diagram of the station, automatic inspection and prompt of the overlapping area, etc., which can greatly shorten the station diagram drawing cycle, improve work efficiency, and ensure the accuracy of CTC station data production. The basis for drawing the CTC station yard plan view is the interface of the interlocking upper computer. The CAD automatic drawing software obtains the types and interconnection relationships of railway signal objects in the station by recognizing the station yard diagram displayed on the interface of the interlocking upper computer, and maps and associates them to the in-station graphic components corresponding to the CTC station signal elements (referred to as graphic elements for short, which refer to the elements repeatedly called when drawing the station yard diagram, such as turnout graphic elements, non-switching section graphic elements, etc.), and finally exports them in the form of a connection relationship table. According to the obtained in-station graphic components and their connection relationship table, the CAD automatic drawing software will automatically match, call and splice the graphic components corresponding to the CTC station diagram, and finally combine them into a preliminary static station yard diagram of the station (referred to as "station name.ctc"). The "station name.ctc" of a station is an abstract storage of the plane state of a station by the CTC system, that is, the static station yard diagram is a description storage file of all signal equipment objects of a station by the CTC system. Its storage method is a binary data stream file. Among them, the basic static data involved in the static station yard diagram can be divided into the specific graphic display format and the static attributes of the graphic. Each static attribute of each graphic element corresponds one-to-one with the acquisition switch quantity of the basic acquisition system. The station yard graphic element objects can be divided into two categories according to whether they involve static information attributes. One category is the graphic element objects with information attributes, that is, the graphic element objects that will change with the change of the station state, such as tracks, turnouts, signal lights, etc.; the other category is the non-information graphic element objects, that is, the graphic elements that will not change their states, such as auxiliary lines, insulation joints, etc. Realizing the automatic drawing of the station diagram can effectively solve problems such as easy errors and long time consumption in manual drawing at the present stage.
[0004] The first aspect of the present invention lies in providing a method for automatically drawing a CTC station diagram based on image recognition, which is used to obtain the connection relationship of station signal equipment objects by using image recognition technology, and realize the automatic drawing of the CTC station yard plan view by calling graphic elements in the background based on the connection relationship of station signal equipment objects, including: S1, centrally manage and maintain all graphic element objects involved in the station yard diagram; S2. Based on image recognition technology, perform image recognition on the station yard map of the interlocking upper computer interface to obtain the types of in-station railway signal object elements and the connection relationships of in-station signal devices of the station to be drawn, map and associate the connection relationships of the in-station signal devices to the in-station graphic components corresponding to the in-station railway signal object elements of the station to be drawn, and finally output the connection relationship table of the basic station yard graphic elements. The connection relationship table is the basis for automatic station map drawing; S3. According to the known connection relationships between various signal objects of the station, select all the graphic objects involved in the station yard map and perform attribute setting and automatic splicing of the selected graphic objects to obtain a station yard plan view that preliminarily meets the requirements of the CTC station map; S4. Store the graphic elements and their static attributes in the drawn station yard plan view based on the database, and perform statistics, verification, and output on the data of each graphic element.
[0005] Preferably, the performing image recognition on the station yard map of the interlocking upper computer interface based on image recognition technology includes: performing YOLOv5 image recognition on the station yard map of the interlocking upper computer interface based on the YOLOv5 image recognition technology.
[0006] Preferably, S1 includes: S11. Store all the graphic objects involved in the station yard map based on the graphic element storage sub-module; S12. Provide visual graphics in the automatic drawing interface to support users to perform operations such as adding, deleting, and modifying graphic elements in the graphic element library, and realize the graphical input of non-basic graphic components of the station yard map; S13. During the automatic drawing process, when the background calls the graphic object, based on the graphic element call sub-module, set the static attributes of the graphic object as needed, including realizing the translation, rotation, and connection operations of the graphic element by setting the position-related control parameters of the station yard graphic element.
[0007] Preferably, S2 includes: S21. Input the image corresponding to the station yard map of the interlocking upper computer interface; where the image is an image formed by taking a screenshot of the upper computer interface; S22. Preprocess the image according to the requirements of the YOLOv5 model; S23. Import the preprocessed screenshot image of the host computer interface to be recognized, and use the existing trained YOLOv5 model to perform object detection on the screenshot image of the host computer interface to obtain the detection results. The detection results include: the types of in-station railway signal object elements of the station to be drawn and the connection relationship of in-station signal devices, as well as the mapping association between the connection relationship of in-station signal devices and the in-station graphic elements corresponding to the in-station railway signal object elements of the station to be drawn; S24. Analyze the detection results and output the connection relationship table representing the connection relationship of basic graphic elements.
[0008] Preferably, S23 includes: (1) Analyze the YOLOv5 model to extract the detected railway signal object information, including category information, coordinate positions of bounding boxes, and confidence levels; (2) Filter out the detection results with relatively low confidence levels according to the set threshold.
[0009] Preferably, S3 includes: S31. Based on determining the connection relationship table of the basic graphic elements of the station yard, turn on the automatic station map drawing mode; S32. Set the size of the drawing paper, and the size of the drawing paper can be manually adjusted after the CTC station map is automatically drawn; S33. Read the image track information from the connection relationship table of the basic graphic elements of the station yard, and automatically call the track graphic element object based on the image track information and generate tracks according to the setting, including: the length of the track is fixedly set, and the Y-axis spacing between adjacent tracks is automatically adjusted according to the preset default pixels; when calling the track graphic element object, the coordinate positions at both ends of each track object in the CTC station yard map will be automatically adjusted to the positive integer (X, Y) position, and the placement positions of the insulation joints at both ends of the track are the same as the coordinate positions of the endpoints at both ends of the track. Obtain and verify the parameters of each track graphic element in the station, process its initial data, and store the processed data; S34. Based on determining the completion of track generation, automatically draw the linear signal objects in the up / down throats of the station; when calling the linear object, its coordinate position will also be automatically adjusted to the positive integer (X, Y) position. Obtain and verify the parameters of the corresponding graphic elements of each linear object in the station, process its initial data, and store the processed data; S35. Automatically insert insulation joint graphic elements according to the connection relationship table of the basic graphic elements of the station yard. The angle parameter of the insulation joint graphic element needs to be set according to the actual situation of the connection point read. The placement position of the insulation joint at the separation point is perpendicular to the linear object and close to the insulation joint coordinate positions at both ends of the departure section, and the coordinate positions of the insulation joints at both ends of the departure section are the same as the coordinate positions of the section endpoints; S36. Obtain the position of the signal machine based on the connection relation table of the basic station yard elements, and automatically draw the signal machine elements in the station yard map according to the position of the signal machine; S37. Based on the completion of all automatic drawing, perform manual beautification and adjustment to obtain a beautified map; S38. Conduct an element intersection check on the beautified map to determine whether there is overlap of elements. If there is overlap, proceed to S39; if there is no overlap, jump to S40; S39. Perform manual adjustment on the beautified map, including: in the manual adjustment interface, redraw the connection points of the overlapping area manually according to the prompt. After checking and correcting the result to be correct, finally obtain the required station yard map; S40. Directly output the CAD station map of the CTC station yard map.
[0010] Preferably, the automatic splicing of the elements includes: calling of elements, drawing of text, setting of the position of insulating joints, setting of the position of signal machines, setting of the angle of turnout objects, setting of the spacing between tracks, and checking and automatic prompting for element intersection and overlap.
[0011] The second aspect of the present invention lies in providing an automatic drawing system for CTC station maps based on image recognition for implementing the method of the first aspect, including: A station yard map element management module (101) for centrally managing and maintaining all the element objects involved in the station yard maps of the stations; A station topology module (102) for performing image recognition on the station yard map of the interlocking upper computer interface based on image recognition technology to obtain the types of in-station railway signal object elements and the connection relations of in-station signal devices of the station to be drawn, mapping and associating the connection relations of the in-station signal devices to the in-station map elements corresponding to the in-station railway signal object elements of the station to be drawn, and finally outputting the connection relation table of the basic station yard elements, and the connection relation table is the basis for automatic drawing of the station map; An automatic drawing module (103) for selecting all the element objects involved in the station yard maps of the stations according to the known connection relations between various signal objects of the station, and performing automatic splicing of the selected element objects to obtain a station yard plan view of the station that preliminarily meets the requirements of the CTC station map; A database management module (104) for storing the elements and their static attributes in the drawn station yard plan view of the station based on the database, and performing statistics, verification, and output of the data of each element.
[0012] Preferably, the station yard map element management module (101) includes an element storage sub-module and an element calling sub-module for storing and calling the elements respectively.
[0013] Preferably, the database management module (104) includes a data storage module, a data statistics module, a data verification module, and a data output module, which are respectively used to store the graphic elements and their static attributes in the drawn station yard plan based on the database, and to perform statistics, verification, and output on the data of each graphic element.
[0014] The third aspect of the present invention provides an electronic device, including a processor and a memory. The memory stores multiple instructions, and the processor is configured to read the instructions and execute the method described in the first aspect or the second aspect.
[0015] The fourth aspect of the present invention provides a computer-readable storage medium, which stores multiple instructions, and the multiple instructions can be read and executed by a processor to perform the method described in the first aspect or the second aspect.
[0016] Advantages of the method, system, electronic device, and computer-readable storage medium of the present invention: Realize the automatic drawing of the station diagram, which can effectively solve the problems of error-proneness and long time consumption in manual drawing at the present stage, as shown in: (1) It can automatically identify various station signal objects in the interlocking upper computer interface diagram, including turnouts, tracks, non-turnout sections, approach sections, various signal machines, etc.; (2) It can automatically identify the connection and combination relationships between the same type of objects and different types of objects in the interlocking upper computer interface diagram and output the corresponding connection relationship table; (3) It can automatically retrieve graphic elements to draw the station yard diagram and ensure the alignment between the interconnected linear objects in the station yard diagram; (4) It can automatically alarm and adjust the overlapping parts of the objects in the station yard diagram. Description of the Drawings
[0017] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the related art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 It is a flowchart of the automatic CTC station diagram drawing method based on image recognition according to an embodiment of the present invention; Figure 2 It is a flowchart of the application embodiment method of the automatic CTC station diagram drawing based on image recognition according to an embodiment of the present invention; Figure 3It is an architecture diagram of an automatic CTC station diagram drawing system based on image recognition provided according to an embodiment of the present invention; Figure 4 It is a structure diagram of an electronic device provided according to an embodiment of the present invention. Specific embodiments
[0019] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0020] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0021] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "installation", "connection", and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0022] The functions realized by the method and system for automatically drawing a CTC station diagram based on image recognition of the present invention include: (1) It can automatically identify various station signal objects in the interlocking upper computer interface diagram, including turnouts, tracks, non-switch sections, approach sections, various signal lights, etc.; (2) It can automatically identify the connection and combination relationships between the same type of objects and different types of objects in the interlocking upper computer interface diagram and output the corresponding connection relationship table; (3) It can automatically retrieve graphic elements to draw the station yard diagram and ensure that the interconnected linear objects in the station yard diagram are aligned;
[0023] (4) It can automatically alarm and adjust the overlapping parts of the objects in the station yard diagram. Embodiment 1
[0024] As a preferred embodiment, the automatic splicing of the graphic elements includes: calling of graphic elements, drawing of text, setting of insulating joint positions, setting of signal machine positions, setting of turnout object angles, setting of distances between tracks, and checking and automatic prompting for graphic element intersections and overlaps.
[0025] S41. Based on the database, store the graphic elements and their static attributes in the drawn station yard plan, and perform statistics, verification, and output on the data of each graphic element to facilitate subsequent maintenance and management.
[0026] During the automatic drawing process, the database is a statistical library for calling graphic elements, and the content of the finally drawn station map will be stored in the database in the form of a binary file. By using the database to store, manage, and maintain the relevant binary data of each graphic element in the station yard, the integrity, correctness, and outputability of the station map data can be effectively guaranteed.
[0027] As Figure 2 shown, application example:
[0028] The following is the automatic drawing process of the automatic drawing CAD software:
[0029] The first step: Input of the image of the interlocking upper computer interface.
[0030] The second step: Preprocessing of the image, that is, importing the screenshot image of the upper computer to be recognized into the YOLO model.
[0031] According to the requirements of the YOLO model, it is necessary to perform necessary preprocessing on the screenshot image of the upper computer interface, such as adjusting the screenshot size and resolution.
[0032] The third step: Use the existing trained model to perform target detection on the interlocking upper computer interface.
[0033] Perform target detection on the interlocking upper computer interface. Through image recognition technology, different railway signal objects are recognized in the input image, and the category of each object, the position (x, y, w, h) of the bounding box, and the corresponding confidence score are given.
[0034] The fourth step: On this basis, analyze the detection results and output the basic graphic element connection relationship table.
[0035] Parse the information of the detected railway signal objects extracted by the YOLO model, including category information (such as whether the signal is an outbound signal, an inbound signal, or a shunting signal, whether it is a high post or a low post, above or below the insulation joint, and the orientation is left or right), the coordinate positions of the bounding boxes, and the confidence levels. According to the set threshold, filter out the detection results with low confidence levels to reduce false detections. Finally, based on the detected object information, the system can automatically output the corresponding primitive connection relationship table (as shown in Table 1 below) and store it in the database for subsequent further analysis or application.
[0036] Table 1 Basic Primitive Connection Relationship Table
[0037] Step 5: After the connection relationship table of the basic primitives in the station yard is successfully output, the system enables the automatic station map drawing mode.
[0038] Step 6: After starting the automatic drawing, set the paper size.
[0039] The system automatically sets the upper left corner of the drawing paper as the starting coordinate point (0, 0). The maximum drawing ranges of the X-axis and Y-axis are fixed and large enough to ensure that the station map is drawn on one drawing paper, preventing the loss of station yard primitives outside the drawing frame due to incorrect manual estimation of the paper size resulting in a too small paper. Additionally, for the convenience of subsequent use of the station CTC and the central CTC maps and to prevent excessive occupation of the drawing paper, after the drawing is completed, the size of the drawing paper can be manually adjusted.
[0040] Step 7: According to the read track information of the image, automatically call the track primitives and arrange them as set.
[0041] The fixed order of automatic splicing by the software is to first draw the tracks and then the throats, which can ensure that both sides of all tracks in the station map are aligned, meeting the CTC station map display standard. Generally, the length of the tracks is fixed. The placement positions of the insulation joints at both ends of the tracks are the same as the coordinate positions of the two ends of the tracks. The Y-axis spacing between adjacent tracks is automatically adjusted according to the pre-specified default pixels, which can ensure that the spacing between adjacent tracks is fixed and consistent during automatic placement, facilitating the subsequent splicing of multiple station maps.
[0042] It should be noted that when the software calls any primitive object, the coordinate position of each object in the CTC station yard map will be automatically adjusted to the positive integer (X, Y) position during placement, obtain and verify the relevant parameters of each primitive in the station, process the initial data of the primitive as needed, and store the processed data.
[0043] Step 8: After the tracks are generated, start the automatic drawing of the linear signal objects in the upper / lower throats of the station.
[0044] The linear signal objects involved in the throat area are turnouts and non-turnout sections (the length attribute and color attribute of non-turnout sections in the CTC station yard diagram are fixed during automatic drawing). Since the drawing order of linear objects in the throat part directly affects the complexity of automatic drawing, it is necessary to specify the drawing order of each linear object before drawing. The turnout numbers are generally numbered sequentially from the outside to the inside at both ends of the station using Arabic numerals. Even numbers are used at the end where the up trains arrive, and odd numbers are used at the end where the down trains arrive. Therefore, the default drawing order executed by the system is to draw in the order of decreasing numbers from the up / down throat. If one end involved in the turnout drawing is a non-turnout section, the system will automatically call one or more non-turnout sections according to the actual connection situation, and their drawing is not involved in the size judgment of turnout numbers. Considering that some stations during station reconstruction on site cannot meet the requirement of numbering turnouts sequentially from the outside to the inside, the software also supports manually setting the drawing order corresponding to the turnout numbers in the up / down throat. On this basis, the system will identify the connection method of the turnout as no non-turnout before the turnout, no non-turnout in the normal position, no non-turnout in the reverse position, non-turnout before non-turnout before the turnout, non-turnout before reverse position before the turnout, non-turnout before normal position before the turnout, reverse position reverse position, reverse position normal position, or normal position normal position by combining the turnout connection relationship provided in the primitive connection relationship table of the station yard, and then call the corresponding primitive and automatically set the parameters. Obtain and verify the parameters of each linear signal object primitive in the station, process its initial data, and store the processed data. To ensure that there is no disconnection between primitives, the coordinates of the connection points of two connected objects must be the same. After the automatic drawing of the linear signal objects involved in the throat area is completed, the skeleton of the station plan is roughly formed.
[0045] Step 9: The system automatically inserts the insulator primitive.
[0046] According to the connection relationship table of the basic primitives of the station yard, it can be known which two objects the insulator is located between. Therefore, only the coordinates at this connection point (i.e., the coordinate position of the corresponding turnout end point / non-turnout section end point) need to be found and the insulator is inserted at this coordinate position. The angle parameter of the insulator (including all subtypes) needs to be set according to the actual situation of the connection point read, that is, after identifying the insulator separation point, the placement position of the insulator at the separation point should be perpendicular to the linear object. In addition, the coordinate positions of the insulators at both ends of the approaching and departing intervals are the same as the coordinate positions of the interval section end points.
[0047] Step 10: Enable the automatic drawing of signal primitives in the station yard diagram.
[0048] After the insulation joint is filled, the last drawing step is the automatic drawing part of the signal lights in the station yard plan. Similarly, according to the connection relationship table of the basic station yard primitives, it is obtained at which insulation joint between the separation points of which two linear objects the signal light is located, and then the coordinate position of the signal light is judged according to the position of the insulation joint where it is placed (its X-axis coordinate is generally the X-axis of the insulation joint, and the Y-axis can be set to offset one pixel value up / down (if the signal light is on the insulation joint, use the Y-axis of the upper endpoint of the insulation joint and offset one pixel value upward, if the signal light is below the insulation joint, use the Y-axis of the lower endpoint of the insulation joint and offset one pixel value downward). During the process of calling the signal light primitive, the software will automatically set the static parameters according to the signal light category, signal light name and the orientation of the signal light.
[0049] Step 11: The automatic drawing is completed and the manual beautification and adjustment stage is entered.
[0050] After the automatic drawing stage is completed, the automatically drawn station plan still needs to be further beautified and adjusted to meet the on-line requirements. For example, the approach signal lights of the same throat should preferably be aligned, etc.
[0051] Step 12: Cross-check the primitives to determine whether there is overlap of the primitives. If so, enter the manual adjustment stage in Step 13; if not, directly jump to Step 14.
[0052] During the process of manual beautification, modification and adjustment, it is very easy for the linear primitives of the station plan to overlap. Since the overlap of the linear primitives will not cause errors in the visual effect of the station plan, such errors are not easily detected. However, the overlap of the station plan primitives will affect the subsequent testing of the route data. To prevent such phenomena from occurring, the software will perform a cross-check of the primitives before the station plan is exported. The main contents of the cross-overlap processing of the primitives include: the judgment of the cross-overlap of the primitives, the determination of the redrawing area and the manual partial redrawing.
[0053] Specifically, the system can judge whether there is cross-overlap between the primitive coordinate positions by calling and comparing the position coordinates of the primitives. If there is an intersection of the boundaries of two primitives, it can be considered that the corresponding primitives have cross-overlap. At the same time, the software will prompt the primitive objects involved in the overlap and point to the manual adjustment interface.
[0054] Step 13: Manual adjustment.
[0055] According to the primitive names involved in the overlapping area prompted by the system, at this time in the manual adjustment interface, manually redraw the connection points in the overlapping area. After checking that the correction result is correct, finally obtain the required station yard plan. This technology can not only improve the overall quality of the station plan drawing, but also greatly reduce the time and cost of manual error checking.
[0056] Step 14: Output the CAD station plan and the automatic drawing is completed. Embodiment 2
[0057] As shown in Figure 3 the figure, this embodiment provides an automatic CTC station map drawing system based on image recognition for implementing the method of Embodiment 1, including: A station yard map element management module 101 for centrally managing and maintaining all the graphic element objects involved in the station yard map of the station; A station topology module 102 for performing image recognition on the station yard map of the interlocking upper computer interface based on image recognition technology to obtain the types of in-station railway signal object elements and the connection relationships of in-station signal devices of the station to be drawn, mapping and associating the connection relationships of the in-station signal devices to the in-station graphic elements corresponding to the in-station railway signal object elements of the station to be drawn, and finally outputting the connection relationships of the in-station signal devices in a connection relationship table of basic station yard graphic elements, where the connection relationship table is the basis for automatic station map drawing; An automatic drawing module 103 for selecting all the graphic element objects involved in the station yard map of the station according to the known connection relationships between various signal objects of the station and automatically splicing the selected graphic element objects to obtain a station yard plan view that preliminarily meets the requirements of the CTC station map; A database management module 104 for storing the graphic elements and their static attributes in the drawn station yard plan view based on the database, and performing statistics, verification, and output on the data of each graphic element.
[0058] As a preferred implementation manner, the station yard map element management module 101 includes a graphic element storage sub-module and a graphic element calling sub-module, which are respectively used for storing and calling the graphic elements.
[0059] As a preferred implementation manner, the database management module 104 includes a data storage module, a data statistics module, a data verification module, and a data output module; which are respectively used for storing the graphic elements and their static attributes in the drawn station yard plan view based on the database, and performing statistics, verification, and output on the data of each graphic element.
[0060] As shown in Figure 4 the figure, the present invention also provides an electronic device, including a processor 301 and a memory 302 connected to the processor 301. The memory 302 stores multiple instructions, and the instructions can be loaded and executed by the processor so that the processor can execute the method of Embodiment 1.
[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An automatic drawing method for CTC station diagrams based on image recognition, characterized in that It is used to obtain the connection relationship of station signal equipment objects by using image recognition technology, and based on the connection relationship of station signal equipment objects, realize the automatic drawing of CTC station yard plan by retrieving graphic elements in the background, including: S1, centrally manage and maintain all graphic element objects involved in the station yard diagrams of the station; S2, based on image recognition technology, perform image recognition on the station yard diagram of the interlocking upper computer interface, obtain the types of in-station railway signal object elements and the connection relationship of in-station signal equipment of the station to be drawn, map and associate the connection relationship of the in-station signal equipment to the in-station graphic elements corresponding to the in-station railway signal object elements of the station to be drawn, and finally output the connection relationship table of the station yard basic graphic elements, and the connection relationship table is the basis for automatic station diagram drawing; S3, according to the known connection relationship between each signal object in the station, select all the graphic element objects involved in the station yard diagrams of the station, and perform attribute setting and automatic splicing on the selected graphic element objects to obtain a station yard plan that preliminarily meets the requirements of the CTC station diagram; S4, store the graphic elements and their static attributes in the drawn station yard plan based on the database, and perform statistics, verification and output on the data of each graphic element.
2. The automatic drawing method of CTC station map based on image recognition according to claim 1, characterized in that The S1 includes: S11, store all the graphic element objects involved in the station yard diagrams of the station based on the graphic element storage sub-module; S12, provide visual graphics in the automatic drawing interface, support users to perform operations such as adding, deleting and modifying graphic elements in the graphic element library, and realize the graphical input of non-basic graphic elements of the station yard diagram; S13, during the automatic drawing process, when the background calls the graphic element objects, based on the graphic element call sub-module, set the static attributes of the graphic element objects as needed, including realizing the translation, rotation and connection operations of the graphic elements by setting the position control parameters of the station yard graphic elements.
3. The automatic drawing method of CTC station map based on image recognition according to claim 2, wherein The performing image recognition on the station yard diagram of the interlocking upper computer interface based on image recognition technology includes: performing YOLOv5 image recognition on the station yard diagram of the interlocking upper computer interface based on the YOLOv5 image recognition technology.
4. A method for automatically drawing a CTC station map based on image recognition according to claim 3, characterized in that, The S2 includes: S21, input the image corresponding to the station yard diagram of the interlocking upper computer interface; where the image is an image formed by taking a screenshot of the upper computer interface; S22, preprocess the image according to the requirements of the YOLOv5 model; S23, import the preprocessed screenshot image of the upper computer interface to be recognized, and use the existing trained YOLOv5 model to perform target detection on the screenshot image of the upper computer interface to obtain the detection results, and the detection results include: the types of in-station railway signal object elements and the connection relationship of in-station signal equipment of the station to be drawn, and the mapping association between the connection relationship of the in-station signal equipment and the in-station graphic elements corresponding to the in-station railway signal object elements of the station to be drawn; S24, analyze the detection results and output the connection relationship table representing the connection relationship of the basic graphic elements.
5. A method for automatically drawing a CTC station diagram based on image recognition according to claim 4, characterized in that, The S23 includes: (1)Analyze the YOLOv5 model to extract the information of the detected railway signal objects, including class information, coordinate positions of the bounding boxes, and confidence levels. (2)Filter out the detection results with relatively low confidence levels according to the set threshold.
6. The automatic drawing method of CTC station map based on image recognition according to claim 5, characterized in that The S3 includes: S31. Based on determining the connection relation table of the basic yard primitives, enable the automatic station map drawing mode. S32. Set the size of the drawing paper, where the size of the drawing paper can be manually adjusted after the automatic CTC station map drawing is completed. S33. Read the image track information from the connection relation table of the basic yard primitives, and automatically call the track primitive object based on the image track information and generate tracks according to the setting, including: the length of the track is fixedly set, and the Y-axis spacing between adjacent tracks is automatically adjusted according to the predefined default pixels; when calling the track primitive object, the coordinate positions at both ends of each track object in the CTC yard map will be automatically adjusted to positive integer (X, Y) positions, and the placement positions of the insulation joints at both ends of the track are the same as the coordinate positions of the two ends of the track. Obtain and verify the parameters of each track primitive in the station, process its initial data, and store the processed data. S34. Based on determining the completion of track generation, automatically draw the linear signal objects in the up / down throats of the station; when calling the linear object, its coordinate position will also be automatically adjusted to a positive integer (X, Y) position. Obtain and verify the parameters of the corresponding primitives of each linear object in the station, process its initial data, and store the processed data. S35. Automatically insert the insulation joint primitives according to the connection relation table of the basic yard primitives. The angle parameter of the insulation joint primitive needs to be set according to the actual situation of the read connection points. The placement position of the insulation joint at the separation point is perpendicular to the linear object and close to the insulation joint coordinate positions at both ends of the departure section, which are the same as the coordinate positions of the section endpoints. S36. Obtain the positions of the signal lights based on the connection relation table of the basic yard primitives, and automatically draw the signal light primitives in the yard map according to the positions of the signal lights. S37. Based on the completion of all automatic drawings, perform manual beautification adjustments to obtain a beautified map. S38. Conduct a primitive intersection check on the beautified map to determine whether there are overlapping primitives. If there are overlapping primitives, perform S39; if there are no overlapping primitives, jump to S40. S39. Perform manual adjustments to the beautified map, including: in the manual adjustment interface, manually redraw the connection points in the overlapping area according to the prompts. After checking and correcting the results are correct, finally obtain the required yard map. S40. Directly output the CAD station map of the CTC yard map.
7. A method for automatically drawing a CTC station diagram based on image recognition according to claim 6, characterized in that The automatic splicing of the primitives includes: calling of primitives, drawing of text, setting of insulation joint positions, setting of signal light positions, setting of switch object angles, setting of distances between tracks, and checking and automatic prompting of primitive intersections and overlaps, etc.
8. An automatic CTC station map drawing system based on image recognition, for implementing the method according to any one of claims 1-7, characterized in that Includes: The yard map primitive management module (101) is used for centralized management and maintenance of all the primitive objects involved in the station yard maps of all the stations. The station topology module (102) is used to perform image recognition based on image recognition technology on the station yard map of the interlocking upper computer interface, obtain the types of in-station railway signal object elements and the connection relationships of in-station signal devices of the station to be drawn, map and associate the connection relationships of the in-station signal devices to in-station graphic elements corresponding to the in-station railway signal object elements of the station to be drawn, and finally output the connection relationship table of the basic station yard graphic elements. The connection relationship table is the basis for automatic station map drawing; The automatic drawing module (103) is used to select all the graphic elements involved in the station yard map according to the known connection relationships between various signal objects of the station, and perform automatic splicing of the selected graphic elements to obtain a station yard plan view that preliminarily meets the requirements of the CTC station map; The database management module (104) is used to store the graphic elements and their static attributes in the drawn station yard plan view based on the database, and perform statistics, verification, and output of the data of each graphic element.
9. The CTC station diagram automatic drawing system based on image recognition according to claim 8, characterized in that, The station yard graphic element management module (101) includes a graphic element storage sub-module and a graphic element calling sub-module, which are respectively used to store and call the graphic elements.
10. The CTC station diagram automatic drawing system based on image recognition according to claim 9, characterized in that, The database management module (104) includes a data storage module, a data statistics module, a data verification module, and a data output module; they are respectively used to store the graphic elements and their static attributes in the drawn station yard plan view based on the database, and perform statistics, verification, and output of the data of each graphic element.
Citation Information
Patent Citations
AR-based main equipment overhaul big data rapid modeling system
CN111079951A
Signal equipment primitive data model establishment method and system
CN113696935A
Multi-track train positioning method and system, background server and readable storage medium
CN113706617A
Signal planar graph signal machine identification method and system based on deep learning
CN114445285A
Intelligent station management method and system based on Internet of Things
CN117914912A
Cited By
CTC graph data updating and checking method and system based on tree diagram mapping mechanism
CN121188240A