A device bezel acquisition method for an ATS system and a storage medium

CN115904590BActive Publication Date: 2026-02-03HUNAN CRRC TIMES SIGNAL & COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211501784.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2026-02-03
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

[0004]对于具有比较复杂结构的设备,比如交叉渡线处的道岔(见图1),或者场段的同一个物理区段包含多个道岔,并且道岔的物理尺寸比较大,或者根据线路的符号显示规则,有些设备的图元不在连续的空间上,以上几种情景,通过观察站场图,无法快速直观地看到某个道岔设备的范围,不利于用户基于站场图进行运营工作

Benefits of technology

[0038]本发明用于ATS系统的设备边框获取方法及存储介质,原理简单、智能化程度高、高效、可以得到清晰准确图形边界,本发明可以获取站场图设备的边框,优化站场图软件的视觉效果,并可以根据配置或者程序设置,将设备的边框定制化显示出来。对于设备包含多边形,非0角度和非90角度的直线,非0角度的矩形和文字等情况使用本算法都可以得到清晰的设备外边框。对于非常复杂的设备比如道岔,拥有众多的图元,同时考虑定位、反位和岔前子设备,使用本算法,也可以得到精准的设备外边框。并且,通过对显示的配置,可以定制化显示边框,以虚线、实线、指定线宽、指定颜色显示。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115904590B_ABST
    Figure CN115904590B_ABST
Patent Text Reader

Abstract

The application discloses a device frame acquisition method for an ATS system and a storage medium, and the steps of the method comprise the following steps: step S1: starting a program, judging whether a frame display variable is true, if yes, executing step S2, otherwise ending the program; step S2: judging whether a current device type needs to display a frame, if yes, executing step S3, otherwise ending the program; step S3: obtaining all graphics, processing the graphics one by one, obtaining a rectangular frame union and a frame graphics set of all the graphics; step S4: obtaining a final frame according to the frame union and the frame graphics set; and step S5: displaying the frame according to a symbol display rule. The storage medium is used to realize the above method. The application has the advantages of simple principle, high intelligent degree, high efficiency, clear and accurate graphics boundary and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention mainly relates to the field of communication technology for urban rail transit systems, and specifically to a method for obtaining the device frame and storage medium for an ATS system. Background Technology

[0002] Currently, urban rail transit signaling systems generally employ Communication-Based Train Control (CBTC) technology. The Automatic Train Control (ATS) system, as a crucial component of the CBTC system, primarily functions as train identification and tracking, train adjustment control, monitoring, and alarms. The ATS system mainly consists of server software and client software, with the station layout client software having the most user interaction. On the station layout client software interface, all equipment in the entire station can be viewed, and commands can be issued and controlled to these devices.

[0003] In the aforementioned systems and software, there are numerous station map devices, some of which have very complex structures. Each device contains a large number of graphic elements, which can be used to display different states of the device. The structure of each graphic element may be different, and may be in the form of circles, lines, rectangles, polygons, text, etc.

[0004] For equipment with relatively complex structures, such as turnouts at crossovers (see...), Figure 1 In some cases, the same physical section of the track may contain multiple turnouts, and the physical size of the turnouts may be relatively large. Alternatively, according to the symbol display rules of the track, the graphic elements of some equipment may not be in a continuous space. In these scenarios, it is not possible to quickly and intuitively see the range of a certain turnout equipment by observing the track map, which is not conducive to users carrying out operation work based on the track map. Summary of the Invention

[0005] The technical problem to be solved by this invention is: in view of the technical problems existing in the prior art, this invention provides a device border acquisition method and storage medium for ATS system that is simple in principle, highly intelligent, efficient, and can obtain clear and accurate graphic boundaries.

