Method and device for displaying three-dimensional space information on panorama and medium

By calibrating the three-dimensional coordinates of the panorama and spatial resource data through high-definition orthophotos, the three-dimensional spatial relationship is constructed and projected for display, which solves the accuracy problem of massive data display and achieves efficient three-dimensional spatial information display on the panorama.

CN118587085APending Publication Date: 2024-09-03BEIJING SENSORO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410737719.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When faced with massive resource data, existing technology is difficult to quickly and accurately map and display the three-dimensional spatial data of the real environment onto a panorama, and there is a lack of effective solutions.

Method used

Calibrate the three-dimensional coordinates of the panorama and spatial resource data through high-definition orthophotos, obtain the first three-dimensional coordinates and the second three-dimensional coordinates respectively, construct the three-dimensional spatial relationship between the panorama and the spatial resource data, and map the second three-dimensional coordinates to the panorama The plane coordinates are used to aggregate and render the projection values.

Benefits of technology

It improves the three-dimensional coordinate accuracy of panoramic images and spatial resource data, reduces coordinate conversion errors, ensures the accuracy of mapping positions, and enables the effective display of three-dimensional spatial data of massive resource data on panoramic images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587085A
    Figure CN118587085A
Patent Text Reader

Abstract

The invention relates to a method and device for displaying three-dimensional space information on a panorama and a medium, and belongs to the technical field of panoramic maps, and the method for displaying the three-dimensional space information on the panorama comprises the following steps: carrying out coordinate calibration on three-dimensional coordinates of an obtained panorama and space resource data by using a high-definition orthoimage; respectively obtaining a first three-dimensional coordinate and a second three-dimensional coordinate; acquiring a plane coordinate of the panorama, constructing a three-dimensional space relationship between the panorama and the space resource data based on the first three-dimensional coordinate and the second three-dimensional coordinate, mapping the second three-dimensional coordinate into the plane coordinate of the panorama, and acquiring a projection numerical value based on the three-dimensional space relationship; after the projection numerical values are aggregated, the aggregated projection numerical values are displayed on the panorama according to the illustration rendering strategy, and three-dimensional space information display on the panorama is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of panoramic maps, and in particular to a method, device and medium for displaying three-dimensional spatial information on a panoramic map. Background Art

[0002] At present, the application of panorama in the field of specific space display has been perfected.

[0003] There are also many types of extended information presentation based on the panoramic base. However, when faced with massive resource data, there is no mature solution to quickly and accurately map the three-dimensional spatial data of the real environment and display it on the panoramic map, and to reasonably aggregate and display the spatial data according to the data volume. Summary of the invention

[0004] In view of this, it is necessary to provide a method, device and medium for displaying three-dimensional spatial information on a panoramic map to solve the technical problem that there is no mature solution to display the three-dimensional spatial data of the real environment on a panoramic map when faced with massive resource data.

[0005] In order to solve the above problems, the present invention provides a method for displaying three-dimensional space information on a panoramic image, comprising: Using high-definition orthophotos, coordinate calibration is performed on the three-dimensional coordinates of the acquired panoramic image and spatial resource data to obtain first three-dimensional coordinates and second three-dimensional coordinates respectively; Acquire the plane coordinates of the panoramic image, construct a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, map the second three-dimensional coordinates to the plane coordinates of the panoramic image, and obtain a projection value based on the three-dimensional spatial relationship; After the projection values ​​are aggregated, the aggregated projection values ​​are displayed on the panoramic image according to a map rendering strategy.

[0006] In a possible implementation, the method of using the high-definition orthophoto to calibrate the three-dimensional coordinates of the acquired panoramic image and the spatial resource data to obtain the first three-dimensional coordinates and the second three-dimensional coordinates respectively includes: Performing plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired panoramic image using the high-definition orthophoto to obtain the first three-dimensional coordinates; The three-dimensional coordinates of the acquired spatial resource data are calibrated in plane coordinates and altitude using a high-definition orthophoto to obtain a second three-dimensional coordinate, wherein the high-definition orthophoto is a high-resolution centimeter-level orthophoto.

