WO2023005934A1 - 数据处理方法、系统及电子设备 - Google Patents

数据处理方法、系统及电子设备 Download PDF

Info

Publication number
WO2023005934A1
WO2023005934A1 PCT/CN2022/107972 CN2022107972W WO2023005934A1 WO 2023005934 A1 WO2023005934 A1 WO 2023005934A1 CN 2022107972 W CN2022107972 W CN 2022107972W WO 2023005934 A1 WO2023005934 A1 WO 2023005934A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
data
scene image
vector
user
Prior art date
Application number
PCT/CN2022/107972
Other languages
English (en)
French (fr)
Inventor
杜海航
刘博�
Original Assignee
阿里云计算有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里云计算有限公司 filed Critical 阿里云计算有限公司
Publication of WO2023005934A1 publication Critical patent/WO2023005934A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying

Definitions

  • the present application relates to the field of computer technology, in particular to a data processing method, system and electronic equipment.
  • GIS Geographic Information System
  • various embodiments of the present application provide a data processing method, system and electronic equipment.
  • a data processing method includes:
  • a three-dimensional scene image is generated according to the coordinate information of the outline points of the at least one type of element.
  • Another data processing method is provided in an embodiment of the present application.
  • the method includes:
  • the 3D scene image generated according to the vector map data of the at least one type of element is displayed on the 3D graph display interface.
  • a data processing system in an embodiment of the present application, includes:
  • the client is configured to send the vector graphics data of at least one type of element input by the user through the interactive interface to the server;
  • the server is configured to acquire vector graphics data of at least one type of element; analyze the vector graphics data of said at least one type of element to obtain contour points of said at least one type of element; determine the contour points of said at least one type of element coordinate information in a space coordinate system; generate a three-dimensional scene image according to the coordinate information of the contour points of the at least one type of element;
  • the client is further configured to receive and display the 3D scene image fed back by the server.
  • an electronic device in an embodiment of the present application, includes: a memory and a processor; wherein,
  • the memory is used to store programs
  • the processor coupled with the memory, is configured to execute the program stored in the memory, so as to implement the data processing method described in the first aspect above; or the data processing method described in the second aspect.
  • a computer-readable storage medium storing a computer program
  • the computer program when executed by one or more processors, the one or more The processor performs actions including the following:
  • a three-dimensional scene image is generated according to the coordinate information of the outline points of the at least one type of element.
  • a computer-readable storage medium storing a computer program
  • the computer program when executed by one or more processors, the one or more The processor performs actions including the following:
  • the 3D scene image generated according to the vector diagram data of the at least one type of element is displayed on the 3D graph display interface.
  • a data processing device comprising:
  • An acquisition module configured to acquire vector graphics data of at least one type of element
  • An analysis module configured to analyze the vector map data of the at least one type of element to obtain the contour points of the at least one type of element;
  • the determination module is used to determine the coordinate information of the outline points of the at least one type of elements in a space coordinate system; the generation module is used to generate a three-dimensional scene image according to the coordinate information of the outline points of the at least one type of elements.
  • a data processing device comprising:
  • the interface display module is used to display the interactive interface
  • a data display module configured to display the vector diagram data of at least one type of element sequentially input by the user in response to an input operation triggered by the user through the interactive interface;
  • the image display module is configured to display the 3D scene image generated according to the vector diagram data of the at least one type of element on the 3D graph display interface in response to the 3D scene graph export instruction triggered by the user through the interactive interface.
  • a computer program is provided, and when the computer program is executed by a processor, it is used to implement the first aspect or any possible implementation manner in the first aspect A method, or a method for implementing the second aspect or any possible implementation manner of the second aspect.
  • a computer program product including a computer program, when the computer program is executed by a processor, it is used to implement any one of the first aspect or the first aspect A method in a possible implementation manner, or a method for realizing the second aspect or any possible implementation manner of the second aspect.
  • the electronic device after the electronic device obtains the vector diagram data of at least one type of element, it further analyzes and processes the vector diagram data of at least one type of element, and generates outline points used to represent at least one type of element ; Determining coordinate information in a space coordinate system based on the contour points of at least one type of element, and then generating the three-dimensional scene image for representing at least one type of element based on the coordinate information.
  • various element vector data can be directly used for analysis, and the contour points obtained through analysis can be used for visualization processing to generate a three-dimensional scene image.
  • the method can effectively reduce the generation cost of the three-dimensional scene image, and effectively lower the technical threshold for generating the three-dimensional scene image.
  • FIG. 1 is a schematic flow diagram of a data processing method provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a multi-type element vector diagram illustrated in the embodiment of the present application.
  • FIG. 3 is a schematic flow diagram of a method for obtaining vector diagram data provided by an embodiment of the present application
  • Fig. 4 is a schematic diagram of the target map provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of a vector diagram after outline drawing provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of the input vector diagram provided by the embodiment of the present application.
  • FIG. 7 is a schematic diagram of converting contour lines into contour points provided by the embodiment of the present application.
  • FIG. 8a and 8b are schematic diagrams of the three-dimensional model generation combination provided by the embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another data processing method provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram illustrating the production of a three-dimensional scene image illustrated in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a data processing system provided by an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a method for performing three-dimensional modeling based on an SVG file provided in an embodiment of the present application
  • FIG. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a data processing device provided in an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of another electronic device provided by the embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of another data processing device provided by an embodiment of the present application.
  • the creator of the 3D scene image needs to purchase the data usage permission from the GIS data provider company.
  • GIS data provider company In some small-scale 3D mapping scenarios (for example, campuses, industrial parks, and business districts), users usually want to realize the establishment of 3D images at low cost and in a short time.
  • open source and free GIS data are not fine enough to meet the needs of small-scale 3D scene image generation such as parks and campuses, and the cost of purchasing commercial GIS data is too high.
  • small application scenarios such as 3D images of parks, campuses, 3D image
  • the present application proposes a technical solution capable of generating a three-dimensional scene image simply and at low cost.
  • FIG. 1 is a schematic flowchart of a data processing method provided in the embodiment of the present application. Can be applied to image generation tools. As can be seen from Figure 1, the following steps are included:
  • the elements mentioned here may be roads, mountains, water, single buildings, dense building groups, etc. included in the target image collected through the actual scene.
  • the vector graphics data mentioned here may be the data included in the vector graphics in SVG format.
  • SVG format vector graphics contain a variety of two-dimensional primitive text data, such as rectangle ⁇ rect>, circle ⁇ circle>, ellipse ⁇ ellipse>, line ⁇ line>, polyline ⁇ polyline>, path ⁇ path> wait. Therefore, when it is necessary to input vector graphics data, the input of vector graphics data can be completed by directly inputting vector graphics in SVG format, and then the required vector graphics data can be easily obtained by the computer background.
  • the vector graphics data of these elements are independent of each other. In other words, each vector graphics in SVG format contains only one type of element, for example, vector graphics data that only contains road elements, so that they can be analyzed separately, Visualization.
  • FIG. 2 is a schematic diagram of a multi-type element vector diagram illustrated in the embodiment of the present application.
  • Figure 2 contains multiple vector diagrams composed of contour lines, namely, flat land contour vector diagram, road contour vector diagram, building group (dense building group) vector diagram, building (single building) vector diagram, path vector diagram .
  • the vector graphics of these elements are independent of each other, so as to be analyzed and visualized separately.
  • the vector map data here can accurately reflect the image information of at least one type of element contained in the target map.
  • FIG. 3 is a schematic flow chart of a method for obtaining vector diagram data provided by the embodiment of the present application. As can be seen from Figure 3, it specifically includes the following steps:
  • the image acquisition device can be used to acquire images of the actual scene where the three-dimensional scene image will be established to obtain the target map. You can also directly use the existing free map software to obtain the planar map of the desired area. It should be noted that when obtaining the required target map based on the planar map, the planar map needs to be scaled according to the actual clarity or display effect requirements, so that the required elements such as single buildings and roads can be clearly displayed. If the area of the 3D scene graph that needs to be created is relatively large, it can be divided into multiple target graphs and then spliced.
  • the planar map of the current 3D scene to be obtained is obtained from a bird's-eye view.
  • Various types of elements can be clearly represented from the target diagram, such as roads, mountains, water, single buildings, dense building groups, etc.
  • the fact that various types of elements can be clearly represented in the target diagram mentioned here can be understood as that humans or computers can accurately identify the outer contour of the element, so as to perform accurate contour drawing and generate contour lines or contour points.
  • the type of each element can be further accurately identified from the target diagram as required.
  • FIG. 4 is a schematic diagram of the target map provided by the embodiment of the present application. It can be seen from FIG. 4 that various types of elements are included, such as roads, single buildings, and dense building groups.
  • FIG. 5 is a schematic diagram of a vector diagram after outline drawing provided by the embodiment of the present application, and outline drawing is performed on each element in the target image by category to obtain an overall drawn outline image as shown in FIG. 5 .
  • the road elements are drawn by lines to obtain staggered network roads; the outlines of individual buildings are drawn by lines, and the element colors are filled to obtain the drawing results of individual building elements; the outlines of dense building groups are drawn by lines, And fill in the color of the elements that have been outlined, and get the result of drawing the elements of the dense building group; draw the outline of the flat land (such as a park, open space, etc.) (thinner than the road drawing lines) carry out the contour drawing of the path, and obtain the staggered network paths identified by the thin lines.
  • the flat land such as a park, open space, etc.
  • the outline is first drawn as a whole, and then the target image is enlarged to draw the outline of the details. It is also possible to zoom in on the target map first, and draw one by one in multiple areas or in multiple elements. After the drawing is completed, the drawing is saved separately according to the element type, and the outline vector graphics (Scalable Vector Graphics, SVG) containing only one element type as shown in Figure 2 is obtained.
  • SVG Scalable Vector Graphics
  • the target map is split according to each element type to generate an element vector map containing only a single element type. Then, contour description is performed on the elements in each element vector diagram; and the contour vector diagram is generated.
  • FIG. 6 is a schematic diagram of the input vector diagram provided by the embodiment of the present application. As shown in Figure 6, these contour vector graphics are input into the interactive interface, and the display effect of the split contour vector graphics can be seen in this interface. In some scenarios, it is also possible to create a three-dimensional image based on any of these elements.
  • the contour lines can be further converted into contour points. Analyzing the vector diagram data of the first type of elements in the at least one type of elements to obtain the contour points of the first type of elements includes: determining the first Contour line information of class elements; based on the contour line information of the first class elements, contour points reflecting the contours of the first class elements are obtained.
  • the vector diagram data may be expressed in the form of an outline vector diagram in SVG format. Because the outline vector diagram contains two-dimensional primitive text data, then the generative design algorithm can be used to analyze and process the two-dimensional primitive text data in the outline vector diagram.
  • an outline vector map can be an SVG format file, obtain the two-dimensional graphic element text data such as ⁇ path>, ⁇ polygon> in the SVG format file, and then parse the above two-dimensional graphic element text data on the server NodeJS , to obtain the contour points containing three-dimensional coordinate information.
  • Figure 7 is a schematic diagram of the conversion of contour lines into contour points provided by the embodiment of the present application. The intuitive feeling that can be presented to the user is the effect shown in Figure 7, which is converted from a vector diagram composed of contour lines to one composed of contour points. Vector illustration.
  • the at least one type of element is modeled to obtain the three-dimensional models respectively corresponding to the at least one type of element.
  • the three-dimensional models corresponding to the at least one type of elements are combined to generate the three-dimensional scene image.
  • three-dimensional models containing only one type of element can be generated respectively based on the coordinate information of the contour points of each type of element. For example, as shown in Fig. 8a, a three-dimensional model of a group of buildings and a three-dimensional model of a ground are obtained.
  • FIGS. 8a and 8b are schematic diagrams of the three-dimensional model generation combination provided by the embodiment of the present application. As shown in Figure 8a, each element is processed to generate a 3D model, including 3D models corresponding to individual buildings, dense buildings, roads, land, and water, and then the 3D models of these different elements are combined together to obtain the model shown in Figure 8b The complete 3D scene image shown.
  • the analyzed contour vector diagram formed by the contour points is visualized (for example, using GLSL (OpenGL Shading Language) to realize visualization), and a three-dimensional element model corresponding to each of the elements is generated.
  • GLSL OpenGL Shading Language
  • the 3D scene image After the 3D scene image is generated, it can be sent to the client for rendering processing. Specifically, perform visual processing on the various types of elements to generate a three-dimensional model of the element corresponding to each of the elements; perform visual rendering on the three-dimensional model of each of the elements according to the element type of each of the elements; A 3D model of the element is typed, and a 3D scene image representing the scene is generated.
  • users can choose the rendering style on the client side, for example, they can choose business blue style, scenic green style and so on.
  • the client performs visual rendering on the three-dimensional model of the element, so as to output a complete three-dimensional scene image.
  • FIG. 9 is a schematic flowchart of another data processing method provided in the embodiment of the present application. As can be seen from Figure 9, the following steps are included:
  • FIG. 10 is a schematic diagram of producing a three-dimensional scene image as illustrated in the embodiment of the present application.
  • a display window for inputting vector graphics data is displayed on the interactive interface of the client.
  • the vector graphics in SVG format of any type of element can be input to the cell by dragging or adding. grid.
  • the client inputs the obtained vector diagram corresponding to at least one type of element into a cell. Send to the server to obtain the vector data carried by each vector.
  • the user triggers the command to export the 3D scene image through the interactive interface, for example, by triggering the export control, the 3D scene image generated from the vector diagram data of at least one type of element can be displayed on the 3D graph display interface.
  • the 3D scene image generated from the vector diagram data of at least one type of element can be displayed on the 3D graph display interface.
  • vector graphics data of multiple element types can be imported in batches, and multiple 3D scene images can be simultaneously displayed on the 3D graphics display interface during export.
  • obtaining a 3D scene image based on vector graphics data requires complex processing, so it can be sent to the server for processing.
  • the specific processing process is as follows: the vector map data of the at least one type of element is analyzed to obtain the contour points of the at least one type of element. Coordinate information of contour points of the at least one type of element in a space coordinate system is determined. A three-dimensional scene image is generated according to the coordinate information of the outline points of the at least one type of element. For details, reference may be made to the embodiments shown in FIG. 1 to FIG. 7 .
  • the method further includes: visually rendering the 3D scene image according to the rendering configuration information configured by the user in response to the user's rendering configuration operation on the 3D image display interface. Displays the rendered rendering.
  • rendering options displayed in the interactive interface there are many different styles of rendering options displayed in the interactive interface, and the overall rendering style is designed.
  • the user can also manually select the rendering effect of each element, for example, according to the actual situation, render the building as gray, render the river as blue, and so on.
  • FIG. 11 is a schematic structural diagram of a data processing system provided by the embodiment of the present application.
  • the system includes a client and a server.
  • the client has a display device, so that the user can intuitively see the rendering effect and perform related interactive operations.
  • the server can be a local server device or a cloud server, which can provide computational support for complex calculation processes and improve the processing speed of analytical calculations and visual calculations. Specifically:
  • the client 1101 is configured to send the vector graphics data of at least one type of element input by the user through the interactive interface to the server.
  • the server 1102 is configured to acquire vector graphics data of at least one type of element; analyze the vector graphics data of said at least one type of element to obtain contour points of said at least one type of element; determine the contour of said at least one type of element Coordinate information of points in a space coordinate system; generate a three-dimensional scene image according to the coordinate information of outline points of at least one type of element.
  • the client 1101 is further configured to receive and display the 3D scene image fed back by the server.
  • the server 1102 is further configured to: determine the outline information of the first type of element according to the vector map data of the first type of element. Based on the contour line information of the elements of the first type, contour points reflecting the contours of the elements of the first type are obtained.
  • the server 1102 is also configured to: model the at least one type of element according to the coordinate information of the outline points of the at least one type of element, and obtain the three-dimensional models corresponding to the at least one type of element; according to the The coordinate information of the outline points of at least one type of element is combined with the three-dimensional models respectively corresponding to the at least one type of element to generate the three-dimensional scene image.
  • the client 1102 is further configured to: acquire rendering configuration parameters. Visually render the 3D scene image according to the rendering configuration parameters.
  • FIG. 12 is a schematic flowchart of a method for performing three-dimensional modeling based on an SVG file provided in the embodiment of the present application. Specifically include the following steps:
  • the server 1102 obtains the contained point information (that is, the two-dimensional primitive text data) from the contour vector diagram, such as ⁇ polygon>, ⁇ path>. Furthermore, the NodeJS terminal is used to parse these two-dimensional primitive text data to obtain contour points. When calculating the contour points, it can be realized by using cloud computing technology. After obtaining the contour points, it is necessary to further calculate the three-dimensional coordinate information. Furthermore, based on the three-dimensional coordinate information, the GLSL coloring language is used for visualization processing to generate a three-dimensional model of the element. Send the 3D model of the element to the client for rendering.
  • a variety of optional rendering styles can be provided according to the scene type (for example, industrial scene, campus scene, commercial office building scene). During the rendering process, users can also make multiple selective settings for the color system, light and shade, etc. in the rendering style according to their own needs.
  • FIG. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device includes a memory 1301, a processor 1302, and a communication component 1303; wherein,
  • the memory 1301 is used to store programs
  • the processor 1302, coupled to the memory, is configured to execute the program stored in the memory, for:
  • Coordinate information of contour points of the at least one type of element in a space coordinate system is determined.
  • a three-dimensional scene image is generated according to the coordinate information of the outline points of the at least one type of element.
  • the above-mentioned memory 1301 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device.
  • the memory can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • the processor 1302 in this embodiment may specifically be: a programmable switching processing chip, where a data replication engine is configured in the programmable switching processing chip, capable of replicating received data.
  • the electronic device further includes: a power supply component 1304 and other components.
  • FIG. 14 is a schematic structural diagram of a data processing device provided in an embodiment of the present application.
  • the data processing unit includes:
  • An acquisition module 1401, configured to acquire vector diagram data of at least one type of element.
  • the parsing module 1402 is configured to parse the vector map data of the at least one type of element to obtain contour points of the at least one type of element.
  • a determining module 1403 configured to determine coordinate information of contour points of the at least one type of element in a space coordinate system.
  • the generation module 1404 is configured to generate a three-dimensional scene image according to the coordinate information of the contour points of the at least one type of element.
  • the obtaining module 1401 is also used to display an interactive interface.
  • the vector diagram data of the at least one type of element input by the user is acquired.
  • the obtaining module 1401 is also used to obtain a target graph; perform element splitting on the target graph to obtain contour information of at least one type of element; obtain a vector diagram of at least one type of element according to the contour information of at least one type of element data.
  • the parsing module 1402 is further configured to determine the outline information of the first type of element according to the vector map data of the first type of element. Based on the contour line information of the elements of the first type, contour points reflecting the contours of the elements of the first type are obtained.
  • the generating module 1404 is further configured to model the at least one type of elements according to the coordinate information of the contour points of the at least one type of elements, so as to obtain the three-dimensional models corresponding to the at least one type of elements. According to the coordinate information of the outline points of the at least one type of elements, the three-dimensional models corresponding to the at least one type of elements are combined to generate the three-dimensional scene image.
  • the obtaining module 1401 is also used to obtain rendering configuration parameters. Visually render the 3D scene image according to the rendering configuration parameters.
  • an embodiment of the present application provides a computer-readable storage medium storing a computer program.
  • the computer program is executed by one or more processors, the one or more processors are caused to perform the following operations: Actions:
  • a three-dimensional scene image is generated according to the coordinate information of the outline points of the at least one type of element.
  • FIG. 15 is a schematic structural diagram of another electronic device provided in the embodiment of the present application.
  • the electronic device includes a memory 1501, a processor 1502, and a communication component 1503; wherein,
  • the memory 1501 is used to store programs
  • the processor 1502 coupled to the memory, is configured to execute the program stored in the memory, for:
  • the 3D scene image generated according to the vector map data of the at least one type of element is displayed on the 3D graph display interface.
  • the aforementioned memory 1501 may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device.
  • the memory can be realized by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • the processor 1502 in this embodiment may specifically be: a programmable switch processing chip, where a data replication engine is configured in the programmable switch processing chip, and can replicate received data.
  • the electronic device further includes: a power supply component 1504 and other components.
  • FIG. 16 is a schematic structural diagram of another data processing device provided in the embodiment of the present application.
  • the data processing unit includes:
  • the interface display module 161 is configured to display an interactive interface.
  • the data display module 162 is configured to display the vector diagram data of at least one type of elements sequentially input by the user in response to the input operation triggered by the user through the interactive interface.
  • the image display module 163 is configured to display the 3D scene image generated according to the vector diagram data of the at least one type of element on the 3D graph display interface in response to the 3D scene graph export instruction triggered by the user through the interactive interface.
  • an image generation module 164 is also included, configured to analyze the vector map data of the at least one type of element to obtain the contour points of the at least one type of element; determine the contour points of the at least one type of element in a Coordinate information in a space coordinate system; generate a three-dimensional scene image according to the coordinate information of the contour points of the at least one type of element.
  • a rendering module 165 is also included, configured to visually render the 3D scene image according to the rendering configuration information configured by the user in response to the user's rendering configuration operation on the 3D image display interface;
  • an embodiment of the present application provides a computer-readable storage medium storing a computer program.
  • the computer program is executed by one or more processors, the one or more processors are caused to perform the following operations: Actions:
  • the 3D scene image generated according to the vector map data of the at least one type of element is displayed on the 3D graph display interface.
  • the electronic device after the electronic device acquires the vector diagram data of at least one type of element, it further analyzes and processes the vector diagram data of the at least one type of element to generate outline points used to represent at least one type of element; based on at least one
  • the contour points of the class elements determine coordinate information in a space coordinate system, and then generate the three-dimensional scene image for representing at least one class of elements based on the coordinate information.
  • various element vector data can be directly used for analysis, and the contour points obtained through analysis can be used for visualization processing to generate a three-dimensional scene image.
  • the method can effectively reduce the generation cost of the three-dimensional scene image, and effectively lower the technical threshold for generating the three-dimensional scene image.
  • the technical solution of the present application is especially suitable for small-scale (for example, industrial parks, campuses, hospitals, etc.), low-cost three-dimensional scene mapping application scenarios.
  • the device embodiments described above are only illustrative, and 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 it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
  • the embodiment of the present application further provides a computer program, which is used to implement the above method in the embodiment of the present application when the computer program is executed by a processor.
  • a computer program which is used to implement the above method in the embodiment of the present application when the computer program is executed by a processor.
  • it is used to implement the methods in FIG. 1 , FIG. 3 , FIG. 9 and FIG. 12 .
  • the embodiment of the present application further provides a computer program product, including the computer program, when the above computer program is executed by a processor, to implement the above method in the embodiment of the present application.
  • a computer program product including the computer program, when the above computer program is executed by a processor, to implement the above method in the embodiment of the present application.
  • it is used to implement the methods in FIG. 1 , FIG. 3 , FIG. 9 and FIG. 12 .
  • each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware.
  • the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

