A multi-dimensional perception method, system, device and storage medium
By acquiring spatial data and establishing a three-dimensional model, and using 3DMAX tools to create scene models, it solves the problems of data display complexity and system redundancy in the existing technology, and realizes convenient display and real-time monitoring of data sources in three-dimensional scenes.
Patent Information
- Application Number
- CN202011086079.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-10-12
AI Technical Summary
The existing three-dimensional visualization technology for building or terrain data has complex usage methods and complicated systems, making it difficult to conveniently display data sources in the three-dimensional scene through labels.
By acquiring spatial data, a three-dimensional model is established, and tools such as 3DMAX are used to create scene models, export obj format files, display data in combination with a multi-dimensional perception platform, and use label UI to display longitude and latitude data to achieve accurate display of data in three-dimensional scenes.
It enables data sources to be conveniently displayed in three-dimensional scenes in the form of labels. The system is streamlined and suitable for real-time monitoring and data collection in a certain area.
Smart Images

Figure CN112215947B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional visualization technology, and specifically to a multi-dimensional perception method, system, device and storage medium. Background Art
[0002] Three-dimensional visualization is a tool used to display, describe and understand the characteristics of many underground and ground geological phenomena. It is widely used in all fields of geology and geophysics. It can use a large amount of data to check the continuity of data, identify the authenticity of data, discover and propose useful anomalies, and provide a useful tool for analyzing, understanding and repeating data. The existing three-dimensional visualization technology used in building or terrain data has the disadvantages of complex usage methods and complicated systems. In this regard, a multi-dimensional perception method and system that is easy to use, can effectively display data sources in a three-dimensional scene in the form of tags, and has a streamlined system is proposed. Summary of the invention
[0003] The purpose of the present invention is to provide a multi-dimensional perception method, system, device and storage medium to solve the problems raised in the above background technology.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A multi-dimensional sensing method, comprising:
[0006] Obtain collected spatial data;
[0007] Analyze and record the acquired spatial data;
[0008] Build a three-dimensional model based on the data collected from the analyzed and recorded space;
[0009] Access third-party data sources or self-built data;
[0010] Based on the data source collected by a third party or the self-built data source and the 3D model data source, they are displayed in the 3D scene in the form of labels.
[0011] Furthermore, the establishing of the three-dimensional model specifically includes:
[0012] By using a camera device, an image file is captured in a target space scene to obtain an image file;
[0013] The obtained image file is manually measured to obtain parameters of the scene building; the parameters include length, width, height, material, texture building and terrain data;
[0014] Based on manually measured building or terrain data, a scene model is created using 3D modeling tools;
[0015] The display of the three-dimensional scene specifically includes:
[0016] Export the scene model to obj format;
[0017] The multi-dimensional perception platform web page loads the obj format file to display the three-dimensional image on the page;
[0018] Access a third-party data source or a self-built data source through an interface, and write the longitude and latitude data in JSON format to the cache area;
[0019] By importing data to the management backend, the management backend generates JSON format with longitude and latitude data to the cache area;
[0020] Display the JSON data in the cache in the label UI of the multi-dimensional perception platform;
[0021] Display the label UI at the corresponding position in the 3D scene according to the longitude and latitude.
[0022] Furthermore, the three-dimensional modeling tool adopts 3DMAX, and the scene model is produced by 3DMAX including:
[0023] Import the edited CAD plane parameter data file with coordinate information into 3DMAX;
[0024] Use tools such as line extrusion in 3DMAX to build basic models of buildings or terrain;
[0025] The plane position of the building or terrain is obtained using aerial survey editing data, and the height information of the building or terrain is obtained using aerial survey collection data;
[0026] Use the model transformation tools in 3DMAX to create building or terrain models and produce scene models.
[0027] Furthermore, the page displaying the three-dimensional image specifically includes:
[0028] Initialize the 3D scene and add the main scene to the canvas;
[0029] Add a camera and parse the data obtained from the queue.
[0030] The new data is found in the dynamically configured form through rebbitMq;
[0031] Store records and save data;
[0032] According to the storage source, get the fields that need to save data, loop the fields, save each field during the loop, and write data only when there is data;
[0033] Save the data, and the page showing the 3D image will be displayed after the operation is completed;
[0034] Wherein: After saving the data:
[0035] Get the screen coordinates of the three-dimensional object through World To Screen Point;
[0036] Use Raycast Hit to obtain the world coordinates of the position of the 3D object where the mouse clicks;
[0037] Record and output the screen coordinates of three-dimensional objects and the world coordinates of the terrain position where the mouse is clicked.
[0038] Furthermore, the writing of the JSON format with longitude and latitude data into the cache area specifically includes:
[0039] Determine the parameters that must be passed;
[0040] Detecting whether the parameter exists;
[0041] Assemble conditional statements. If there are conditions, get the total number. If there are no conditions, get the total number of data.
[0042] Furthermore, the display of the json data in the cache area in the tag UI of the multi-dimensional perception platform includes obtaining the json data to create a tag, and the tag creation also includes:
[0043] Initialize UI labels and points;
[0044] Update location in real time.
[0045] To achieve the above object, the present invention also provides the following technical solutions:
[0046] A multi-dimensional sensing system, comprising:
[0047] An acquisition module, used to acquire collected spatial data;
[0048] An analysis and recording module is used to analyze and record the acquired spatial data;
[0049] Modeling module, which builds a three-dimensional model based on the data collected from the analyzed and recorded space;
[0050] Receiving module, to obtain third-party data sources or self-built data;
[0051] The scene module displays the data in the three-dimensional scene in the form of tags based on the data source collected by a third party or the self-built data source and the three-dimensional model data source.
[0052] Furthermore, the data acquisition module is based on a camera device, the modeling module is based on 3DMAX modeling, the receiving module is based on a data server, and the multi-dimensional perception platform includes a display screen.
[0053] To achieve the above object, the present invention also provides the following technical solutions:
[0054] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of any one of the above methods when executing the computer program.
[0055] To achieve the above object, the present invention also provides the following technical solutions:
[0056] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the methods described above.
[0057] Compared with the prior art, the present invention has the following beneficial effects:
[0058] The present invention has the function of spatial data collection, establishing a three-dimensional model through the spatially collected data, connecting to a third-party data source or self-built data, and then displaying the data source in the three-dimensional scene in the form of a label. It is a multi-dimensional perception method and system that is easy to use and can effectively display the data source in the three-dimensional scene in the form of a label, and the system is streamlined. It can be used in a certain area space to monitor the situation in the area at any time. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flowchart of the multi-dimensional perception method of the present invention.
[0060] Figure 2 This is a block diagram of the multi-dimensional perception system of the present invention.
[0061] Figure 3 This is a specific block diagram of the multi-dimensional perception system of the present invention.
[0062] Figure 4 This is a block diagram of the system initialization, algorithm and main program architecture of the present invention.
[0063] Figure 5 It is a diagram of the internal structure of the computer device of the present invention. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] In the description of the present invention, it should be noted that the terms "upper / lower end", "inner", "outer", "front end", "rear end", "two ends", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0066] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "setting / sleeving", "sleeve connection", "connection", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] See also Figure 1-5 , the present invention provides a technical solution:
[0068] A multi-dimensional perception method comprises the following steps:
[0069] S101, acquiring collected spatial data;
[0070] S102, analyzing and recording the acquired spatial data;
[0071] S103, establishing a three-dimensional model based on the spatially collected data recorded by analysis;
[0072] S104, obtaining third-party data sources or self-built data;
[0073] S105 . Display the acquired third-party collected data source or self-built data source and three-dimensional model data source in the three-dimensional scene in the form of tags.
[0074] The following further explains:
[0075] The multi-dimensional intelligent sensing system is a system that can display data in a three-dimensional scene. The multi-dimensional intelligent sensing system is divided into four parts. The first part is the collection of spatial data, the second part is to build a three-dimensional model through the data collected in space, the third part is to connect to third-party data sources or self-built data, and the fourth part is to display the data collected by the third party or the data built by the system in the three-dimensional scene in the form of tags.
[0076] The overall process of the multi-dimensional perception system
[0077] The first step is to shoot an image file in the target space scene by using a camera device to obtain an image file;
[0078] The second step is to manually measure the length, width, height, material, texture and other building and terrain data in the scene buildings using the image file;
[0079] The third step is to create a scene model using 3D modeling tools based on manually measured building or terrain data;
[0080] Step 4: Export the model to obj format;
[0081] Step 5: Load the obj format file on the multi-dimensional perception platform web page to display the three-dimensional image on the page; the key code is implanted as follows;
[0082]
[0083]
[0084] Step 7: Import data to the management backend, and generate a json format with longitude and latitude data to the cache area; The key code is implanted as follows:
[0085]
[0086]
[0087]
[0088] Step 6: Access a third-party data source or a self-built data source through an interface, and write the JSON format with longitude and latitude data into the cache area; the key code is implanted as follows:
[0089]
[0090]
[0091] Step 8: Display the JSON data in the cache in the label UI of the multi-dimensional perception platform. The key code is implanted as follows:
[0092]
[0093]
[0094]
[0095] Step 9: Display the label UI at the corresponding position in the 3D scene according to the longitude and latitude.
[0096] The multi-dimensional perception system uses an algorithm to convert the coordinates of a three-dimensional object into screen coordinates. The algorithm rules are as follows:
[0097] Get the screen coordinates of a three-dimensional object through WorldToScreenPoint.
[0098] Use RaycastHit to get the world coordinates of the position where the mouse clicks on a 3D object.
[0099] Record and output the screen coordinates of three-dimensional objects and the world coordinates of the terrain position where the mouse is clicked.
[0100] System initialization, algorithm and main program architecture are as follows Figure 4 As shown,
[0101] At the beginning of the program, the 3D display module is initialized first, and then the label module and JSON data cache module are initialized. After initialization, the program enters the main loop, which mainly runs the algorithm for converting 3D object coordinates into screen coordinates.
[0102] The hardware environment in which the system of the present invention runs is CPU: AMD Ryzen II 2700 Eight-Core Processor, memory: 16 GB (Asgard DDR4 2400 MHz), hard disk: 240 GB (solid state hard disk); the system environment in which the system runs is Windows 10 Enterprise Edition; the software environment in which the system runs is Google Chrome.
[0103] The present invention can be used for monitoring in a certain area, and the latest status of the situation in the area can be obtained at any time. The three-dimensional collection of the space can also be used for storage and comparison.
[0104] Use the following test:
[0105] Usability test results
[0106]
[0107] Reliability test results
[0108]
[0109] Portability test results
[0110]
[0111] This system mainly has the following functions:
[0112] (1) Spatial data collection; (2) Building a 3D model using spatially collected data; (3) Connecting to third-party data sources or self-built data; (4) Displaying the data source in the 3D scene in the form of tags.
[0113] The present invention (1) needs to establish a model through three-dimensional modeling software and (2) is developed using JS and JAVA languages.
[0114] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for three-dimensional architectural visualization perception that can update architectural data in real time using UI tags. It is characterized in that include: Obtain collected spatial data; Analyze and record the acquired spatial data; Build a three-dimensional model based on the data collected from the analyzed and recorded space; Access third-party data sources or self-built data; Based on the acquired third-party data sources or self-built data sources and 3D model data sources, they are displayed in the 3D scene in the form of labels; The three-dimensional model establishment specifically includes: By using a camera device, an image file is captured in a target space scene to obtain an image file; The obtained image file is manually measured to obtain parameters of the scene building; the parameters include length, width, height, material, texture building and terrain data; Based on manually measured building or terrain data, a scene model is created using 3D modeling tools; The display of the three-dimensional scene specifically includes: Export the scene model to obj format; The multi-dimensional perception platform web page loads the obj format file to display the three-dimensional image on the page; Access a third-party data source or a self-built data source through an interface, and write the longitude and latitude data in JSON format to the cache area; By importing data to the management backend, the management backend generates JSON format with longitude and latitude data to the cache area; Display the JSON data in the cache in the label UI of the multi-dimensional perception platform; Display the label UI at the corresponding position in the 3D scene according to the longitude and latitude; The three-dimensional modeling tool adopts 3DMAX, and the scene model produced by 3DMAX includes: Import the edited CAD plane parameter data file with coordinate information into 3DMAX; Use the line extrusion tool in 3DMAX to build the basic model of buildings or terrain; The plane position of the building or terrain is obtained using aerial survey editing data, and the height information of the building or terrain is obtained using aerial survey collection data; Use the model transformation tools in 3DMAX to create building or terrain models and produce scene models; The page displays a three-dimensional image specifically including: Initialize the 3D scene and add the main scene to the canvas; Add a camera and parse the data obtained from the queue. The new data is found in the dynamically configured form through rebbitMq; Store records and save data; According to the storage source, get the fields that need to save data, loop the fields, save each field during the loop, and write data only when there is data; Save the data, and the page showing the 3D image will be displayed after the operation is completed; Wherein: After saving the data: Get the screen coordinates of the three-dimensional object through World To Screen Point; Use Raycast Hit to obtain the world coordinates of the position of the 3D object where the mouse clicks; Record and output the screen coordinates of three-dimensional objects and the world coordinates of the terrain position where the mouse is clicked; The writing of the JSON format with longitude and latitude data into the cache area specifically includes: Determine the parameters that must be passed, including length, width, height, material, texture, building and terrain, longitude and latitude data, and pass the three-dimensional data screening conditions to be generated in "condition"; Detecting whether the parameter exists; Assemble conditional statements, assemble query statements through conditional parameters passed in by condition, including 3D point parameter conditions, longitude and latitude, offset of the corresponding upper left corner point of the map, spatial height and additional attributes of 3D data as conditions; If there is a condition, get the total number, if there is no condition, get the total number of data; The display of the json data in the cache area in the label UI of the multi-dimensional perception platform includes acquiring the json data to create a label, and the label creation also includes: Initialize UI labels and points; Update location in real time.
2. According to claim 1, a method for three-dimensional visualization perception of buildings capable of updating building data in real time using UI tags, It is characterized in that The acquisition module is based on the camera device, the modeling module is based on 3DMAX modeling, the receiving module is based on the data server, and the scene module includes a host computer and a display screen.
3. A multi-dimensional perception system formed by the method according to any one of claims 1 to 2, It is characterized in that include: An acquisition module, used to acquire collected spatial data; An analysis and recording module is used to analyze and record the acquired spatial data; Modeling module, which builds a three-dimensional model based on the data collected from the analyzed and recorded space; Receiving module, to obtain third-party data sources or self-built data; The scene module displays the data in the three-dimensional scene in the form of tags based on the data source collected by a third party or the self-built data source and the three-dimensional model data source.
4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 2 are implemented.
5. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