[0007] In a possible implementation, the step of performing plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired panoramic image using the high-definition orthophoto to obtain the first three-dimensional coordinates includes: Obtain the image features of the vertical panoramic image and the image features of the high-definition orthophoto. Performing plane coordinate calibration on the image features of the panorama using the image features of the high-definition orthophoto to obtain the plane coordinates of the panorama shooting points, wherein the plane coordinates of the panorama shooting points include the plane coordinates of the aerial panorama shooting points and the plane coordinates of the ground panorama shooting points; Acquire high-precision terrain data, and extract the altitude of the panorama using the high-precision terrain data based on the plane coordinates of the shooting point of the panorama; The ground surface height of the aerial panoramic image shooting point and the ground surface height of the ground panoramic image shooting point are obtained, and the first three-dimensional coordinates are obtained based on the ground surface height of the aerial panoramic image shooting point, the ground surface height of the ground panoramic image shooting point and the altitude.

[0008] In a possible implementation, the process of performing plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired spatial resource data using a high-definition orthophoto to obtain a second three-dimensional coordinate includes: Performing plane coordinate calibration on the three-dimensional coordinates of the spatial resource data using the image features of the high-definition orthophoto to obtain the plane coordinates of the spatial resource data; Based on the plane coordinates of the spatial resource data, the altitude of the spatial resource data is extracted using the high-precision terrain data; The surface height of the space resource data is obtained, and based on the surface height and the altitude of the space resource data, a second three-dimensional coordinate is obtained.

[0009] In a possible implementation manner, obtaining the plane coordinates of the panoramic image includes: A panoramic sphere is obtained based on the panoramic image, and the panoramic sphere is projected into a rectangle to obtain plane coordinates of the panoramic image, wherein an X-axis of the plane coordinates is a width of the rectangle, a Y-axis of the plane coordinates is a height of the rectangle, and an aspect ratio of the rectangle is 2:1.

[0010] In a possible implementation, constructing a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, mapping the second three-dimensional coordinates to the plane coordinates of the panoramic image, and obtaining a projection value based on the three-dimensional spatial relationship includes: Based on the first three-dimensional coordinates and the second three-dimensional coordinates, Figure 3The plane coordinates of the dimensional coordinates are taken as the center, and the relative deflection angle between the panoramic image and the spatial resource data relative to the true north direction is calculated; Calculating the altitude difference between the panoramic image and the spatial resource data based on the altitude of the panoramic image and the altitude of the spatial resource data; Calculating a plane distance between the panoramic image and the spatial resource data based on the plane coordinates of the panoramic image and the plane coordinates of the spatial resource data; Determine the relative position of the panoramic image and the spatial resource data based on the relative deflection angle, the altitude difference and the plane distance, and construct a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the relative position; The second three-dimensional coordinates are mapped to the plane coordinates of the panoramic image, and a projection value is obtained based on the three-dimensional spatial relationship.

[0011] In a possible implementation, the calculation formula of the three-dimensional spatial relationship is: , , in, The three-dimensional coordinates of the spatial resource data are mapped to the projection values ​​in the panoramic image. is the relative deflection angle, is the altitude difference, is the plane distance.

[0012] In a possible implementation, after aggregating the projection values, displaying the aggregated projection values ​​on the panoramic image according to a rendering strategy includes: Setting an aggregation grid of the panoramic image, obtaining projection values ​​in the aggregation grid, and aggregating the projection values ​​in the aggregation grid to obtain aggregation coordinates, wherein the aggregation coordinates are the coordinates of the geometric center point of the aggregation grid; Constructing point feature data, line feature data and surface feature data based on the aggregated coordinates; The point element data, line element data and surface element data are displayed on the panoramic image according to the image rendering strategy.

[0013] In another aspect, the present invention further provides an electronic device, comprising: a processor and a memory; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps in the method for displaying three-dimensional space information on a panoramic image as described above are implemented.

[0014] On the other hand, the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for displaying three-dimensional spatial information on a panoramic image as described above.