Abstract

一种数据处理方法、系统及电子设备。其中,方法包括:获取至少一类元素的矢量图数据。对至少一类元素的矢量图数据进行解析,得到至少一类元素的轮廓点。确定至少一类元素的轮廓点在一空间坐标系下的坐标信息。根据至少一类元素的轮廓点的坐标信息,生成三维场景图像。本申请实施例提供的技术方案,可以直接利用各类元素矢量数据进行解析,并利用解析得到的轮廓点后进行可视化处理就能够生成三维场景图像。能够有效降低三维场景图像的生成成本,有效降低三维场景图像生成的技术门槛。

Description

数据处理方法、系统及电子设备
本申请要求于2021年7月28日提交中国专利局、申请号为202110859361.1、申请名称为“数据处理方法、系统及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,尤其涉及数据处理方法、系统及电子设备。
背景技术
随着计算机技术和地理信息数据相关技术的发展,三维地图显示场景应用越来越广泛。
在实际应用过程中,地理信息系统技术需要通过借助卫星进行地图数据的采集。普通用户想要使用地理信息系统数据(Geographic Information System,GIS)的时候,需要支付较高的费用才能获得GIS数据的使用权限。进而,基于GIS数据进行可视化处理,生成对应的三维场景图像。然而免费的GIS数据无法满足建立三维场景图像的精度需求。还有一种方式可以不依赖于GIS数据,利用三维制图软件由技术人员进行人工建模的方式将整个场景中各类地理要素进行还原。这种方式对技术要求比较高,需要专业技术人员应用三维软件才能实现,增加了人工成本和时间成本。
发明内容
为解决或改善现有技术中存在的问题,本申请各实施例提供了数据处理方法、系统及电子设备。
第一方面,在本申请的一个实施例中,提供了一种数据处理方法。该方法包括:
获取至少一类元素的矢量图数据;
对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
第二方面,本申请的一个实施例中,提供了另一种数据处理方法。该方法包括:
显示交互界面;
响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
第三方面,在本申请的一个实施例中,提供了一种数据处理系统。所述系统包括:
客户端,用于将用户通过交互界面输入的至少一类元素的矢量图数据发送至服务端;
服务端,用于获取至少一类元素的矢量图数据;对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像;
客户端,还用于接收所述服务端反馈的所述三维场景图像并进行显示。
第四方面,在本申请的一个实施例中,提供了一种电子设备。该电子设备包括:存储器及处理器;其中,
所述存储器,用于存储程序;
所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以用于实现上述第一方面所述的数据处理方法;或第二方面所述的数据处理方法。
第五方面,在本申请的一个实施例中,提供了一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
获取至少一类元素的矢量图数据;
对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
第六方面,在本申请的一个实施例中,提供了一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
显示交互界面;
响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图 展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
第七方面,在本申请的一个实施例中,提供了一种数据处理的装置,该装置包括:
获取模块,用于获取至少一类元素的矢量图数据;
解析模块,用于对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
确定模块,用于确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;生成模块,用于根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
第八方面,在本申请的一个实施例中,提供了一种数据处理的装置,该装置包括:
界面显示模块,用于显示交互界面;
数据显示模块,用于响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
图像显示模块,用于响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
第九方面,在本申请的一个实施例中,提供了一种计算机程序,所述计算机程序被处理器执行时,用于实现第一方面或第一方面中的任一种可能的实现方式中的方法,或者,用于实现第二方面或第二方面中的任一种可能的实现方式中的方法。
第十方面,在本申请的一个实施例中,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,用于实现第一方面或第一方面中的任一种可能的实现方式中的方法,或者,用于实现第二方面或第二方面中的任一种可能的实现方式中的方法。本申请实施例提供的技术方案,在电子设备获取至少一类元素的矢量图数据之后,进一步对所述至少一类元素的矢量图数据进行解析处理,生成用于表示至少一类元素的轮廓点;基于至少一类元素的轮廓点确定在一空间坐标系下的坐标信息,进而基于坐标信息生成用于表示至少一类元素的所述三维场景图像。采用上述技术方案,可以直接利用各类元素矢量数据进行解析,并利用解析得到的轮廓点后进行可视化处理就能够生成三维场景图像。能够有效降低三维场景图像的生成成本,有效降低三维场景图像生成的技术门槛。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地, 下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种数据处理方法的流程示意图;
图2为本申请实施例中举例说明的多类型元素矢量图的示意图;
图3为本申请实施例提供的一种获取矢量图数据方法的流程示意图;
图4为本申请实施例提供的目标图的示意图;
图5为本申请实施例提供的轮廓描绘后矢量图的示意图;
图6为本申请实施例提供的输入矢量图的示意图;
图7为本申请实施例提供的轮廓线转换为轮廓点的示意图;
图8a、8b为本申请实施例提供的三维模型生成组合的示意图;
图9为本申请实施例提供的另一种数据处理方法的流程示意图;
图10为本申请实施例举例说明的生产三维场景图像的示意图;
图11为本申请实施例提供的一种数据处理系统的结构示意图;
图12为本申请实施例提供的一种基于SVG文件进行三维建模的方法流程示意图;
图13为本申请实施例提供的一种电子设备的结构示意图;
图14为本申请实施例提供的一种数据处理装置的结构示意图;
图15为本申请实施例提供的另一种电子设备的结构示意图;
图16为本申请实施例提供的另一种数据处理装置的结构示意图。
具体实施方式
为了满足用户三维场景图像的应用需求,三维场景图像的建立人员需要从GIS数据提供公司购买数据使用权限。在一些小范围三维建图场景(比如,校园、工业园区、商业区)中,用户通常想要低成本、短时间内实现三维图像的建立。一般来说,开源免费的GIS数据不够精细,无法满足园区、校园等小范围三维场景图像的生成需求,而采购商用GIS数据的成本太高,对于小的应用场景(比如,园区三维图像、校园三维图像)来说难以承受这笔数据费用支出。此外,也可以通过人工建模方式实现,比如,3DSMax、C4D、Sketch Up等传统的三维建模软件中,直接将现实中的场景通过人工建模的形式进行还原。但是需要专业技术人员进行大量工作才能完成,所需要的人工成本和时间成本都比较高。因此,本申请提出一种能够简便、低成本生成三维场景图像的技术方案。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
在本申请的说明书、权利要求书及上述附图中描述的一些流程中,包 含了按照特定顺序出现的多个操作,这些操作可以不按照其在本文中出现的顺序来执行或并行执行。操作的序号如101、102等,仅仅是用于区分各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。此外,下文描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1为本申请实施例提供的一种数据处理方法的流程示意图。可以应用于图像生成工具。从图1中可以看到,包括如下步骤:
101:获取至少一类元素的矢量图数据。
102:对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点。
103:确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息。
104:根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
这里所说的元素,可以是通过实际场景所采集到的目标图中所包含的道路、山、水、单体建筑、密集建筑群等等。这里所说的矢量图数据可以是SVG格式的矢量图中所包含的数据。在SVG格式矢量图中包含有多种二维图元文本数据,比如,矩形<rect>、圆形<circle>、椭圆形<ellipse>、线<line>、折线<polyline>、路径<path>等。因此,当需要输入矢量图数据的时候,可以通过直接输入SVG格式矢量图的方式完成矢量图数据的输入,之后由计算机后台可以容易获取到所需的矢量图数据。需要说明的是,这些元素的矢量图数据都是相互独立的,换言之,每个SVG格式矢量图中只包含有一种类型元素,比如,只包含有道路元素的矢量图数据,以便分别进行解析、可视化处理。
如图2为本申请实施例中举例说明的多类型元素矢量图的示意图。图2中包含有多个由轮廓线构成的矢量图,分别是,平地轮廓矢量图、道路轮廓矢量图、楼群(密集建筑群)矢量图、建筑(单体建筑)矢量图、小路矢量图。这些元素矢量图都是相互独立的,以便分别进行解析、可视化处理。这里的矢量图数据能够准确的反应出目标图中所包含的至少一类元素的图像信息。
下面将对矢量图数据的获取方式进行举例说明。如图3为本申请实施例提供的一种获取矢量图数据方法的流程示意图。从图3中可以看到,具体包括如下步骤:
301:获取目标图。
302:对所述目标图进行元素拆分,得到至少一类元素的轮廓信息。
303:根据至少一类元素的轮廓信息,得到至少一类元素的矢量图数据。
在实际应用中可以利用图像采集设备对将要建立三维场景图像的实际场景进行图像采集,得到目标图。还可以直接利用现有免费地图软件获取到所需区域的平面地图。需要说明的是,在基于平面地图获取所需目标图的时候,需要根据实际清晰度或展示效果需求,对平面地图进行缩放,以便能够清晰展示单体楼、道路等所需元素。如果需要建立三维场景图的面积比较大,可以分割为多张目标图,然后在进行拼接。
具体来说,在进行目标图生成的时候,采用俯视角获取当前待三维场景的平面地图。从目标图中可以清楚表示各种类型元素,比如,道路、山、水、单体建筑、密集建筑群等。这里所说的目标图中可以清楚表示各种类型元素可以理解为,人或者计算机能够准确的识别出元素外轮廓,以便能够进行准确的轮廓描绘,生成轮廓线或轮廓点。当然根据需要,也可以进一步从目标图中准确识别出各个元素的类型。
例如,如图4为本申请实施例提供的目标图的示意图,在从图4中可以看到包含有各种类型元素,道路、单体建筑、密集建筑群等。进一步,如图5为本申请实施例提供的轮廓描绘后矢量图的示意图,对目标图中的各个元素分类别进行轮廓描绘,得到如图5所示的整体绘制轮廓图像。比如,通过线条对道路元素进行描绘,得到交错网状道路;通过线条对单体建筑进行轮廓描绘,并进行元素颜色填充,得到单体建筑元素描绘结果;通过线条对密集建筑群进行轮廓描绘,并对轮廓描绘完成的元素进行颜色填充,得到密集建筑群元素描绘结果;通过线条对平地(比如,公园、空地等)进行轮廓描绘,并进行元素颜色填充,得到平地元素描绘结果;通过细线条(比道路描绘线条细)进行小路轮廓描绘,得到通过细线条标识的交错网状小路。
在实际进行绘制的时候,需要分层次进行,也就是先整体绘制轮廓,然后对目标图进行放大后针对细节轮廓的进行绘制。也可以先对目标图进行放大情况下,分多个片区或者分多个元素逐个绘制。并将绘制得到的绘制完成后根据元素类型分开保存,得到如图2所示的只包含有一种元素类型的轮廓矢量图(Scalable Vector Graphics,SVG)。
此外,也可以先拆分后绘制。比如,根据各元素类型对目标图进行拆分,生成仅包含单一元素类型的元素矢量图。然后,对各元素矢量图中的元素进行轮廓描述;生成所述轮廓矢量图。
在得到各个元素的轮廓矢量图之后,如图6为本申请实施例提供的输 入矢量图的示意图。如图6所示将这些轮廓矢量图输入到交互界面,在该界面中可以看到拆分后的轮廓矢量图的展示效果。在一些场景中,也可以基于其中任一元素建立三维图像。
在得到SVG格式的矢量图数据之后,可以进一步将轮廓线转换为轮廓点。对所述至少一类元素中的第一类元素的矢量图数据进行解析,得到所述第一类元素的轮廓点,包括:根据所述第一类元素的矢量图数据,确定所述第一类元素的轮廓线信息;基于所述第一类元素的轮廓线信息,得到反映所述第一类元素轮廓的轮廓点。
在本实施例中,矢量图数据可以通过SVG格式的轮廓矢量图形式表示。因为在轮廓矢量图中包含有二维图元文本数据,然后可以利用生成式设计算法对轮廓矢量图中二维图元文本数据进行解析处理。
举例来说,一个轮廓矢量图可以是一个SVG格式文件,获取SVG格式文件内<path>,<polygon>等二维图元文本数据,进而在服务端NodeJS对上述二维图元文本数据进行解析,得到含有三维坐标信息的轮廓点。如图7为本申请实施例提供的轮廓线转换为轮廓点的示意图,所能呈现给用户的直观感受是如图7所示的效果,从轮廓线构成的矢量图转换为由轮廓点构成的矢量图。
进一步地,根据所述至少一类元素的轮廓点的坐标信息,对所述至少一类元素进行建模,得到至少一类元素分别对应的三维模型。根据所述至少一类元素的轮廓点的坐标信息,将至少一类元素分别对应的三维模型组合,生成所述三维场景图像。
在实际应用中,可以分别基于各个类型元素的轮廓点的坐标信息先分别生成仅包含一类别元素的三维模型。比如,如图8a所示得到群楼三维模型、地三维模型。
在进行三维模型建模的时候,可以将各类型元素放到同一三维空间中同时进行建模工作。因为进行三维模型建模的时候,要充分考虑到各个元素三维空间位置关系、比例关系。若分别针对各个轮廓矢量图进行建模,然后在进行三维模型的合并的时候,可能会出现某两个相邻图像之间存在干扰,或者比例关系与实际情况相差很大。
图8a、8b为本申请实施例提供的三维模型生成组合的示意图。如图8a所示,将各个元素处理生成三维模型,包括单体建筑、密集建筑、道路、地、水分别对应的三维模型,进而将这些不同元素的三维模型组合到一起,得到如图8b所示的完整的三维场景图像。
将解析后的由所述轮廓点构成的轮廓矢量图进行可视化处理(比如,利用着色语音GLSL(OpenGL Shading Language)实现可视化处理),生 成各所述元素对应的元素三维模型。
在生成三维场景图像之后,可以将其发送给客户端进行渲染处理。具体来说,对所述各类型元素进行可视化处理,生成各所述元素对应的元素三维模型;根据各所述元素的元素类型,对各所述元素三维模型进行可视化渲染;基于渲染后的各类型所述元素三维模型,生成用于表示所述场景的三维场景图像。
在进行可视化渲染的时候,针对不同的元素类型所要渲染出的效果不同。比如,针对高层建筑,渲染出高度差的效果。比如,针对道路和小路,想要渲染出具有不同等级、不同宽度的路的效果。
在实际应用中,用户可以在客户端对渲染风格进行选择,比如,可以选择商务蓝风格、田园绿风格等等。进而,由客户端对元素三维模型进行可视化渲染,从而输出完整的三维场景图像。
基于同样的思路,本申请实施例还提供一种数据处理方法。如图9为本申请实施例提供的另一种数据处理方法的流程示意图。从图9中可以看到包括如下步骤:
901:显示交互界面。
902:响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据。
903:响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
为了便于理解,下面将通过具体实施例进行举例说明。如图10为本申请实施例举例说明的生产三维场景图像的示意图。
如图10所示,在客户端的交互界面上显示有用于输入矢量图数据的展示窗口,每个单元格当中可以通过拖拽或者添加的方式,将任一类型元素的SVG格式矢量图输入到单元格当中。
进而,客户端将得到的至少一类元素对应的矢量图输入到单元格当中。发送给服务端获取到各个矢量图携带的矢量图数据。
进一步地,用户通过交互界面触发三维场景图像导出指令,比如,通过触发导出控件,在三维图展示界面上能够展示至少一类元素的矢量图数据生成的三维场景图像。在实际应用中,可以批量导入多个元素类型的矢量图数据,在导出时,可以通过三维图展示界面上同时展示多个三维场景图像。当然也可以是在后台分别生成各类型元素分别对应的单一元素三维场景图像,并在后台进行组合,得到用户可见的组合后包含所有类型元素 的三维场景图像。
具体来说,基于矢量图数据得到三维场景图像需要经过复杂的处理过程,因此,可以发送服务端进行处理。具体处理过程如下:对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点。确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息。根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。具体可参考图1至图7所示实施例。
进一步地,在生成三维场景图像之后,还包括:响应于用户再所述三维图展示界面上的渲染配置操作,按照用户配置的渲染配置信息,对所述三维场景图像可视化渲染。显示渲染后的效果图。
可以看到,在交互界面中展示有多种不同风格的渲染选项,设计总体渲染风格。当然,用户也可以自己手动选择每种元素所要渲染的效果,比如,根据实际情况,将建筑渲染为灰色,将河流渲染为蓝色等等。
本申请实施例还提供一种数据处理系统。如图11为本申请实施例提供的一种数据处理系统的结构示意图,在图11中可以看到系统当中包含有客户端和服务端。其中,客户端有显示设备,便于用户能够直观的看到渲染效果以及进行相关交互操作。服务端可以是本地服务器设备,也可以是云服务器,能够为复杂计算过程提供算了支持,提高解析计算、可视化计算的处理速度。具体来说:
客户端1101,用于将用户通过交互界面输入的至少一类元素的矢量图数据发送至服务端。
服务端1102,用于获取至少一类元素的矢量图数据;对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
客户端1101,还用于接收所述服务端反馈的所述三维场景图像并进行显示。
进一步地,服务端1102,还用于:根据所述第一类元素的矢量图数据,确定所述第一类元素的轮廓线信息。基于所述第一类元素的轮廓线信息,得到反映所述第一类元素轮廓的轮廓点。
进一步地,服务端1102,还用于:根据所述至少一类元素的轮廓点的坐标信息,对所述至少一类元素进行建模,得到至少一类元素分别对应的三维模型;根据所述至少一类元素的轮廓点的坐标信息,将至少一类元素分别对应的三维模型组合,生成所述三维场景图像。
所述客户端1102还用于:获取渲染配置参数。根据所述渲染配置参数,对所述三维场景图像可视化渲染。
如图12为本申请实施例提供的一种基于SVG文件进行三维建模的方法流程示意图。具体包括如下步骤:
获取SVG格式的矢量图并将这些矢量图文件上传到交互界面,并通过客户端1101将这些轮廓矢量图所携带的矢量图数据发送给服务端1102。
服务端1102从轮廓矢量图中获取到包含的点位信息(也就是二维图元文本数据),比如,<polygon>、<path>。进而,利用NodeJS端解析这些二维图元文本数据,得到轮廓点。在进行轮廓点计算的时候,可以利用云计算技术实现。在得到轮廓点之后,还需要进一步计算三维坐标信息。进而,基于三维坐标信息利用GLSL着色语言进行可视化处理,生成元素三维模型。将元素三维模型发送给客户端,由客户端进行渲染。在渲染的时候,可以根据场景类型(比如,是工业场景、校园场景、商务写字楼场景)提供多种可选渲染风格。在渲染过程中,用户还可以根据自己的需要对渲染风格中的色系、明暗等等进行多项选择性设置。
本申请一个实施例还提供一种电子设备。如图13为本申请实施例提供的一种电子设备的结构示意图。该电子设备包括存储器1301、处理器1302及通信组件1303;其中,
所述存储器1301,用于存储程序;
所述处理器1302,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以用于:
获取至少一类元素的矢量图数据。
对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点。
确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息。
根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
上述存储器1301可被配置为存储其它各种数据以支持在电子设备上的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令。存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
进一步地,本实施例中的所述处理器1302可以具体是:可编程交换处 理芯片,该可编程交换处理芯片中配置有数据复制引擎,能对接收到的数据进行复制。
上述处理器1302在执行存储器中的程序时,除了上面的功能之外,还可实现其它功能,具体可参见前面各实施例的描述。进一步,如图13所示,电子设备还包括:电源组件1304等其它组件。
基于同样的思路,本申请实施例还提供一种数据处理装置。如图14为本申请实施例提供的一种数据处理装置的结构示意图。该数据处理装置包括:
获取模块1401,用于获取至少一类元素的矢量图数据。
解析模块1402,用于对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点。
确定模块1403,用于确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息。
生成模块1404,用于根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
进一步地,获取模块1401,还用于显示交互界面。响应于用户通过所述交互界面触发的输入操作,获取用户输入的所述至少一类元素的矢量图数据。
进一步地,获取模块1401,还用于获取目标图;对所述目标图进行元素拆分,得到至少一类元素的轮廓信息;根据至少一类元素的轮廓信息,得到至少一类元素的矢量图数据。
进一步地,解析模块1402,还用于根据所述第一类元素的矢量图数据,确定所述第一类元素的轮廓线信息。基于所述第一类元素的轮廓线信息,得到反映所述第一类元素轮廓的轮廓点。
进一步地,生成模块1404,还用于根据所述至少一类元素的轮廓点的坐标信息,对所述至少一类元素进行建模,得到至少一类元素分别对应的三维模型。根据所述至少一类元素的轮廓点的坐标信息,将至少一类元素分别对应的三维模型组合,生成所述三维场景图像。
进一步地,获取模块1401,还用于获取渲染配置参数。根据所述渲染配置参数,对所述三维场景图像可视化渲染。
基于同样的思路,本申请实施例提供一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
获取至少一类元素的矢量图数据;
对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
本申请一个实施例还提供另一种电子设备。如图15为本申请实施例提供的另一种电子设备的结构示意图。该电子设备包括存储器1501、处理器1502及通信组件1503;其中,
所述存储器1501,用于存储程序;
所述处理器1502,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以用于:
显示交互界面;
响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
上述存储器1501可被配置为存储其它各种数据以支持在电子设备上的操作。这些数据的示例包括用于在电子设备上操作的任何应用程序或方法的指令。存储器可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
进一步地,本实施例中的所述处理器1502可以具体是:可编程交换处理芯片,该可编程交换处理芯片中配置有数据复制引擎,能对接收到的数据进行复制。
上述处理器1502在执行存储器中的程序时,除了上面的功能之外,还可实现其它功能,具体可参见前面各实施例的描述。进一步,如图15所示,电子设备还包括:电源组件1504等其它组件。
基于同样的思路,本申请实施例还提供另一种数据处理装置。如图16为本申请实施例提供的另一种数据处理装置的结构示意图。该数据处理装置包括:
界面显示模块161,用于显示交互界面。
数据显示模块162,用于响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据。
图像显示模块163,用于响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
可选地,还包括图像生成模块164,用于对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
可选地,还包括渲染模块165,用于响应于用户再所述三维图展示界面上的渲染配置操作,按照用户配置的渲染配置信息,对所述三维场景图像可视化渲染;
显示渲染后的效果图。
基于同样的思路,本申请实施例提供一种存储有计算机程序的计算机可读存储介质,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
显示交互界面;
响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
基于上述实施例,在电子设备获取至少一类元素的矢量图数据之后,进一步对所述至少一类元素的矢量图数据进行解析处理,生成用于表示至少一类元素的轮廓点;基于至少一类元素的轮廓点确定在一空间坐标系下的坐标信息,进而基于坐标信息生成用于表示至少一类元素的所述三维场景图像。采用上述技术方案,可以直接利用各类元素矢量数据进行解析,并利用解析得到的轮廓点后进行可视化处理就能够生成三维场景图像。能够有效降低三维场景图像的生成成本,有效降低三维场景图像生成的技术门槛。本申请技术方案尤其适用于小范围(比如,工业园区、校园、医院等)、小成本三维场景建图应用场景。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现 本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
可选地,本申请实施例还提供一种计算机程序,上述计算机程序在被处理器执行时,用于实现本申请实施例的上述方法。例如,用于实现图1、图3、图9和图12中的方法。
可选地,本申请实施例还提供一种计算机程序产品,包括计算机程序上述计算机程序在被处理器执行时,用于实现本申请实施例的上述方法。例如,用于实现图1、图3、图9和图12中的方法。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (24)

  1. 一种数据处理方法,其特征在于,所述方法包括:
    获取至少一类元素的矢量图数据;
    对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
    确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
    根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
  2. 根据权利要求1所述的方法,其特征在于,所述获取至少一类元素的矢量图数据,包括:
    显示交互界面;
    响应于用户通过所述交互界面触发的输入操作,获取用户输入的所述至少一类元素的矢量图数据。
  3. 根据权利要求1或2所述的方法,其特征在于,获取至少一类元素的矢量图数据之前,还包括:
    获取目标图;
    对所述目标图进行元素拆分,得到至少一类元素的轮廓信息;
    根据至少一类元素的轮廓信息,得到至少一类元素的矢量图数据。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点,包括:
    根据所述至少一类元素中的第一类元素的矢量图数据,确定所述第一类元素的轮廓线信息;
    基于所述第一类元素的轮廓线信息,得到反映所述第一类元素轮廓的轮廓点。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像,包括:
    根据所述至少一类元素的轮廓点的坐标信息,对所述至少一类元素进行建模,得到至少一类元素分别对应的三维模型;
    根据所述至少一类元素的轮廓点的坐标信息,将至少一类元素分别对应的三维模型组合,生成所述三维场景图像。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,生成所述三维场景图像之后,还包括:
    获取渲染配置参数;
    根据所述渲染配置参数,对所述三维场景图像可视化渲染。
  7. 一种数据处理方法,其特征在于,所述方法包括:
    显示交互界面;
    响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
    响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
  8. 根据权利要求7所述的方法,其特征在于,还包括:
    对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
    确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
    根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
  9. 根据权利要求7或8所述的方法,其特征在于,生成三维场景图像之后,还包括:
    响应于用户再所述三维图展示界面上的渲染配置操作,按照用户配置的渲染配置信息,对所述三维场景图像可视化渲染;
    显示渲染后的效果图。
  10. 一种数据处理系统,其特征在于,所述系统包括:
    客户端,用于将用户通过交互界面输入的至少一类元素的矢量图数据发送至服务端;
    服务端,用于获取至少一类元素的矢量图数据;对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像;
    所述客户端,还用于接收所述服务端反馈的所述三维场景图像并进行显示。
  11. 一种电子设备,其特征在于,包括存储器及处理器;其中,
    所述存储器,用于存储程序;
    所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以用于实现上述权利要求1至6中任一项所述的方法;或权利要求7至9中任一项所述的方法。
  12. 一种存储有计算机程序的计算机可读存储介质,其特征在于,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
    获取至少一类元素的矢量图数据;
    对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
    确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
    根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
  13. 一种存储有计算机程序的计算机可读存储介质,其特征在于,当所述计算机程序被一个或多个处理器执行时,致使所述一个或多个处理器执行包括以下的动作:
    显示交互界面;
    响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
    响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
  14. 一种数据处理的装置,其特征在于,包括:
    获取模块,用于获取至少一类元素的矢量图数据;
    解析模块,用于对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;
    确定模块,用于确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;
    生成模块,用于根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
  15. 根据权利要求14所述的装置,其特征在于,所述获取模块具体用于:显示交互界面;响应于用户通过所述交互界面触发的输入操作,获取用户输入的所述至少一类元素的矢量图数据。
  16. 根据权利要求14或15所述的装置,其特征在于,获取至少一类元素的矢量图数据之前,所述获取模块还用于:获取目标图;对所述目标图进行元素拆分,得到至少一类元素的轮廓信息;根据至少一类元素的轮廓信息,得到至少一类元素的矢量图数据。
  17. 根据权利要求14至16中任一项所述的装置,其特征在于,所述解析模块具体用于:根据所述至少一类元素中的第一类元素的矢量图数据,确定所述第一类元素的轮廓线信息;基于所述第一类元素的轮廓线信息,得到反映所述第一类元素轮廓的轮廓点。
  18. 根据权利要求14至17中任一项所述的装置,其特征在于,所述生成模块具体用于:根据所述至少一类元素的轮廓点的坐标信息,对所述至少一类元素进行建模,得到至少一类元素分别对应的三维模型;根据所述至少一类元素的轮廓点的坐标信息,将至少一类元素分别对应的三维模型组合,生成所述三维场景图像。
  19. 根据权利要求14至18中任一项所述的装置,其特征在于,生成 所述三维场景图像之后,所述获取模块还用于:获取渲染配置参数;根据所述渲染配置参数,对所述三维场景图像可视化渲染。
  20. 一种数据处理的装置,其特征在于,包括:
    界面显示模块,用于显示交互界面;
    数据显示模块,用于响应于用户通过所述交互界面触发的输入操作,展示用户依次输入的至少一类元素的矢量图数据;
    图像显示模块,用于响应于用户通过所述交互界面触发的三维场景图导出指令,在三维图展示界面,显示根据所述至少一类元素的矢量图数据生成的三维场景图像。
  21. 根据权利要求20所述的装置,其特征在于,还包括图像生成模块,用于:对所述至少一类元素的矢量图数据进行解析,得到所述至少一类元素的轮廓点;确定所述至少一类元素的轮廓点在一空间坐标系下的坐标信息;根据所述至少一类元素的轮廓点的坐标信息,生成三维场景图像。
  22. 根据权利要求20或21所述的装置,其特征在于,还包括渲染模块,用于响应于用户再所述三维图展示界面上的渲染配置操作,按照用户配置的渲染配置信息,对所述三维场景图像可视化渲染;控制所述显示模块显示渲染后的效果图。
  23. 一种计算机程序,其特征在于,所述计算机程序被处理器执行时,用于实现权利要求1至6中任一项所述的方法,或者,用于实现权利要求7至9中任一项所述的方法。
  24. 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序被处理器执行时,用于实现权利要求1至6中任一项所述的方法,或者,用于实现权利要求7至9中任一项所述的方法。