[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution:

[0007] A method for obtaining device borders in an ATS system, comprising the following steps:

[0008] Step S1: The program starts and checks if the border display variable is true. If it is true, proceed to step S2; otherwise, the program ends.

[0009] Step S2: Determine whether the current device type requires a border to be displayed. If true, proceed to step S3; otherwise, the program ends.

[0010] Step S3: Obtain all primitives, process each primitive one by one, and obtain the union of the rectangular borders of all primitives and the set of border primitives;

[0011] Step S4: Obtain the final border based on the border union and the border primitive set;

[0012] Step S5: For the obtained border, display the border according to the symbol display rules.

[0013] As a further improvement to the method of the present invention: In step S1, the user selects whether all devices in the station map display borders. Only when the border display variable is set to true does it mean that all devices in the station map may display borders.

[0014] As a further improvement to the method of the present invention: in step S2, a configuration file is generated according to the project requirements, the configuration file recording and indicating the device type that needs to display the border; or, according to the project requirements, it is converted into an input configuration file and automatically processed by the program.

[0015] As a further improvement to the method of the present invention: during the program operation, the display settings are used to modify whether the border is displayed in real time.

[0016] As a further improvement to the method of the present invention: the process of step S3 includes:

[0017] Step S301: The program starts, and the union variable U, the primitive set variable I, the region variable R, and the number of primitives that are not 0 degrees and not 90 degrees are initialized.

[0018] Step S302: Traverse the primitives. If the primitive traversal is complete, proceed to step S306; otherwise, proceed to step S303.

[0019] Step S303: Does the current graphic element conform to the rules? If it conforms to the rules, proceed to step S304; otherwise, proceed to step S302.

[0020] Step S304: U = U union, R = R union, I set is added to the current primitive; the U union is the initial boundary of the current primitive, and the R union is the current boundary of the current primitive;

[0021] Step S305: Determine whether the current primitive angle is neither 0 degrees nor 90 degrees. If true, then C++.

[0022] Step S306: If C>0, declare and initialize a polygonal primitive; otherwise, declare and initialize a rectangular primitive, and update the station map primitives within the union set U; the program ends.

[0023] As a further improvement to the method of the present invention: the union variable U is used to obtain the refresh area, the union variable U uses the initial boundary of the primitive, and when updating the area, the translation and scaling transformation will be called again to update the current area.

[0024] As a further improvement to the method of the present invention: the region variable R is used to obtain the true boundary of the device. For all devices with a primitive of 0 degrees or 90 degrees, this variable is not required. The region variable R uses the current boundary of the primitive after translation and scaling transformation. After obtaining the current total boundary, no further transformation is required.

[0025] As a further improvement to the method of the present invention: in step S3, the process of obtaining the set of border primitives includes obtaining rectangular borders and obtaining polygonal borders.

[0026] As a further improvement to the method of the present invention: when obtaining the polygonal border, the process includes:

[0027] Step S3001: The program starts and obtains the rectangle Rec based on the region variable R;

[0028] Step S3002: Define Bitmap and initialize Bitmap using Rec information;

[0029] Step S3003: Traverse the primitives. If the primitive traversal is complete, proceed to step S3005; otherwise, proceed to step S3004.

[0030] Step S3004: Draw according to different primitive types;

[0031] Step S3005: Use Image to obtain Bitmap information;

[0032] Step S3006: Use an algorithm to obtain the boundary points of the primitives;

[0033] Step S3007: Process boundary points and perform transformations;

[0034] Step S3008: Program ends.

[0035] As a further improvement to the method of the present invention: in step S3006, edge detection operators of image processing are used to obtain primitive boundaries; the device boundary is represented as a set of points, and the edge points are concatenated using Freeman coding; then the display configuration content is input, and the border is displayed in a predefined manner.

[0036] The present invention further provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.

[0037] Compared with the prior art, the advantages of the present invention are as follows:

[0038] This invention relates to a method and storage medium for obtaining equipment borders in an ATS system. It is simple in principle, highly intelligent, efficient, and provides clear and accurate graphic boundaries. This invention can acquire the borders of equipment in station maps, optimize the visual effects of station map software, and customize the display of equipment borders according to configuration or program settings. For equipment containing polygons, lines with non-zero angles and non-90-degree angles, rectangles with non-zero angles, and text, this algorithm can obtain clear equipment outer borders. For very complex equipment such as turnouts with numerous graphic elements, considering positioning, reversing, and sub-equipment before the turnout, this algorithm can also obtain accurate equipment outer borders. Furthermore, through display configuration, the displayed borders can be customized, displaying them as dashed lines, solid lines, specified line widths, and specified colors. Attached Figure Description

[0039] Figure 1 This is a schematic diagram of the turnout equipment in the existing technology of the station.

[0040] Figure 2 This is a flowchart illustrating the method of the present invention.

[0041] Figure 3 This is a flowchart illustrating the scheme for obtaining the union of borders in a specific application example of the present invention.

[0042] Figure 4 This is a flowchart illustrating the method for obtaining polygonal device borders in a specific application example of the present invention. Detailed Implementation

[0043] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] like Figure 2 As shown, the device frame acquisition method for an ATS system of the present invention includes the following steps:

[0045] Step S1: The program starts and checks if the border display variable is true. If it is true, proceed to step S2; otherwise, the program ends.

[0046] Step S2: Determine whether the current device type requires a border to be displayed. If true, proceed to step S3; otherwise, the program ends.

[0047] Step S3: Obtain all primitives, process each primitive one by one, and obtain the union of the rectangular borders of all primitives and the set of border primitives;

[0048] Step S4: Obtain the final border based on the border union and the border primitive set;

[0049] Step S5: For the obtained border, display the border according to the symbol display rules.