[0015] The beneficial effects of the present invention are as follows: coordinate calibration is performed on the three-dimensional coordinates of the acquired panoramic image and spatial resource data by using high-definition orthophotos to obtain first three-dimensional coordinates and second three-dimensional coordinates respectively; coordinate calibration is performed on the panoramic image and spatial resource data by using high-resolution centimeter-level orthophotos, the three-dimensional coordinate accuracy of the panoramic image and the spatial resource data is improved, and coordinate conversion errors are reduced; a corresponding manual calibration method is formulated in the data acquisition stage to ensure that the object coordinates are as accurate as possible, the plane coordinates of the panoramic image are obtained, a three-dimensional spatial relationship between the panoramic image and the spatial resource data is constructed based on the first three-dimensional coordinates and the second three-dimensional coordinates, the second three-dimensional coordinates are mapped to the plane coordinates of the panoramic image, projection values ​​are obtained based on the three-dimensional spatial relationship, the three-dimensional coordinates are converted into two-dimensional coordinates by using the three-dimensional spatial relationship when mapping the spatial relationship, and the mapping position is ensured to be more accurate; the projection values ​​are aggregated, and the spatial data is aggregated by a grid of a custom size on the panoramic image, which is conducive to optimizing the front-end interaction; the projection values ​​are displayed on the panoramic image according to the map rendering strategy, and when the spatial resource data is massive resource data, the three-dimensional spatial data of the real environment is displayed on the panoramic image. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A flow chart of an embodiment of a method for displaying three-dimensional spatial information on a panoramic image provided by the present invention; Figure 2 A schematic diagram of the three-dimensional spatial relationship between a panoramic image and spatial resource data in the method for displaying three-dimensional spatial information on a panoramic image provided by the present invention; Figure 3 A schematic diagram of two-dimensional coordinates after projection conversion of spatial resource data in a panoramic plane coordinate system of the method for displaying three-dimensional spatial information on a panoramic map provided by the present invention; Figure 4 A schematic diagram of a panorama grid aggregation of a method for displaying three-dimensional spatial information on a panorama provided by the present invention; Figure 5 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0018] The present invention discloses a method, device and medium for displaying three-dimensional space information on a panoramic image, which can be used in a computer. The method, device or computer-readable storage medium involved in the present invention can be integrated with the above-mentioned device or can be relatively independent.

[0019] A specific embodiment of the present invention discloses a method for displaying three-dimensional spatial information on a panoramic image, which can be executed by a computer, specifically by one or more processors of the computer. Figure 1 is a flowchart of a method for displaying three-dimensional spatial information on a panoramic image provided by an embodiment of the present invention. Figure 1 , the method for displaying three-dimensional spatial information on the panoramic image includes: S101, using the high-definition orthophoto to calibrate the three-dimensional coordinates of the acquired panoramic image and the spatial resource data, to obtain first three-dimensional coordinates and second three-dimensional coordinates respectively; S102, obtaining the plane coordinates of the panoramic image, constructing a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, mapping the second three-dimensional coordinates to the plane coordinates of the panoramic image based on the three-dimensional spatial relationship, and obtaining a projection value; S103: After the projection values ​​are aggregated, the aggregated projection values ​​are displayed on the panoramic image according to the image rendering strategy.

[0020] Among them, the high-definition orthophoto is used to calibrate the three-dimensional coordinates of the acquired panoramic view and spatial resource data to obtain the first three-dimensional coordinates and the second three-dimensional coordinates respectively. The high-definition orthophoto is a high-resolution centimeter-level orthophoto, and the spatial resource data contains a large amount of three-dimensional spatial data of the real environment in the panoramic view. The first three-dimensional coordinates are the three-dimensional coordinates of the panoramic view after coordinate calibration, and the second three-dimensional coordinates are the three-dimensional coordinates of the spatial resource data after coordinate calibration. The coordinate calibration using the high-definition orthophoto also includes calibrating the north axis of the panorama. Based on the three-dimensional spatial relationship, the second three-dimensional coordinates are mapped to the plane coordinates of the panorama to obtain projection values, and the projection values ​​are two-dimensional coordinates.

[0021] Compared with the prior art, the method for displaying three-dimensional spatial information on a panoramic map provided by the present embodiment uses a high-definition orthophoto to calibrate the three-dimensional coordinates of the acquired panoramic map and spatial resource data, and obtains a first three-dimensional coordinate and a second three-dimensional coordinate respectively. The three-dimensional coordinates of the panoramic map and the spatial resource data are calibrated using a high-resolution aerial image as a calibration reference, thereby improving the three-dimensional coordinate accuracy of the panoramic map, the accuracy of the true north axis, and the three-dimensional coordinate accuracy of the spatial data. The plane coordinates of the panoramic map are obtained, and a three-dimensional spatial relationship between the panoramic map and the spatial resource data is constructed based on the first three-dimensional coordinates and the second three-dimensional coordinates. The second three-dimensional coordinates are mapped to the plane coordinates of the panoramic map, and a projection value is obtained based on the three-dimensional spatial relationship. When mapping the spatial relationship, the three-dimensional spatial relationship is used to convert the three-dimensional coordinates of the spatial resource data into two-dimensional coordinates to ensure that the mapping position is more accurate. After the projection values ​​are aggregated, the projection values ​​are displayed on the panoramic map according to the illustration rendering strategy. The aggregation of spatial data is conducive to optimizing the front-end interaction, and the display of three-dimensional spatial information on the panoramic map is realized.

