Automatic labeling method for equipment monitoring graph based on SVG format picture

Through the automated annotation tool, the characteristics of SVG and XML are utilized to achieve efficient and accurate automatic annotation of rail transit equipment monitoring diagrams, solving the problems of large workload and error-prone problems in manual annotation, and significantly improving work efficiency.

CN119415367APending Publication Date: 2025-02-11PANDA ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411359709.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In equipment monitoring systems for rail transit, the prior art requires manual labeling of equipment monitoring SVG pictures, resulting in large workload, strong repetition and prone to errors.

Method used

By creating SVG format image element group templates for station terminal equipment, generating station equipment location layout point tables, and using SVG editability and XML flexibility, we write automated annotation tools to realize automated annotation of equipment monitoring diagrams.

Benefits of technology

It realizes efficient and accurate automatic labeling of equipment monitoring diagrams, reduces the possibility of human errors, and significantly reduces the time and workload of manual labeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415367A_ABST
    Figure CN119415367A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment monitoring graph automatic labeling method based on an SVG format picture. The method comprises the following steps: making an SVG format picture element group template of station terminal equipment; generating a station equipment position layout point table; and automatically marking the equipment monitoring graph of the SVG format picture. According to the method, the editability of the SVG format picture and the flexibility of the xml are utilized, and through automatic script processing, accurate matching and automatic labeling between actual information of each terminal device in the rail transit station and the SVG graphic elements are achieved; through accurate algorithm matching, the possibility of human errors is reduced, and automatic processing is introduced when a large number of devices and complex monitoring diagrams are processed, so that the time and workload of manual labeling are remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer and rail transportation technology, and in particular to an efficient and accurate automatic marking method for equipment monitoring diagrams based on SVG format pictures. Background Art

[0002] In the automatic ticket vending and checking (AFC) system of rail transit, the equipment monitoring system occupies a core position. Its core responsibility is to continuously monitor and analyze the real-time status of all key AFC equipment in the station, which covers core equipment such as automatic ticket machines, semi-automatic ticket machines, and automatic ticket checking machines. In order to achieve the efficiency and intuitiveness of this function, SVG (Scalable Vector Graphics) technology is cleverly integrated into the graphical interface design, becoming an ideal choice for displaying equipment status information.

[0003] With its excellent graphics rendering quality, outstanding scalability and flexibility, SVG technology can easily cope with display requirements of different sizes and resolutions, ensuring the clarity and seamless adaptation of equipment status information. In the equipment monitoring system, SVG is used to accurately draw station layouts, and based on the real station design blueprint, the precise location and real-time status of various equipment are intuitively presented on the screen.

[0004] Through the SVG graphical interface, operators can quickly get an overview of the equipment distribution and real-time status of the entire station, whether it is equipment in normal operation or equipment in a fault alarm state. Furthermore, the interactive nature of SVG allows operators to directly click on the equipment icon on the map to easily access and view detailed equipment status information, such as detailed transaction records, specific fault types and solution prompts, etc., greatly improving operation and maintenance efficiency and response speed.

[0005] During the design process, professional tools are usually used to draw equipment monitoring SVG images. After the station equipment layout is completed, the equipment elements in the diagram need to be marked one by one according to the equipment information to ensure that each equipment element can accurately reflect the basic information of the actual equipment. This step often needs to be completed manually, which is not only labor-intensive and repetitive, but also prone to errors. Summary of the invention

[0006] Purpose of the invention: The purpose of the present invention is to provide an efficient and accurate automatic annotation method for equipment monitoring diagrams based on SVG format images.

[0007] Technical solution: The present invention comprises the following steps:

[0008] (1) Create a template for the image element group in SVG format for station terminal equipment;

[0009] (2) Generate station equipment location layout point table;

[0010] (3) Automatically annotate equipment monitoring diagrams in SVG format;

[0011] The automated labeling steps in step (3) are as follows:

[0012] (3.1) Taking advantage of the editability of SVG format images and the flexibility of XML, the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram is first converted into an XML text description file;

