Method and device for generating two-dimensional station yard graph
By generating and dynamically displaying two-dimensional station site maps, combined with real-time location data of RTK equipment, the problems of low manual monitoring efficiency and lag in safety hazard discovery in railway construction management are solved, and more efficient and safe construction management is achieved.
Patent Information
- Application Number
- CN202510267386.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-06-06
AI Technical Summary
In railway construction management, the low efficiency of manual monitoring and the delay in safety hazard discovery lead to construction safety risks and transportation safety uncertainty.
By obtaining the image data and image control points of the target area, a three-dimensional reconstruction algorithm is used to generate orthophoto images, and a data file containing device information is generated in the site plan and interval plan. Then draw a two-dimensional station map, and obtain real-time location data through RTK equipment to dynamically display personnel and locomotive location information.
Real-time monitoring and dynamic display of railway construction sites have been achieved, the safety and efficiency of construction management have been improved, and safety hazards have been promptly warned and dealt with.
Smart Images

Figure CN120107429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of aerial maps and displayed two-dimensional images, and in particular to a method and device for generating a two-dimensional station map. Background Art
[0002] The railway construction management system of an enterprise covers multiple departments, multiple procedures, multiple types of work and a joint management system of many personnel. However, judging from the current status of the construction management of the enterprise railway, the construction production site operation management still adopts the traditional manual organization mode, and the protection work of the construction site also mainly relies on manual monitoring. This management mode has many hidden dangers: on the one hand, if the operator violates the rules or exceeds the scope of construction, it is difficult to achieve timely warning, which increases the safety risk of construction; on the other hand, the locomotive driver cannot know the specific location information of the operator on the line ahead, and the driving safety depends to a large extent on the driver's vision judgment, which undoubtedly brings great uncertainty to the safety of railway transportation. In addition, the station guard can only confirm the location and status of the operator through timed intercoms, and cannot obtain the location and status of the operator in real time and feedback accurate information. This greatly weakens the safety protection efficiency of the construction site, making it difficult for construction management to meet the requirements of refinement and efficiency, and urgently needs to be optimized and improved. Summary of the invention
[0003] The present invention provides a method and device for generating a two-dimensional station yard map, which are used to solve the core problems of low efficiency of manual monitoring and delayed discovery of potential safety hazards in railway construction management, thereby improving the efficiency of railway construction management.
[0004] In a first aspect, the present invention provides a method for generating a two-dimensional station map, comprising:
[0005] S1, obtaining image data and image control points of the target area;
[0006] S2, generating an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points;
[0007] S3, marking in the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generating a data file including the equipment information;
[0008] S4, drawing a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generating a structured file containing the equipment information;
[0009] S5, redrawing the two-dimensional station map according to the structured file, integrating the real-time position data of the RTK equipment, and dynamically displaying the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
[0010] Optionally, step S1 includes:
[0011] S11, arranging the image control points in the target area based on the surveying area in the acquired survey area data;
[0012] S12, photographing the target area by a drone to obtain the image data of the target area;
[0013] S13, detecting whether the image data has an adjacent image overlap lower than a preset overlap threshold, and / or an image average gradient amplitude lower than a preset amplitude threshold; if so, returning to step S11; if not, executing step S2.
[0014] Optionally, before generating the data file including the device information in step S3, the method further includes:
[0015] If the geographical coordinates in the collected device information are longitude and latitude, they are converted into the CGCS2000 coordinate system.
[0016] Optionally, step S4 includes:
[0017] Extracting track sections and equipment points in the station plan and / or the section plan;
[0018] Drawing the track section by splicing line segment graphics; and drawing the equipment point by corresponding graphics;
[0019] The device point is associated with the coordinate point information and the device information in the data file to obtain the structured file including the device information and the graphic information.
[0020] Optionally, step S5 includes:
[0021] S51, obtaining the real-time personnel position and the real-time locomotive position through the RTK device;
[0022] S52, dynamically redrawing the two-dimensional station map according to the structured file, and dynamically displaying it in combination with the real-time personnel position and the real-time locomotive position;
[0023] S53: If the actual distance between the real-time personnel position and the real-time locomotive position is less than the preset safety distance, it is determined that there is a safety hazard and a pre-alarm is triggered.
[0024] Optionally, step S52 includes:
[0025] Calculating the pixel range of the circumscribed rectangle according to the scaling ratio of the station plan or the interval plan;
[0026] Within the pixel range, converting the real-time personnel position and the real-time locomotive position into pixel coordinates;
[0027] A two-dimensional station map is dynamically drawn, and the pixel coordinates of the real-time personnel position and the real-time locomotive position are superimposed for dynamic display.
[0028] In a second aspect, the present invention provides a device for generating a two-dimensional station map, comprising:
[0029] An acquisition module is used to acquire image data and image control points of a target area;
[0030] An orthophoto generation module, used to generate an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points;
[0031] A data file generation module, used to mark the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generate a data file including the equipment information;
[0032] A structured file generating module, used to draw a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generate a structured file containing the equipment information;
[0033] The dynamic display module is used to redraw the two-dimensional station map according to the structured file, and integrate the real-time position data of the RTK equipment to dynamically display the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
[0034] Optionally, the acquisition module includes:
[0035] A layout submodule, used for arranging the image control points in the target area based on the surveying area in the acquired survey area data;
[0036] An image data acquisition submodule is used to photograph the target area through a drone to obtain the image data of the target area;
[0037] The detection submodule is used to detect whether the image data has adjacent image overlap lower than a preset overlap threshold, and / or the image average gradient amplitude lower than a preset amplitude threshold; if so, the layout submodule is executed; if not, the orthophoto generation module is executed.
[0038] Optionally, the data file generating module includes:
[0039] The conversion submodule is used to convert the geographical coordinates in the collected device information into the CGCS2000 coordinate system when the geographical coordinates are longitude and latitude.
[0040] Optionally, the structured document generation module includes:
[0041] An extraction submodule, used for extracting track sections and equipment points in the station plan and / or the section plan;
[0042] A drawing submodule, used for drawing the track section by splicing line segment graphics; and drawing the equipment point by corresponding graphics;
[0043] The association submodule is used to associate the device point with the coordinate point information in the data file and the device information to obtain the structured file containing the device information and graphic information.
[0044] Optionally, the dynamic display module includes:
[0045] A position acquisition submodule, used to acquire the real-time personnel position and the real-time locomotive position through the RTK device;
[0046] A dynamic display submodule, for dynamically redrawing the two-dimensional station diagram according to the structured file, and dynamically displaying it in combination with the real-time personnel position and the real-time locomotive position;
[0047] The alarm submodule is used to determine that there is a safety hazard and trigger a pre-alarm when the actual distance between the real-time personnel position and the real-time locomotive position is less than a preset safety distance.
[0048] Optionally, the dynamic display submodule includes:
[0049] A pixel range determination unit, used to calculate the pixel range of the circumscribed rectangle according to the scaling ratio of the station site plan or the interval plan;
[0050] A conversion unit, used for converting the real-time personnel position and the real-time locomotive position into pixel coordinates within the pixel range;
[0051] The dynamic drawing unit is used to dynamically draw a two-dimensional station map and superimpose the pixel coordinates of the real-time personnel position and the real-time locomotive position for dynamic display.
[0052] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.
[0053] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, runs the steps of the method provided in the first aspect.
[0054] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, runs the steps of the method provided in the first aspect.
[0055] It can be seen from the above technical solutions that the present invention has the following advantages:
[0056] The present invention provides a method and device for generating a two-dimensional station map, the method comprising: S1, acquiring image data and image control points of a target area; S2, generating an orthophoto based on the image data and control point data through a three-dimensional reconstruction algorithm; the control point data is generated by the image control points; S3, punctuating in the orthophoto according to the equipment information marked in the station plan and / or the interval plan, and generating a data file including the equipment information; S4, drawing a two-dimensional station map according to the station plan and / or the interval plan in combination with the data file, and generating a structured file containing the equipment information; S5, redrawing the two-dimensional station map according to the structured file, and fusing the real-time position data of the RTK device to dynamically display the position information of personnel and locomotive; the RTK device is carried by construction personnel and installed on the locomotive. Generate an orthophoto using image data and image control points, generate a data file in combination with the equipment information marked in the plan map, and draw a two-dimensional station map containing equipment information. By fusing RTK real-time data, the positions of personnel and locomotives can be dynamically displayed, which can effectively improve the safety and efficiency of railway construction management. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0058] Figure 1 This is a flowchart of a first embodiment of a method for generating a two-dimensional station map of the present invention;
[0059] Figure 2 This is a flowchart of a second embodiment of a method for generating a two-dimensional station map of the present invention;
[0060] Figure 3 A coordinate conversion diagram of a second embodiment of a method for generating a two-dimensional station map of the present invention;
[0061] Figure 4 The present invention is a structural block diagram of an embodiment of a device for generating a two-dimensional station map according to the present invention. DETAILED DESCRIPTION
[0062] The embodiment of the present invention provides a method and device for generating a two-dimensional station yard map, which is used to solve the core problems of low efficiency of manual monitoring and delayed discovery of safety hazards in railway construction management, thereby improving the efficiency of railway construction management.
[0063] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] For example, see Figure 1 , Figure 1 The present invention is a flow chart of a method for generating a two-dimensional station map in accordance with a first embodiment of the present invention. The method comprises:
[0065] S1, obtaining image data and image control points of the target area;
[0066] It should be noted that the image control points must have obvious features and be evenly distributed to ensure the accuracy of subsequent data processing. For example, in a railway station, image control points can be set near landmark locations such as turnouts and signal machines.
[0067] In the embodiment of the present application, a drone is used to shoot a target area to obtain image data of the area. When shooting, it is necessary to ensure that the route planning is reasonable and that adjacent images have sufficient overlap to meet the requirements of subsequent three-dimensional reconstruction.
[0068] S2, generating an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points;
[0069] In the embodiment of the present application, the image control points are measured and processed to obtain control point data, and then a three-dimensional model of the target area is constructed using three-dimensional reconstruction software based on the image data and control point data through algorithms such as feature matching and triangulation, thereby generating an orthophoto.
[0070] S3, marking in the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generating a data file including the equipment information;
[0071] In the embodiment of the present application, the information of various equipment marked in the station plan and / or section plan, such as signal machines, turnouts, and tracks, is matched with the orthophoto, and the location of the equipment is accurately marked in the orthophoto. The marked equipment information and its corresponding geographic coordinates and other data are then sorted and stored to generate a data file containing the equipment information.
[0072] S4, drawing a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generating a structured file containing the equipment information;
[0073] In the embodiment of the present application, key elements such as track sections and equipment points are extracted from the station plan and / or section plan, and then the track sections are drawn by splicing line segments, and the equipment points are drawn by corresponding graphics. Finally, the equipment points are associated with the coordinate point information and equipment information in the data file to obtain a structured file containing equipment information and graphic information.
[0074] S5, redrawing the two-dimensional station map according to the structured file, integrating the real-time position data of the RTK equipment, and dynamically displaying the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
[0075] In the embodiment of the present application, the real-time location data of personnel and locomotives are collected in real time by RTK equipment carried by construction personnel and installed on locomotives. The real-time location data of the RTK equipment is then integrated with the redrawn two-dimensional station map to dynamically display the personnel location information and locomotive location information on the map.
[0076] The method for generating a two-dimensional station map provided by the embodiment of the present invention includes: S1, acquiring image data and image control points of the target area; S2, generating an orthophoto based on the image data and control point data through a three-dimensional reconstruction algorithm; the control point data is generated by the image control points; S3, punctuating in the orthophoto according to the equipment information marked in the station plan and / or the interval plan, and generating a data file including the equipment information; S4, drawing a two-dimensional station map according to the station plan and / or the interval plan in combination with the data file, and generating a structured file containing the equipment information; S5, redrawing the two-dimensional station map according to the structured file, and integrating the real-time position data of the RTK device, and dynamically displaying the position information of the personnel and the locomotive; the RTK device is carried by the construction personnel and installed on the locomotive. Generate an orthophoto using the image data and image control points, generate a data file in combination with the equipment information marked in the plan map, and draw a two-dimensional station map containing the equipment information. By integrating the RTK real-time data, the positions of personnel and locomotives can be dynamically displayed, which can effectively improve the safety and efficiency of railway construction management.
[0077] For example 2, please refer to Figure 2 , Figure 2 This is a flow chart of a second embodiment of a method for generating a two-dimensional station map of the present invention, the steps comprising:
[0078] Step S201, acquiring image data and image control points of the target area;
[0079] Specifically, the steps include:
[0080] Based on the surveying area in the acquired survey area data, the image control points are arranged in the target area;
[0081] Using a drone to photograph the target area, to obtain the image data of the target area;
[0082] Detect whether the image data has an adjacent image overlap lower than a preset overlap threshold, and / or an image average gradient amplitude lower than a preset amplitude threshold; if so, return to step S11; if not, execute step S202;
[0083] In the embodiment of the present application, firstly, image control points are reasonably set in the target area according to the surveying area in the survey area data. Then, the target area is photographed by a drone to obtain image data. Finally, the image data is checked to see whether there is a situation where the overlap of adjacent images is lower than the preset overlap threshold, and / or the image average gradient amplitude is lower than the preset amplitude threshold. If so, it is necessary to re-arrange the image control points and collect images; if not, proceed to the next step.
[0084] In the specific implementation, the drone searches for a suitable take-off point according to the arrangement of the technical solution, and captures and collects image data for each corresponding area after taking off from the take-off point.
[0085] Step S202, generating an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points;
[0086] In the embodiment of the present application, the image control points are first measured and processed to obtain control point data, which contains the precise geographic coordinate information of the image control points. Subsequently, the aerial images taken by the drone are exported to a computer, and software such as context capture is used to combine the control point data, submit triangulation process parameters, and construct a three-dimensional model of the target area through a three-dimensional reconstruction algorithm. Finally, the three-dimensional model is orthorectified to eliminate image deformation and generate an orthophoto with real geographic coordinate information.
[0087] Step S203, marking in the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generating a data file including the equipment information;
[0088] In an embodiment of the present application, the orthophoto is imported into the GlobalMapper software for processing. According to the equipment position in the equipment information marked on the station plan and the section plan, punctuation is performed in the orthophoto, the geographic coordinate data of the corresponding position of the equipment is collected, and the equipment type, equipment name and serial identification are clearly marked in layers.
[0089] After completing the punctuation work, check whether the punctuation data is complete and whether the corresponding position of the device is accurate, correct the incorrect punctuation data, and after the operation is completed, export the data file containing geographic coordinates, as well as device information such as device name and device type.
[0090] In an optional embodiment, before generating the data file including the device information in step S203, the method further includes:
[0091] If the geographical coordinates in the collected device information are longitude and latitude, they are converted into the CGCS2000 coordinate system.
[0092] In the embodiment of the present application, if the geographical coordinates of the collected device information are longitude and latitude, the longitude and latitude are converted into CGCS2000 coordinates using the following formula:
[0093] X = a × cos(B) × cos(L) + N × (1 + e 2 ×cos 2 (B))×sin(B)×cos(L)+e 2 ×N×sin 3 (B)×cos(L)
[0094] Y=a×cos(B)×sin(L)+N×(1+e 2 ×cos 2 (B))×sin(B)×sin(L)+e 2 ×N×sin 3 (B)×sin(L)
[0095] Z = a × (1-e 2 )×sin(B)+N×(1+e 2 ×cos 2 (B))×cos(B)+e 2 ×N×sin(B)×cos 2 (B)
[0096] Among them, X, Y, and Z are the 2000 national geodetic coordinates, a is the major semi-axis of the CGCS2000 ellipsoid, the parameter value is 6378137M, e is the first eccentricity, the parameter value is 0.0818191910428M, B is the latitude, N is the radius of curvature of the polar meridian, the parameter value is 6399593.62586M, and L is the longitude.
[0097] Step S204, extracting the track sections and equipment points in the station plan and / or the section plan;
[0098] In an embodiment of the present application, track sections and equipment points in a station plan and / or a section plan are identified and extracted.
[0099] Step S205, drawing the track section by splicing line segment graphics; and drawing the equipment point by corresponding graphics;
[0100] In the embodiment of the present application, Visio is used to draw a two-dimensional station map based on the station plan and / or the interval plan. Specifically, the track section is drawn by splicing line segment graphics so that it corresponds to the distance interval collected by the punctuation points and accurately reflects the station track layout; the equipment points are drawn using corresponding graphics (such as circles and squares) to intuitively display the equipment locations.
[0101] Step S206, associating the device point with the coordinate point information in the data file and the device information to obtain the structured file including the device information and graphic information;
[0102] In an embodiment of the present application, the geographic coordinates collected by the punctuation points are imported into Visio as external data, and the punctuation point name, device type, and device name are associated with the geographic coordinates. A graphic data node containing the identification, device type, device name, station to which it belongs, and coordinate point information containing the left geographic coordinate point and the right geographic coordinate point information is formed on the graphic corresponding to each device.
[0103] After adding the graphic data nodes, check whether the graphic data nodes are complete and correct, and correct the incorrect graphic data nodes. After the operation is completed, use the Visio Application object model to read the drawn two-dimensional station diagram and export it to a formatted data.json file containing equipment information (identification, equipment type, equipment name, station, left geographic coordinate point and right geographic coordinate point) and graphic information (identification, graphic name, center coordinates, width, height, angle, graphic type, text, starting point coordinates, end point coordinates and text information).
[0104] Step S207, obtaining the real-time personnel position and the real-time locomotive position through the RTK device;
[0105] In the embodiment of the present application, the RTK equipment carried by the construction personnel and installed on the locomotive collects the position data of the personnel and the locomotive in real time. The equipment has a high-precision positioning function and can provide accurate geographic coordinate information.
[0106] Step S208, dynamically redrawing the two-dimensional station diagram according to the structured file, and dynamically displaying it in combination with the real-time personnel position and the real-time locomotive position;
[0107] In an embodiment of the present application, the pixel range of the circumscribed rectangle is calculated according to the scaling ratio of the station plan or the section plan; within the pixel range, the real-time personnel position and the real-time locomotive position are converted into pixel coordinates; a two-dimensional station map is dynamically drawn, and the pixel coordinates of the real-time personnel position and the real-time locomotive position are superimposed for dynamic display.
[0108] See also Figure 3 , Figure 3 This is a coordinate conversion diagram of the second embodiment of the method for generating a two-dimensional station map of the present invention. When redrawing, the conversion range is calculated according to the scaling ratio of the station plan or the interval plan, and the corresponding circumscribed rectangle bbox is obtained. The upper left corner of the bbox is taken as the origin, the X axis is positive to the right, and the Y axis is positive downward. The geographic coordinates [res_minX, res_minY] corresponding to the origin [minX, minY] are obtained. MaxX = minX + width, maxY = minY + height are calculated using the bbox origin and width and height to obtain the far point
[0109] [maxX, maxY] corresponds to the geographic coordinates [res_maxX, res_maxY].
[0110] Assuming that the station map is scaled to an image with a width and height of 1000×800, after the above basic parameters are obtained, the conversion calculation process is as follows:
[0111] First, calculate the scaling ratios of the geographic data on the image, zoom_x, zoom_y, as follows:
[0112] var zoom_x=(res_maxX-res_minX) / 1000
[0113] var zoom_y=(res_maxY-res_minY) / 800
[0114] Then calculate the geographic coordinates [res_X, res_Y] according to the scaling ratio and convert them into pixel coordinates img_x, img_y, specifically:
[0115] var img_x=Math.ceil((res_X-res_minX) / zoom_x)
[0116] var img_y=Math.ceil((res_Y-res_minY) / zoom_y)
[0117] Finally, redraw the corresponding image information at the pixel coordinate point [img_x, img_y].
[0118] Finally, the two-dimensional station map is redrawn in the canvas based on the structured file, and the pixel coordinates of the real-time personnel position and the real-time locomotive position are superimposed, and displayed in real time on the device or terminal.
[0119] Step S209: If the actual distance between the real-time personnel position and the real-time locomotive position is less than the preset safety distance, it is determined that there is a safety hazard and a pre-alarm is triggered.
[0120] In the embodiment of the present application, the real-time personnel position and the real-time locomotive position are continuously monitored. When the actual distance between the two is less than the preset safety distance, the system determines that there is a safety hazard and triggers a pre-alarm to remind relevant personnel to pay attention to safety.
[0121] A method for generating a two-dimensional station field map disclosed in an embodiment of the present invention includes: S1, acquiring image data and image control points of a target area; S2, generating an orthophoto based on the image data and control point data through a three-dimensional reconstruction algorithm; the control point data is generated by the image control points; S3, punctuating the orthophoto according to the equipment information marked in the station field plan and / or the interval plan, and generating a data file including the equipment information; S4, drawing a two-dimensional station field map according to the station field plan and / or the interval plan in combination with the data file, and generating a structured file containing the equipment information; S5, redrawing the two-dimensional station field map according to the structured file, and integrating the real-time position data of the RTK device, dynamically displaying the personnel position information and the locomotive position information; the RTK device is carried by the construction personnel and installed on the locomotive. Generate an orthophoto using the image data and image control points, generate a data file in combination with the equipment information marked in the plan map, and draw a two-dimensional station field map containing the equipment information. By providing detailed formulas and related parameter values for converting longitude and latitude coordinates to CGCS2000 coordinates, the coordinate conversion process has a clear calculation basis to ensure the accuracy and standardization of coordinate conversion. In addition, by integrating RTK real-time data and providing detailed scaling and redrawing algorithms, the graphic scaling and coordinate conversion can be processed more accurately when dynamically redrawing the two-dimensional station map, achieving accurate dynamic display effects.
[0122] For example 3, please refer to Figure 4 , Figure 4 This is a structural block diagram of an embodiment of a device for generating a two-dimensional station map of the present invention, the device comprising:
[0123] An acquisition module 301 is used to acquire image data and image control points of a target area;
[0124] An orthophoto generating module 302 is used to generate an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points;
[0125] The data file generation module 303 is used to mark the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generate a data file including the equipment information;
[0126] A structured file generating module 304 is used to draw a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generate a structured file containing the equipment information;
[0127] The dynamic display module 305 is used to redraw the two-dimensional station map according to the structured file, and integrate the real-time position data of the RTK equipment to dynamically display the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
[0128] Optionally, the acquisition module 301 includes:
[0129] A layout submodule, used for arranging the image control points in the target area based on the surveying area in the acquired survey area data;
[0130] An image data acquisition submodule is used to photograph the target area through a drone to obtain the image data of the target area;
[0131] The detection submodule is used to detect whether the image data has adjacent image overlap lower than a preset overlap threshold, and / or the image average gradient amplitude is lower than a preset amplitude threshold; if so, the layout submodule is executed; if not, the orthophoto generation module 302 is executed.
[0132] In an optional embodiment, the data file generation module 303 includes:
[0133] The conversion submodule is used to convert the geographical coordinates in the collected device information into the CGCS2000 coordinate system when the geographical coordinates are longitude and latitude.
[0134] In an optional embodiment, the structured document generation module 304 includes:
[0135] An extraction submodule, used for extracting track sections and equipment points in the station plan and / or the section plan;
[0136] A drawing submodule, used for drawing the track section by splicing line segment graphics; and drawing the equipment point by corresponding graphics;
[0137] The association submodule is used to associate the device point with the coordinate point information in the data file and the device information to obtain the structured file containing the device information and graphic information.
[0138] In an optional embodiment, the dynamic display module 305 includes:
[0139] A position acquisition submodule, used to acquire the real-time personnel position and the real-time locomotive position through the RTK device;
[0140] A dynamic display submodule, for dynamically redrawing the two-dimensional station diagram according to the structured file, and dynamically displaying it in combination with the real-time personnel position and the real-time locomotive position;
[0141] The alarm submodule is used to determine that there is a safety hazard and trigger a pre-alarm when the actual distance between the real-time personnel position and the real-time locomotive position is less than a preset safety distance.
[0142] In an optional embodiment, the dynamic display submodule includes:
[0143] A pixel range determination unit, used to calculate the pixel range of the circumscribed rectangle according to the scaling ratio of the station site plan or the interval plan;
[0144] A conversion unit, used for converting the real-time personnel position and the real-time locomotive position into pixel coordinates within the pixel range;
[0145] The dynamic drawing unit is used to dynamically draw a two-dimensional station map and superimpose the pixel coordinates of the real-time personnel position and the real-time locomotive position for dynamic display.
[0146] Embodiment 4: The embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for generating a two-dimensional station map of any embodiment.
[0147] Embodiment 5, the embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the steps of a method for generating a two-dimensional station field map of any embodiment are implemented.
[0148] Embodiment 6. The embodiment of the present invention further provides a computer program product, on which a computer program is stored. When the computer program is executed by the processor, the steps of a method for generating a two-dimensional station map of any embodiment are implemented.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0150] In the several embodiments provided in the present application, it should be understood that the methods, devices, electronic devices and storage media disclosed in the present invention can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0154] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a two-dimensional station map, characterized in that: include: S1, obtaining image data and image control points of the target area; S2, generating an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points; S3, marking in the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generating a data file including the equipment information; S4, drawing a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generating a structured file containing the equipment information; S5, redrawing the two-dimensional station map according to the structured file, integrating the real-time position data of the RTK equipment, and dynamically displaying the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
2. The method for generating a two-dimensional station map according to claim 1, characterized in that: Step S1 includes: S11, arranging the image control points in the target area based on the surveying area in the acquired survey area data; S12, photographing the target area by a drone to obtain the image data of the target area; S13, detecting whether the image data has an adjacent image overlap lower than a preset overlap threshold, and / or an image average gradient amplitude lower than a preset amplitude threshold; if so, returning to step S11; if not, executing step S2.
3. The method for generating a two-dimensional station map according to claim 2, characterized in that: Before generating the data file including the device information in step S3, the method further includes: If the geographical coordinates in the collected device information are longitude and latitude, they are converted into the CGCS2000 coordinate system.
4. The method for generating a two-dimensional station map according to claim 1, characterized in that: Step S4 includes: Extracting track sections and equipment points in the station plan and / or the section plan; Drawing the track section by splicing line segment graphics; and drawing the equipment point by corresponding graphics; The device point is associated with the coordinate point information and the device information in the data file to obtain the structured file including the device information and the graphic information.
5. The method for generating a two-dimensional station map according to claim 1, characterized in that: Step S5 includes: S51, obtaining the real-time personnel position and the real-time locomotive position through the RTK device; S52, dynamically redrawing the two-dimensional station map according to the structured file, and dynamically displaying it in combination with the real-time personnel position and the real-time locomotive position; S53: If the actual distance between the real-time personnel position and the real-time locomotive position is less than the preset safety distance, it is determined that there is a safety hazard and a pre-alarm is triggered.
6. The method for generating a two-dimensional station map according to claim 1 or 5, characterized in that: Step S52 includes: Calculating the pixel range of the circumscribed rectangle according to the scaling ratio of the station plan or the interval plan; Within the pixel range, converting the real-time personnel position and the real-time locomotive position into pixel coordinates; A two-dimensional station map is dynamically drawn, and the pixel coordinates of the real-time personnel position and the real-time locomotive position are superimposed for dynamic display.
7. A device for generating a two-dimensional station map, characterized in that: include: An acquisition module is used to acquire image data and image control points of a target area; An orthophoto generation module, used to generate an orthophoto based on the image data and control point data by a three-dimensional reconstruction algorithm; the control point data is generated by the image control points; A data file generation module, used to mark the orthophoto according to the equipment information marked in the station plan and / or the section plan, and generate a data file including the equipment information; A structured file generating module, used to draw a two-dimensional station map based on the station plan and / or the section plan in combination with the data file, and generate a structured file containing the equipment information; The dynamic display module is used to redraw the two-dimensional station map according to the structured file, and integrate the real-time position data of the RTK equipment to dynamically display the personnel position information and the locomotive position information; the RTK equipment is carried by the construction personnel and installed on the locomotive.
8. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is executed.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is executed.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.