[0022] In some embodiments, in step S101, a panoramic image is collected by a drone or a ground street view car to obtain the three-dimensional coordinates of the panoramic image and the three-dimensional coordinates of the spatial resource data, wherein the spatial resource data includes a large amount of three-dimensional spatial data of the real environment in the panoramic image. In order to reduce conversion errors and improve coordinate accuracy, a corresponding manual calibration method is formulated in the data collection stage to ensure that the object coordinates are as accurate as possible. The three-dimensional coordinates of the panoramic image and the three-dimensional coordinates of the spatial resource data are calibrated using high-definition orthophotos to obtain first three-dimensional coordinates and second three-dimensional coordinates, respectively. The three-dimensional coordinates of the panoramic image are calibrated using high-resolution 1 cm (map level 23) orthophotos, including plane coordinate calibration, altitude calibration and true north axis calibration of the panoramic image to obtain first three-dimensional coordinates, wherein the first three-dimensional coordinates are the calibrated panoramic image. Figure 3 Dimensional coordinates.

[0023] In some embodiments, the three-dimensional coordinates of the panorama are calibrated in plane coordinates. First, the image features of the panorama when photographed vertically and the image features of the high-definition orthophoto are obtained, wherein the image features of the panorama when photographed vertically are the image features of a 90-degree overhead view on the panorama. Secondly, the image features of the high-definition orthophoto are used to calibrate the image features of the panorama in plane coordinates. The high-resolution aerial image is used as a calibration reference, and the image feature points of the panorama are manually judged and moved according to the image feature points to obtain the plane coordinates of the panorama shooting points, wherein the plane coordinates of the panorama shooting points include the plane coordinates of the aerial panorama shooting points and the plane coordinates of the ground panorama shooting points.

[0024] The three-dimensional coordinates of the panorama are calibrated at an altitude, namely, Z-axis calibration. The altitude calibration includes two parts: the surface height and the altitude of the plane coordinate value. The drone collects the surface height of the shooting point while collecting the panorama in the air. The ground street view car assigns a fixed surface height when collecting the panorama, obtains high-precision terrain data, and extracts the altitude of the panorama based on the plane coordinates of the panorama shooting point. The altitude is extracted from the high-precision terrain data according to the plane coordinate values ​​of the panorama, and the surface height of the aerial panorama shooting point and the surface height of the ground panorama shooting point are obtained. Based on the surface height of the aerial panorama shooting point, the surface height of the ground panorama shooting point and the altitude, the first three-dimensional coordinate is obtained, that is, the surface height and the altitude are added to obtain the Z value of the three-dimensional coordinate of each panorama, and the accurate first three-dimensional coordinate of the panorama is obtained according to the plane coordinates of the panorama shooting point and the Z value of the three-dimensional coordinate of the panorama.

[0025] Calibrate the north axis of the panoramic image. The panoramic image itself does not have spatial attributes. The orientation information on the panoramic image is obtained through image calibration. During the production process, adjustments are made to ensure that the north direction of the actual space is 0 degrees on the X-axis of the current image.

[0026] In some embodiments, the three-dimensional coordinates of the spatial resource data are calibrated in the plane coordinates, and the collected spatial data are manually calibrated using the image features of a high-resolution 1 cm (map level 23) orthophoto to obtain the plane coordinates of the spatial resource data. The collected spatial data includes at least the spatial data of the Internet of Things devices and points of interest.

[0027] Calibrate the altitude of the three-dimensional coordinates of the spatial resource data, and extract the altitude of the spatial resource data using the high-precision terrain data based on the plane coordinates of the spatial resource data, that is, extract the altitude from the high-precision terrain data according to the plane coordinate values ​​of the spatial resource data; The surface height of the space resource data is obtained, based on the surface height and altitude of the space resource data, the Z value of the three-dimensional coordinates of the space resource data is obtained, and the second three-dimensional coordinates of the space resource data are obtained according to the plane coordinates of the space resource data and the Z value.