[0013] (3.2) Retrieve the ID of the station name element in the SVG template programmatically and automatically modify its definition description to the specific station name;

[0014] (3.3) Read the equipment information in the equipment location layout point table of the specified station one by one, call the station terminal equipment SVG format image element group template according to the equipment list, and modify the relevant attribute description to complete the equipment layout;

[0015] (3.4) After the automatic marking is completed, the SVG editing tool can be used to make necessary fine-tuning of the layout position to further optimize the display effect, and the verification steps can be checked to ensure that all devices are placed as expected without omissions or errors;

[0016] (3.5) Equipment monitoring requires monitoring of equipment at multiple stations. Follow steps (3.1)-(3.4) in a loop to complete the automated labeling of all stations.

[0017] Furthermore, the step (1) comprises:

[0018] (1.1) Use SVG editing tools to create equipment element group templates based on the station terminal equipment modeling diagram;

[0019] (1.2) The four core elements of the template include variable color elements, static elements, description elements and optional elements, and the SVG editing tool is used to edit the attributes, style and placement of each element;

[0020] (1.3) Combine color-changing, static and optional elements into sub-element groups using SVG tools, and precisely edit the positions of sub-element groups;

[0021] (1.4) Integrate the sub-element group with the description element to form a complete terminal device element group template.

[0022] Furthermore, the variable color elements in step (1.2) are used to flexibly display the device status, with red, green, yellow and white corresponding to the four states of alarm, normal, warning and offline respectively; the static elements are used to maintain a fixed style as the basic framework of the device; the descriptive elements are used to annotate the device information for easy identification; and the optional elements are used to provide additional function instructions for specific devices.

[0023] Furthermore, the step (2) comprises:

[0024] (2.1) Use Excel file to create station equipment location layout point table;

[0025] (2.2) Use SVG editing tools to edit the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram;

[0026] (2.3) Fill in the equipment coordinates in the station equipment location layout point table.

[0027] Furthermore, the key attributes of the equipment recorded in the station equipment location layout point table in step (2.1) include equipment name, equipment ID, equipment type, angle, horizontal coordinate and vertical coordinate.

[0028] Furthermore, the SVG format image template in step (2.2) includes the basic framework of the monitoring map, integrating command buttons, station names, paid area area logos and static description information.

[0029] Furthermore, the station names in all station SVG layout diagrams in the step (2.2) follow unified coding rules. According to the actual equipment layout requirements of the station, multiple equipment placement areas are designed on the SVG template, and the starting coordinate points (x, y) of each area are accurately extracted. The equipment placement areas set on the SVG template are closely linked to the array identifiers in the station equipment location layout point table, thereby achieving accurate mapping from the data table to the SVG layout diagram.

[0030] Furthermore, in the step (2.3), the placement interval between two TVMs is set to tx or ty, the placement interval between two AGMs is set to ax or ay, and the placement interval between two BOMs is set to bx or by, and the equipment layout coordinates are filled in the station equipment position layout point table according to the rules.

[0031] Furthermore, the step (3) automatically and accurately places the station terminal equipment SVG image element group template into the monitoring diagram SVG template by writing an automated annotation tool according to the configuration information in the station equipment location layout point table, thereby generating an equipment monitoring diagram that meets the requirements.

[0032] Furthermore, the step (3.3) calls the corresponding station terminal equipment SVG format image element group template according to the equipment list, and dynamically modifies its attribute description. For the automatic ticket checking machine, the corresponding optional elements are automatically screened and added according to the category and whether the side machine is included. If two automatic ticket checking machines are adjacent and do not include the side machine, the occupied position of the side machine is automatically subtracted during the coordinate calculation.

[0033] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: utilizing the editability of SVG format images and the flexibility of XML, through automated script processing, accurate matching and automatic labeling between the actual information of each terminal device in a rail transit station and SVG graphic elements is achieved; through precise algorithm matching, the possibility of human error is reduced, and the introduction of automated processing when processing a large number of devices and complex monitoring diagrams significantly reduces the time and workload of manual labeling. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 Annotate flowcharts for automation;