[0050] In a specific application example, in step S1, according to different needs or times, the user can choose whether all devices in the station map display borders. Only when the border display variable is set to true does it mean that all devices in the station map may display borders.

[0051] In a specific application example, in step S2, according to the actual needs of the project, not all devices need to display borders. Complex types of devices, such as turnouts, generally need to display borders, but devices such as stations, platforms, and alarm lights generally do not need to display borders.

[0052] Therefore, as a preferred embodiment, the present invention can further generate a configuration file according to project requirements, wherein the configuration file records and specifies the device type that needs to display the border; or, if the project has more detailed requirements, specifically whether a certain device needs to display or not display the border, the present invention can further convert and generate an input configuration file according to project requirements, which will be automatically processed by the program.

[0053] Furthermore, during program execution, the present invention can also modify whether the border is displayed in real time through display settings.

[0054] Since each device is composed of multiple graphic elements, the geometric composition of these elements may include circles, lines, polygons, rectangles, text, etc. To meet the requirements of the site map display, each graphic element has multiple attributes. Lines and rectangles have angles, while polygons include shapes such as Bézier curves, arcs, and paths. Text includes attributes such as font, color, and position. Different border union acquisition schemes are designed based on whether the graphic elements contain elements with non-0-degree and non-90-degree angles.

[0055] For this reason, see Figure 3 In a specific application example, the process in step S3 includes:

[0056] Step S301: The program starts, and the union variable U, the primitive set variable I, the region variable R, and the number of primitives that are not 0 degrees and not 90 degrees are initialized.

[0057] Step S302: Traverse the primitives. If the primitive traversal is complete, proceed to step S306; otherwise, proceed to step S303.

[0058] Step S303: Does the current graphic element conform to the rules? If it conforms to the rules, proceed to step S304; otherwise, proceed to step S302.

[0059] Step S304: U = union of U (initial boundary of the current primitive), R = union of R (current boundary of the current primitive), I set is added to the current primitive;

[0060] Step S305: Determine whether the current primitive angle is neither 0 degrees nor 90 degrees. If true, then C++.

[0061] Step S306: If C>0, declare and initialize a polygonal primitive; otherwise, declare and initialize a rectangular primitive, and update the station map primitives within the union set U; the program ends.

[0062] In specific application examples, the above union variable U is mainly used to obtain the refresh area. In order to improve system performance, it is necessary to minimize the refresh area. The union variable U uses the initial boundary of the primitive. When updating the area, the translation and scaling transformation will be called again to update the current area.

[0063] In specific application examples, the aforementioned region variable R is used to obtain the true boundary of the device. For devices where all primitives are 0 degrees or 90 degrees, this variable is not needed. The region variable R uses the current boundary of the primitives after translation and scaling transformations. Because the structure is relatively complex, using the current boundary eliminates the need for further transformations after obtaining the current total boundary. If the device contains primitives that are neither 0 degrees nor 90 degrees, obtaining the outer boundary of the device cannot be achieved using ordinary union methods or some basic graphic transformation methods. Therefore, polygonal primitives are required, and an algorithm must be designed to achieve this.

[0064] In a specific application example, the process of obtaining the border primitive set in step S3 includes obtaining the rectangular border and obtaining the polygonal border.

[0065] When obtaining the rectangular border, simply use the information described above. After obtaining the border, create an input file based on the display configuration obtained from the project requirements, or edit the display configuration items through the site map interface, and finally display it on the interface.

[0066] Obtaining polygon bounding boxes is a more complex process, based on the union data, region data, and primitive set obtained as described above. See also... Figure 4 The specific process is as follows:

[0067] Step S3001: The program starts and obtains the rectangle Rec based on the region variable R;

[0068] Step S3002: Define Bitmap and initialize Bitmap using Rec information;

[0069] Step S3003: Traverse the primitives. If the primitive traversal is complete, proceed to step S3005; otherwise, proceed to step S3004.

[0070] Step S3004: Draw according to different primitive types;

[0071] Step S3005: Use Image to obtain Bitmap information;

[0072] Step S3006: Use an algorithm to obtain the boundary points of the primitives;

[0073] Step S3007: Process boundary points and perform transformations;

[0074] Step S3008: Program ends.

[0075] In a specific application example, step S3004 involves drawing according to different primitive types, mainly including rectangles, lines, polygons, circles, and text. Since drawing on a Bitmap requires translation transformation to remove the influence of the top-left corner coordinates of the region variable R. A uniform color configuration is used during drawing. Polygons can be drawn using Bézier curves or paths and then filled. In the specific code implementation, line primitives can be left unprocessed or drawn and filled as rectangles.