[0028] In some embodiments, in step S102, the panoramic Figure 2 The 3D coordinate system is defined, and the panoramic sphere is obtained based on the panoramic image. The panoramic sphere is projected into a rectangle to obtain the plane coordinates of the panoramic image. The X-axis of the plane coordinates is the width of the rectangle, and the X-axis interval is [-180, 180]. The Y-axis of the plane coordinates is the height of the rectangle, and the Y-axis interval is [-90, 90]. The unit is degree, and the aspect ratio of the rectangle is 2:1. The three-dimensional spatial relationship between the panoramic image and the spatial resource data is constructed based on the first three-dimensional coordinates and the second three-dimensional coordinates. For a schematic diagram of the three-dimensional spatial relationship between the panoramic image and the spatial resource data, please refer to Figure 2 The steps are as follows: based on the first three-dimensional coordinates and the second three-dimensional coordinates, Figure 3 The plane coordinates of the 3D coordinates are used as the center to calculate the relative deflection angle between the panoramic image and the spatial resource data relative to the true north direction. , that is, in panorama coordinates Plane coordinates of As the center, calculate the angle between the spatial data and the panoramic image relative to the true north direction , the interval range is [0, 360], the unit is degree, based on the altitude of the panorama and the altitude of the spatial resource data, calculate the altitude difference between the panorama and the spatial resource data , based on the plane coordinates of the panorama and the plane coordinates of the spatial resource data, the plane distance D between the panorama and the spatial resource data is calculated, , is the plane coordinate of the panorama, is the plane coordinate of the spatial resource data. The relative position of the panoramic image and the spatial resource data is determined based on the relative deflection angle, altitude difference and plane distance. The three-dimensional spatial relationship between the panoramic image and the spatial resource data is constructed based on the relative position. The calculation formula of the three-dimensional spatial relationship is: , , in, The three-dimensional coordinates of the spatial resource data are mapped to the projection values ​​in the panoramic image. is the relative deflection angle, is the altitude difference, is the plane distance; The second three-dimensional coordinate is mapped to the plane coordinate of the panoramic image. The three-dimensional coordinate of the spatial resource data is projected and transformed through the three-dimensional spatial relationship between the panoramic image and the spatial data to obtain a projection value. For example, after the three-dimensional coordinate of a spatial resource data is projected and transformed, a projection value (X, Y) is obtained. The projection value is a spatial data in the plane coordinate of the panoramic image. For a schematic diagram of the two-dimensional coordinates of the spatial resource data after conversion in the plane coordinate system of the panoramic image, please refer to Figure 3 .

[0029] In some embodiments, in step S103, the projection values ​​are aggregated, an aggregation grid of the panoramic image is set, the projection values ​​in the aggregation grid are obtained, the projection values ​​in the aggregation grid are aggregated, the coordinates (projection values) of the scattered points in the aggregation grid are changed to the same coordinates, aggregated at one point, and the aggregated coordinates are obtained, wherein the aggregated coordinates are the coordinates of the geometric center point of the aggregation grid; whether to aggregate the spatial data projection values ​​is selected according to business needs, and the size of the aggregation grid on the panoramic image is specified. The setting rule of the grid size is to divide and round the average of 360 degrees in width and 180 in height to ensure that grids of different sizes can completely cover the sphere, and all spatial data mapped to any grid have the original coordinate values ​​covered by the geometric center coordinates of the current grid. For a schematic diagram of the panoramic image grid aggregation, please refer to Figure 4 ; The aggregated projection values ​​are displayed on the panoramic map according to the illustration rendering strategy, that is, the front end displays spatial data on the panoramic map according to the illustration rendering strategy, constructs point feature data, line feature data and surface feature data based on the aggregated coordinates, and displays the point feature data, line feature data and surface feature data on the panoramic map according to the illustration rendering strategy; the point feature data is displayed in three forms on the panoramic map in discrete, small-scale aggregation and large-scale aggregation. The discrete form is a single point feature data, which is displayed in the form of a single click. The small-scale aggregation is an aggregation of no more than 8 point features. When a small amount of aggregation is performed, each feature in the aggregated point is displayed by clicking to expand the graphic menu. The large-scale aggregation is an aggregation of more than 8 point features. When a large amount of aggregation is performed, each feature in the aggregated point is displayed by clicking to open the list; the line feature data depicts the line segment according to the rendering style and displays the corresponding linear graphics. Each node of the line feature is the mapping conversion coordinate of the real spatial data; the surface feature data depicts the edge line and fill color according to the rendering style and displays the corresponding surface graphics. Each node of the surface feature is the mapping conversion coordinate of the real spatial data.