[0035] Figure 2 Provide a schematic diagram of the station terminal equipment modeling;

[0036] Figure 3 Set up element group templates for station terminals;

[0037] Figure 4 For the ticket machine element group;

[0038] Figure 5 It is the element group of automatic ticket checking machine;

[0039] Figure 6 For the semi-automatic ticket machine element group;

[0040] Figure 7 This is a schematic diagram of the typical layout of station equipment;

[0041] Figure 8 This is the schematic diagram after automatic annotation; DETAILED DESCRIPTION

[0042] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0043] (1) Production of SVG format image element group template for station terminal equipment.

[0044] (1.1) Use SVG editing tools according to the station terminal equipment modeling diagram, such as Figure 2 As shown, create a device element group template, such as Figure 3 shown.

[0045] (1.2) Figure 4 , Figure 5 , Figure 6 As shown, the station equipment element group template consists of variable color elements, static elements, description elements, and optional elements, and uses SVG editing tools to edit the attributes, style, and placement of each element.

[0046] The variable color elements can generally be displayed in red, green, yellow, and white. Red is used to indicate device alarm, yellow is used to indicate device warning, green is used to indicate device normal, and white is used to indicate device offline.

[0047] The description element is used to mark device information, and is expressed as "device name abbreviation + device serial number", such as: TVM1, which means the ticket vending machine with serial number 1.

[0048] Optional elements are mainly used in automatic ticket machines, such as Figure 4 As described above, optional elements 1 and 2 respectively indicate that entry and exit are allowed, and optional element 3 is used to indicate that the component is a side machine of an automatic ticket checking machine.

[0049] The encoding rules for Id and td-tag need to be uniformly defined, and the encoding rules are defined as follows:

[0050] a) The coding rule of the variable color element ID is "xxxxxxx00", the coding rule of the static element ID is "static-ei-xxxxxxx-nn", and the coding rule of the description element ID is "text-xxxxxxx".

[0051] The id encoding rule of the optional element 1 of the automatic ticket gate is "in-xxxxxxx", the id encoding rule of the optional element 2 of the automatic ticket gate is "out-Xxxxxxx", and the id encoding rule of the optional element 3 of the automatic ticket gate is "edge-xxxxxxx".

[0052] b) The id-tag encoding rule of the variable color element is "tag-color-xxxxxxx", the id-tag encoding rule of the static element is "tag-static-ei-xxxxxxx-nn", and the id-tag encoding rule of the description element is "tag-text-xxxxxxx".

[0053] The id encoding rule of the optional element 1 of the automatic ticket gate is "tag-in-xxxxxxx", the id encoding rule of the optional element 2 of the automatic ticket gate is "tag-out-xxxxxxx", and the id encoding rule of the optional element 3 of the automatic ticket gate is "tag-edge-xxxxxxx".

[0054] c) In the above definition, “xxxxxxx” is the station terminal equipment ID code, and “nn” is the component serial number.

[0055] (1.3) Use SVG editing tools to combine variable color elements, static elements, and optional elements into sub-element groups and edit their placement.

[0056] The coding rules of the id (number), id-tag (number description), and onclick (event processing call) of the sub-element group need to be uniformly defined, and the coding rules are defined as follows:

[0057] d) The ID coding rule is "xxxxxxx", where "xxxxxxx" is the ID code of the station terminal equipment;

[0058] e) onclick call definition is "try{parent.1oadDevice(evt,xx);}catch(e){}", where "xx" is the station terminal device type definition;

[0059] f) The id-tag encoding rule is "ei-body".

[0060] (1.4) Use SVG editing tools to combine the sub-element group and the description element into a terminal device element group template.

[0061] In particular, the element group template id needs to be uniformly defined, which is defined as the annotation information describing the element, expressed as "device name abbreviation + device serial number", such as: TVM 01, which means the ticket vending machine with serial number 1.