[0076] In a specific application example, in step S3006, an algorithm is used to obtain the primitive boundaries. Depending on the actual needs, this invention can choose to use boundary acquisition methods from image processing, such as the Canny operator, Laplacian operator, Sobel operator, etc. Using this method, the image boundaries can be initially obtained. Because the Bitmap has undergone relatively good processing and reconstruction in the early stages, using edge detection operators in image processing can yield relatively good boundaries, which is a preferred solution.

[0077] In specific application examples, edge detection operators can obtain relatively good boundaries. However, if more customized boundary display is desired, this invention further represents the device boundary as a set of points. This invention uses Freeman coding to concatenate the edge points, and then inputs the display configuration content to display the border in a predefined manner.

[0078] In the process described above in this invention, the image of the device is first extracted, then denoised, redrawn, and finally, the contour is extracted, represented by the contour chain code, and redrawn. The image structure of the device constructed by this invention is complex, and the output accuracy is very high.

[0079] The present invention further provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.

[0080] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should be considered within the scope of protection of the present invention.

Claims

1. A method for obtaining the device frame of an ATS system, characterized in that the steps include... include: Step S1: The program starts and checks if the border display variable is true. If it is true, proceed to step S2; otherwise, the program ends. Step S2: Determine whether the current device type requires a border to be displayed. If true, proceed to step S3; otherwise, the program ends. Step S3: Obtain all primitives, process each primitive one by one, and obtain the union of the rectangular borders of all primitives and the set of border primitives; Step S4: Obtain the final border based on the union of the rectangular borders and the border primitive set; Step S5: For the obtained border, display the border according to the symbol display rules.

2. The method for obtaining the device frame of an ATS system according to claim 1, characterized in that, In step S2, a configuration file is generated according to project requirements, which records and indicates the device type that needs to display the border; or, the program automatically processes the configuration file and converts it into an input configuration file according to project requirements.

3. The method for obtaining the device frame of an ATS system according to claim 2, characterized in that, During program execution, the display settings can be adjusted in real time to determine whether the border is displayed.

4. The method for obtaining the device frame of an ATS system according to any one of claims 1-3, characterized in that, The process of step S3 includes: Step S301: The program starts, and the union variable U, the primitive set variable I, the region variable R, and the number of primitives that are not 0 degrees and not 90 degrees are initialized. Step S302: Traverse the primitives. If the primitive traversal is complete, proceed to step S306; otherwise, proceed to step S303. Step S303: Does the current graphic element conform to the rules? If it conforms to the rules, proceed to step S304; otherwise, proceed to step S302. Step S304: U = U union, R = R union, I set is added to the current primitive; the U union is the initial boundary of the current primitive, and the R union is the current boundary of the current primitive; Step S305: Determine whether the current primitive angle is neither 0 degrees nor 90 degrees. If true, then C++. Step S306: If C>0, declare and initialize a polygonal primitive; otherwise, declare and initialize a rectangular primitive, and update the station map primitives within the union set U; the program ends.

5. The method for obtaining the device frame of an ATS system according to claim 4, characterized in that, The union variable U is used to obtain the refresh area. The union variable U uses the initial boundary of the primitive. When updating the area, the translation and scaling transformation will be called again to update the current area.

6. The method for obtaining the device frame of an ATS system according to claim 4, characterized in that, The region variable R is used to obtain the actual boundary of the device. For all devices with a primitive of 0 degrees or 90 degrees, this variable is not needed. The region variable R uses the current boundary of the primitive after translation and scaling transformation. After obtaining the current total boundary, no further transformation is needed.

7. The method for obtaining the device frame of an ATS system according to any one of claims 1-3, characterized in that, In step S3, the process of obtaining the border primitive set includes obtaining rectangular borders and obtaining polygonal borders.

8. The method for obtaining the device frame of an ATS system according to claim 7, characterized in that, When obtaining the polygon bounding box, the process includes: Step S3001: The program starts and obtains the rectangle Rec based on the region variable R; Step S3002: Define Bitmap and initialize Bitmap using Rec information; Step S3003: Traverse the primitives. If the primitive traversal is complete, proceed to step S3005; otherwise, proceed to step S3004. Step S3004: Draw borders according to different primitive types; Step S3005: Use Image to obtain Bitmap information; Step S3006: Use an algorithm to obtain the boundary points of the primitives; Step S3007: Process boundary points and perform transformations; Step S3008: Program ends; In steps S3006 and S3007, edge detection operators of image processing are used to obtain primitive boundaries; the device boundary is represented as a set of points, and the edge points are concatenated using Freeman coding. Then, the display configuration content is input, and the border is displayed in a predefined manner.

9. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in any one of claims 1-8.

Citation Information

Patent Citations

  • ATS (Automatic Train Supervision) interface presentation method and apparatus based on integrated supervisory control platform

    CN108874493A

  • Full-life-cycle-oriented rail electric station field graph drawing and displaying method

    CN114519755A