[0030] like Figure 5 As shown, based on the method for displaying three-dimensional space information on a panoramic image, the present invention also provides an electronic device 500, which can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer, and a server. The electronic device 500 includes a processor 501, a memory 502, and a display 503. Figure 5 Only some components of the electronic device 500 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0031] In some embodiments, the memory 502 may be an internal storage unit of the electronic device 500, such as a hard disk or memory of the electronic device 500. In other embodiments, the memory 502 may also be an external storage device of the electronic device 500, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 500. Further, the memory 502 may also include both an internal storage unit of the electronic device 500 and an external storage device. The memory 502 is used to store application software and various types of data installed in the electronic device 500, such as program codes installed in the electronic device 500. The memory 502 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 502 stores a three-dimensional space information display program 504 on a panoramic image, and the three-dimensional space information display program 504 on a panoramic image can be executed by the processor 501, thereby realizing the three-dimensional space information display method on a panoramic image of each embodiment of the present invention.

[0032] In some embodiments, the processor 501 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 502, such as a method for displaying three-dimensional spatial information on a panoramic image.

[0033] In some embodiments, the display 503 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 503 is used to display the identification information of the three-dimensional space information display program 504 on the panoramic image and to display a visualized user interface. The components 501-503 of the electronic device 500 communicate with each other via a system bus.

[0034] In some embodiments, when the processor 501 executes the three-dimensional spatial information display program 504 on the panoramic image in the memory 502, the various steps in the method for displaying three-dimensional spatial information on the panoramic image as described in the above embodiments are implemented. Since the method for displaying three-dimensional spatial information on the panoramic image has been described in detail above, it will not be repeated here.

[0035] In summary, the method, device and medium for displaying three-dimensional spatial information on a panoramic map provided by the present invention use high-definition orthophotos to calibrate the three-dimensional coordinates of the acquired panoramic map and spatial resource data, and obtain first three-dimensional coordinates and second three-dimensional coordinates, respectively; obtain the plane coordinates of the panoramic map, construct a three-dimensional spatial relationship between the panoramic map and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, map the second three-dimensional coordinates to the plane coordinates of the panoramic map, and obtain projection values ​​based on the three-dimensional spatial relationship; after aggregating the projection values, the aggregated projection values ​​are displayed on the panoramic map according to the illustration rendering strategy, thereby realizing the display of three-dimensional spatial information on the panoramic map.

[0036] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0037] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for displaying three-dimensional spatial information on a panoramic image, characterized in that: include: Using high-definition orthophotos, coordinate calibration is performed on the three-dimensional coordinates of the acquired panoramic image and spatial resource data to obtain first three-dimensional coordinates and second three-dimensional coordinates respectively; Acquire the plane coordinates of the panoramic image, construct a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, map the second three-dimensional coordinates to the plane coordinates of the panoramic image, and obtain a projection value based on the three-dimensional spatial relationship; After the projection values ​​are aggregated, the aggregated projection values ​​are displayed on the panoramic image according to a map rendering strategy.

2. The method for displaying three-dimensional spatial information on a panoramic image according to claim 1, characterized in that: The method of using the high-definition orthophoto to calibrate the three-dimensional coordinates of the acquired panoramic image and the spatial resource data to obtain the first three-dimensional coordinates and the second three-dimensional coordinates respectively includes: Performing plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired panoramic image using the high-definition orthophoto to obtain the first three-dimensional coordinates; The three-dimensional coordinates of the acquired spatial resource data are calibrated in plane coordinates and altitude using a high-definition orthophoto to obtain a second three-dimensional coordinate, wherein the high-definition orthophoto is a high-resolution centimeter-level orthophoto.