[0062] In particular, in order to better automate the annotation process, when generating the template according to the above process, when naming the terminal device element group template id, the device serial number is set to "00" and the device id code is set to "00000000".

[0063] (2) Generate a station equipment location layout point table.

[0064] (2.1) The station equipment location layout point table is stored in an Excel file. The content should include: equipment name, equipment ID, equipment type, angle, horizontal coordinate (x), vertical coordinate (y) and other information. The equipment information filling sample is shown in Table 1:

[0065] Table 1: Sample equipment information table

[0066]

[0067]

[0068] (2.2) Figure 7As shown, the SVG editing tool is used to edit the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram. The command buttons, station names, paid area area logos, static description information, etc. on the template are all edited by the SVG editing tool.

[0069] The id code of the station name of all station SVG layouts is "station-id", and the code of the id-tag is "station-id-tag".

[0070] According to the layout position of the station equipment, the equipment placement area is designed and the starting coordinate point (x, y) of the area is read. Taking the typical station layout as an example, 7 groups of equipment layout areas are set, and the corresponding coordinates (x1, y1), (x2, y2), (x3, y3), (x4, y4), (x5, y5), (x6, y6), (x7, y7) are obtained respectively; these 7 groups of equipment layout areas correspond to the array identifiers in the station equipment location layout point table. That is, the equipment in array A is placed in area 1 in order, the equipment in array B is placed in area 2 in order, and the other arrays are placed in the same way.

[0071] (2.3) Fill in the equipment coordinates in the station equipment location layout point table.

[0072] Set the placement interval between two TVMs to tx or ty, the placement interval between two AGMs to ax or ay, and the placement interval between two BOMs to bx or by. According to these rules, fill in the equipment layout coordinates into the station equipment location layout point table. The station coordinate filling sample table is shown in Table 2:

[0073] Table 2: Sample station coordinates

[0074]

[0075]

[0076] (3) Automatic annotation of equipment monitoring diagrams in SVG format.

[0077] Use Python or other programming languages ​​to write an automatic annotation tool, edit it based on the above-mentioned automatic ticket vending system station equipment monitoring diagram SVG format picture template, and place the station terminal equipment SVG format picture element group template to the specified position of the automatic ticket vending system station equipment monitoring diagram SVG format picture template according to the configuration information in the station equipment location layout point table, such as Figure 8 shown.

[0078] like Figure 1 As shown, the steps of automatic annotation are as follows:

[0079] (3.1) Taking advantage of the editability of SVG format images and the flexibility of XML (Extensible Markup Language), the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram is converted into an XML file described in this article.

[0080] (3.2) By retrieving the station name ID, the station name element is retrieved and its definition description is modified to a specific station name, such as: XX station.

[0081] (3.3) Read the equipment information in the equipment location layout point table of the specified station one by one, call the station terminal equipment SVG format image element group template according to the equipment list, and modify the relevant attribute description to complete the equipment layout.

[0082] It is necessary to modify the Id, td-tag, onclick and other information of each element in the element group according to the encoding rules of each element.

[0083] When deploying automatic ticket gates, you need to filter the optional elements according to the type of automatic ticket gate. That is, only optional element 1 is added to the entry automatic ticket gate, and only optional element 2 is added to the exit automatic ticket gate. Both optional elements 1 and 2 need to be added to the bidirectional automatic ticket gate. If the automatic ticket gate includes a side machine, optional element 3 also needs to be added.

[0084] When placing the automatic ticket checking machine, if the side machines are not included in the equipment placement for two days, the occupied position of the side machines should be subtracted when calculating the coordinates.

[0085] (3.4) After the automatic marking is completed, use the SVG editing tool to fine-tune the layout position.

[0086] (3.5) Equipment monitoring requires monitoring of equipment at multiple stations, and the above process is executed cyclically to complete the automatic labeling of all stations.

Claims