PCT/CN2022/107972 2021-07-28 2022-07-26 数据处理方法、系统及电子设备 WO2023005934A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110859361.1A CN115690304A (zh) 2021-07-28 2021-07-28 数据处理方法、系统及电子设备
CN202110859361.1 2021-07-28

Publications (1)

Publication Number Publication Date
WO2023005934A1 true WO2023005934A1 (zh) 2023-02-02

Family

ID=85059545

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/107972 WO2023005934A1 (zh) 2021-07-28 2022-07-26 数据处理方法、系统及电子设备

Country Status (2)

Country Link
CN (1) CN115690304A (zh)
WO (1) WO2023005934A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421089A (zh) * 2023-12-19 2024-01-19 北京山维科技股份有限公司 一种台阶类地理信息要素处理方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290222A (zh) * 2008-06-13 2008-10-22 北京天下图数据技术有限公司 通过真正射影像快速构建三维建筑物场景的方法
US20150178977A1 (en) * 2013-05-14 2015-06-25 Google Inc. Rendering Vector Maps in a Geographic Information System
CN108038890A (zh) * 2017-12-06 2018-05-15 广州视源电子科技股份有限公司 矢量图演示方法、装置、设备及计算机存储介质
CN109887074A (zh) * 2019-02-02 2019-06-14 浙江工业大学 一种基于复杂平面图像的三维建模方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101290222A (zh) * 2008-06-13 2008-10-22 北京天下图数据技术有限公司 通过真正射影像快速构建三维建筑物场景的方法
US20150178977A1 (en) * 2013-05-14 2015-06-25 Google Inc. Rendering Vector Maps in a Geographic Information System
CN108038890A (zh) * 2017-12-06 2018-05-15 广州视源电子科技股份有限公司 矢量图演示方法、装置、设备及计算机存储介质
CN109887074A (zh) * 2019-02-02 2019-06-14 浙江工业大学 一种基于复杂平面图像的三维建模方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117421089A (zh) * 2023-12-19 2024-01-19 北京山维科技股份有限公司 一种台阶类地理信息要素处理方法和装置
CN117421089B (zh) * 2023-12-19 2024-03-22 北京山维科技股份有限公司 一种台阶类地理信息要素处理方法和装置