3. The method for displaying three-dimensional spatial information on a panoramic image according to claim 2, characterized in that: The method of using the high-definition orthophoto to perform plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired panoramic image to obtain the first three-dimensional coordinates includes: Obtain the image features of the vertical panoramic image and the image features of the high-definition orthophoto. Performing plane coordinate calibration on the image features of the panorama using the image features of the high-definition orthophoto to obtain the plane coordinates of the panorama shooting points, wherein the plane coordinates of the panorama shooting points include the plane coordinates of the aerial panorama shooting points and the plane coordinates of the ground panorama shooting points; Acquire high-precision terrain data, and extract the altitude of the panorama using the high-precision terrain data based on the plane coordinates of the shooting point of the panorama; The ground surface height of the aerial panoramic image shooting point and the ground surface height of the ground panoramic image shooting point are obtained, and the first three-dimensional coordinates are obtained based on the ground surface height of the aerial panoramic image shooting point, the ground surface height of the ground panoramic image shooting point and the altitude.

4. The method for displaying three-dimensional spatial information on a panoramic image according to claim 3, characterized in that: The method of using the high-definition orthophoto to perform plane coordinate calibration and altitude calibration on the three-dimensional coordinates of the acquired spatial resource data to obtain the second three-dimensional coordinates includes: Performing plane coordinate calibration on the three-dimensional coordinates of the spatial resource data using the image features of the high-definition orthophoto to obtain the plane coordinates of the spatial resource data; Based on the plane coordinates of the spatial resource data, the altitude of the spatial resource data is extracted using the high-precision terrain data; The surface height of the space resource data is obtained, and based on the surface height and the altitude of the space resource data, a second three-dimensional coordinate is obtained.

5. The method for displaying three-dimensional spatial information on a panoramic image according to claim 1, characterized in that: The step of obtaining the plane coordinates of the panoramic image includes: A panoramic sphere is obtained based on the panoramic image, and the panoramic sphere is projected into a rectangle to obtain plane coordinates of the panoramic image, wherein an X-axis of the plane coordinates is a width of the rectangle, a Y-axis of the plane coordinates is a height of the rectangle, and an aspect ratio of the rectangle is 2:

1.

6. The method for displaying three-dimensional spatial information on a panoramic image according to claim 4, characterized in that: The step of constructing a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the first three-dimensional coordinates and the second three-dimensional coordinates, mapping the second three-dimensional coordinates to the plane coordinates of the panoramic image, and obtaining a projection value based on the three-dimensional spatial relationship includes: Based on the first three-dimensional coordinates and the second three-dimensional coordinates, the relative deflection angle of the panoramic image and the spatial resource data relative to the true north direction is calculated with the plane coordinates of the panoramic image three-dimensional coordinates as the center; Calculating the altitude difference between the panoramic image and the spatial resource data based on the altitude of the panoramic image and the altitude of the spatial resource data; Calculating a plane distance between the panoramic image and the spatial resource data based on the plane coordinates of the panoramic image and the plane coordinates of the spatial resource data; Determine the relative position of the panoramic image and the spatial resource data based on the relative deflection angle, the altitude difference and the plane distance, and construct a three-dimensional spatial relationship between the panoramic image and the spatial resource data based on the relative position; The second three-dimensional coordinates are mapped to the plane coordinates of the panoramic image, and a projection value is obtained based on the three-dimensional spatial relationship.

7. The method for displaying three-dimensional spatial information on a panoramic image according to claim 6, characterized in that: The calculation formula of the three-dimensional spatial relationship is: , , in, The three-dimensional coordinates of the spatial resource data are mapped to the projection values ​​in the panoramic image. is the relative deflection angle, is the altitude difference, is the plane distance.

8. The method for displaying three-dimensional spatial information on a panoramic image according to claim 6, characterized in that: After the projection values ​​are aggregated, the aggregated projection values ​​are displayed on the panoramic image according to a rendering strategy, including: Setting an aggregation grid of the panoramic image, obtaining projection values ​​in the aggregation grid, and aggregating the projection values ​​in the aggregation grid to obtain aggregation coordinates, wherein the aggregation coordinates are the coordinates of the geometric center point of the aggregation grid; Constructing point feature data, line feature data and surface feature data based on the aggregated coordinates; The point element data, line element data and surface element data are displayed on the panoramic image according to the image rendering strategy.

9. An electronic device, characterized in that: including memory and processor; The memory stores a computer-readable program executable by the processor; When the processor executes the computer-readable program, the steps of the method for displaying three-dimensional spatial information on a panoramic image as described in any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for displaying three-dimensional spatial information on a panoramic image as described in any one of claims 1-8.