1. A method for automatically labeling equipment monitoring diagrams based on SVG format images, characterized in that: The steps include: (1) Create a template for the image element group in SVG format for station terminal equipment; (2) Generate station equipment location layout point table; (3) Automatically annotate equipment monitoring diagrams in SVG format; The automated labeling steps in step (3) are as follows: (3.1) Taking advantage of the editability of SVG format images and the flexibility of XML, the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram is first converted into an XML text description file; (3.2) Retrieve the ID of the station name element in the SVG template programmatically and automatically modify its definition description to the specific station name; (3.3) Read the equipment information in the equipment location layout point table of the specified station one by one, call the station terminal equipment SVG format image element group template according to the equipment list, and modify the relevant attribute description to complete the equipment layout; (3.4) After the automatic marking is completed, the SVG editing tool can be used to make necessary fine-tuning of the layout position to further optimize the display effect, and the verification steps can be checked to ensure that all devices are placed as expected without omissions or errors; (3.5) Equipment monitoring requires monitoring of equipment at multiple stations. Follow steps (3.1)-(3.4) in a loop to complete the automated labeling of all stations.

2. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 1 is characterized in that: The step (1) comprises: (1.1) Use SVG editing tools to create equipment element group templates based on the station terminal equipment modeling diagram; (1.2) The four core elements of the template include variable color elements, static elements, description elements and optional elements, and the SVG editing tool is used to edit the attributes, style and placement of each element; (1.3) Combine color-changing, static and optional elements into sub-element groups using SVG tools, and precisely edit the positions of sub-element groups; (1.4) Integrate the sub-element group with the description element to form a complete terminal device element group template.

3. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 2 is characterized in that: In the step (1.2), the variable color elements are used to flexibly display the device status, and red, green, yellow and white correspond to the four states of alarm, normal, warning and offline respectively; the static elements are used to maintain a fixed style as the basic framework of the device; the descriptive elements are used to mark the device information for easy identification; the optional elements are used to provide additional function instructions for specific devices.

4. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 1 is characterized in that: The step (2) comprises: (2.1) Use Excel file to create station equipment location layout point table; (2.2) Use SVG editing tools to edit the SVG format image template of the automatic ticket vending and checking system station equipment monitoring diagram; (2.3) Fill in the equipment coordinates in the station equipment location layout point table.

5. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 4 is characterized in that: The station equipment location layout point table in step (2.1) records the key attributes of the equipment, including equipment name, equipment ID, equipment type, angle, horizontal coordinate and vertical coordinate.

6. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 4 is characterized in that: The SVG format image template in step (2.2) includes the basic framework of the monitoring map, integrating command buttons, station names, paid area area logos and static description information.

7. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 4 is characterized in that: In the step (2.2), the station names in all station SVG layout diagrams follow unified coding rules. According to the actual equipment layout requirements of the station, multiple equipment placement areas are designed on the SVG template, and the starting coordinate points (x, y) of each area are accurately extracted. The equipment placement areas set on the SVG template are closely linked to the array identifiers in the station equipment location layout point table, realizing accurate mapping from the data table to the SVG layout diagram.

8. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 4 is characterized in that: In the step (2.3), the placement interval between two TVMs is set to tx or ty, the placement interval between two AGMs is set to ax or ay, and the placement interval between two BOMs is set to bx or by, and the equipment layout coordinates are filled in the station equipment location layout point table according to the rules.

9. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 1 is characterized in that: The step (3) is to write an automated annotation tool to automatically and accurately place the station terminal equipment SVG image element group template into the monitoring diagram SVG template according to the configuration information in the station equipment location layout point table, thereby generating an equipment monitoring diagram that meets the requirements.

10. The automatic marking method for equipment monitoring diagram based on SVG format pictures according to claim 1 is characterized in that: The step (3.3) calls the corresponding station terminal equipment SVG format image element group template according to the equipment list, and dynamically modifies its attribute description. For the automatic ticket checking machine, the corresponding optional elements are automatically screened and added according to the category and whether the side machine is included. If two automatic ticket checking machines are adjacent and do not include the side machine, the occupied position of the side machine is automatically subtracted during the coordinate calculation.