Also Published As

Publication number Publication date
CN115690304A (zh) 2023-02-03

Similar Documents

Publication Publication Date Title
US11003344B2 (en) Modifying style layer properties of a digital map
EP4120199A1 (en) Image rendering method and apparatus, and electronic device and storage medium
US9262853B2 (en) Virtual scene generation based on imagery
CN110379010A (zh) 基于视频融合的三维地理信息可视化方法及系统
CN109446281B (zh) 基于ArcGIS的在线智能制图系统构建方法、系统与制图方法
CN113593051B (zh) 一种实景可视化方法及大坝可视化方法及计算机设备
Zhang et al. The usability of online geographic virtual reality for urban planning
Ellul et al. Investigating approaches to improving rendering performance of 3D city models on mobile devices
Bogdos et al. A tool for simulation and geo-animation of wildfires with fuel editing and hotspot monitoring capabilities
CN112906227A (zh) 一种辐射环境下的核退役虚拟仿真系统
CN105741340B (zh) 一种用于网页展示的输电线路三维场景仿真方法和系统
WO2023005934A1 (zh) 数据处理方法、系统及电子设备
CN114359501B (zh) 可配置3d可视化平台及场景搭建方法
Perhac et al. Urban fusion: visualizing urban data fused with social feeds via a game engine
WO2023159595A1 (zh) 构建和配置三维空间场景的模型的方法、装置及计算机程序产品
Brasebin et al. 3D Geovisualization & stylization to manage comprehensive and participative Local Urban Plans
Virtanen et al. Browser based 3D for the built environment
Buyukdemircioglu et al. Development of a smart city concept in virtual reality environment
Yuan et al. Key techniques of virtual reality for the development of digital tourism systems
Senyurdusev et al. Exploring the opportunities of open source data use in creation 3d procedural city models
CN117095135B (zh) 可在线编辑的工业三维场景建模布置方法、装置
Mahoney et al. Interactive landscape simulations for visual resource assessment
Somanath et al. On procedural urban digital twin generation and visualization of large scale data
Wei Research on Digital Twin City Platform Based on Unreal Engine
Xu et al. Construction of virtual campus information system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22848539

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE