Three-dimensional data compression method, data decompression method, electronic device and storage medium

Through semantic analysis of 3D data and deletion of attribute information, the problem of large data volume after 3D data compression is solved, and the accuracy of data volume reduction and decompression is achieved.

CN118283278BActive Publication Date: 2024-09-03SHENZHEN XGRIDS-INNOVATION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410570861.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-03
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively compress three-dimensional data, resulting in a large amount of compressed data, which cannot meet the demand for data reduction.

Method used

Through semantic analysis of the three-dimensional data, the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions is determined, and these models are deleted, and the deleted semantic information and attribute information are retained for compression.

Benefits of technology

It greatly reduces the amount of compressed data, retains semantic information and attribute information without increasing the amount of data, and can accurately restore data during decompression, improving data compression efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118283278B
    Figure CN118283278B
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and discloses a three-dimensional data compression method, a data decompression method, a three-dimensional data compression device, an electronic device, and a computer-readable storage medium. The three-dimensional data compression method includes: obtaining original three-dimensional data; performing semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data; determining the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions; compressing the original three-dimensional data, deleting the three-dimensional model corresponding to the semantic information that meets the preset conditions, and retaining the semantic information and attribute information of the deleted three-dimensional model to obtain compressed data. In the above manner, the present application can obtain compressed data with a small amount of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and specifically to a three-dimensional data compression method, a data decompression method, a three-dimensional data compression device, an electronic device, and a computer-readable storage medium. Background Art

[0002] The amount of three-dimensional data in the form of three-dimensional point clouds, grids, voxels, etc. is large. In order to reduce the amount of three-dimensional data, improve transmission efficiency, and reduce storage space occupation, the three-dimensional data can be compressed before transmission and storage.

[0003] When compressing three-dimensional data, if only part of the data is directly deleted for the data with low importance, the amount of compressed data is still large. Therefore, how to compress the three-dimensional data to obtain compressed data with less data amount is a problem that needs to be solved. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a three-dimensional data compression method, a data decompression method, a three-dimensional data compression device, an electronic device and a storage medium, which are used to solve the problem in the prior art that after compressing three-dimensional data, it is impossible to obtain compressed data with a smaller data volume.

[0005] According to one aspect of an embodiment of the present application, a three-dimensional data compression method is provided, the method comprising: acquiring original three-dimensional data; performing semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data; determining attribute information of the three-dimensional model corresponding to the semantic information that meets a preset condition; compressing the original three-dimensional data, deleting the three-dimensional model corresponding to the semantic information that meets the preset condition, and retaining the semantic information and attribute information of the deleted three-dimensional model to obtain compressed data.

[0006] In an optional manner, the determining the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions includes: determining the level corresponding to each semantic information in a pre-stored level table; determining the position information of the three-dimensional model corresponding to the semantic information of the N2th level; the compressing the original three-dimensional data, deleting the three-dimensional model corresponding to the semantic information that meets the preset conditions, and retaining the semantic information and attribute information of the deleted three-dimensional model to obtain the compressed data, includes: deleting the three-dimensional model corresponding to the semantic information of the N2th level, and retaining the semantic information and position information of the three-dimensional model corresponding to the semantic information of the N2th level to obtain the compressed data.

[0007] In an optional manner, after determining the level corresponding to each semantic information in a pre-stored level table, the method further includes: determining attribute information of the three-dimensional model corresponding to the semantic information of the N1th level, wherein the attribute information of the three-dimensional model corresponding to the semantic information of the N1th level includes position information and at least one of size information and color information; deleting the three-dimensional model corresponding to the semantic information of the N1th level, and retaining the semantic information and attribute information of the three-dimensional model corresponding to the semantic information of the N1th level, wherein the N1th level is higher than the N2th level.

[0008] In an optional manner, after determining the level corresponding to each semantic information in a pre-stored level table, the method further includes: retaining all data of the three-dimensional model corresponding to the semantic information of the X1th level; retaining part of the data of the three-dimensional model corresponding to the semantic information of the X2th level, wherein the X1th level is higher than the X2th level, and the X2th level is higher than the N1th level.

[0009] According to another aspect of an embodiment of the present application, a data decompression method is provided, the method comprising: obtaining compressed data, wherein the compressed data is data obtained by compressing original three-dimensional data by the three-dimensional data compression method as described above; decompressing the compressed data to generate data corresponding to semantic information and attribute information of a deleted three-dimensional model, thereby obtaining decompressed data.

[0010] In an optional manner, the attribute information includes position information, and the compressed data is decompressed to generate data corresponding to the semantic information and attribute information of the deleted three-dimensional model to obtain the decompressed data, including: determining a target icon corresponding to the semantic information of the deleted three-dimensional model from a pre-stored icon library; generating the target icon at a position corresponding to the position information of the deleted three-dimensional model to obtain the decompressed data.

[0011] In an optional manner, after generating an icon corresponding to the semantic information of the deleted three-dimensional model at a position corresponding to the position information of the deleted three-dimensional model, the method further includes: if the compressed data also includes size information of the deleted three-dimensional model, performing size adjustment processing on the target icon according to the size information; if the compressed data also includes color information of the deleted three-dimensional model, performing color adjustment processing on the target icon according to the color information.

[0012] According to another aspect of an embodiment of the present application, a three-dimensional data compression device is provided, the device comprising: an acquisition module for acquiring original three-dimensional data; a semantic analysis module for performing semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data; a determination module for determining attribute information of the three-dimensional model corresponding to the semantic information that meets a preset condition; and a data compression module for compressing the original three-dimensional data, deleting the three-dimensional model corresponding to the semantic information that meets the preset condition, and retaining the semantic information and attribute information of the deleted three-dimensional model to obtain compressed data.

[0013] According to another aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store executable instructions, and the executable instructions enable the processor to execute the three-dimensional data compression method as described above and / or the data decompression method as described above.

[0014] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein executable instructions are stored in the storage medium, and the executable instructions, when run, execute the three-dimensional data compression method and / or the data decompression method as described above.

[0015] In the embodiment of the present application, by completely deleting the three-dimensional data that meets the preset conditions in the original three-dimensional data, compared with the method of only clearing part of the point cloud data of the three-dimensional model, for example, in order to know the object corresponding to the three-dimensional model corresponding to the semantic information that meets the preset conditions, only 70% of the three-dimensional data is cleared, and the point cloud data of the edge of the three-dimensional model is retained, which greatly reduces the amount of compressed data. In addition, since the retained semantic information and attribute information do not belong to the three-dimensional data, the amount of data is small. Therefore, the retained semantic information and attribute information corresponding to the deleted three-dimensional model will not cause the amount of compressed data obtained in the end to be too large. In addition, since the semantic information and attribute information corresponding to the deleted three-dimensional model are retained in the compressed data, the semantic information and attribute information of the deleted three-dimensional data can be directly obtained from the compressed data, so that when the compressed data is subsequently decompressed, restored, and analyzed, the decompressed and restored data with higher accuracy can be obtained.

[0016] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0018] Figure 1 A schematic diagram of a process flow of a three-dimensional data compression method provided in an embodiment of the present application is shown;

[0019] Figure 2 A schematic diagram showing a flow chart of a three-dimensional data compression method provided by another embodiment of the present application is shown;

[0020] Figure 3 A schematic flow chart of a three-dimensional data compression method provided in another embodiment of the present application is shown;

[0021] Figure 4 A schematic flow chart of a three-dimensional data compression method provided in another embodiment of the present application is shown;

[0022] Figure 5 A schematic flow chart of a three-dimensional data compression method provided in another embodiment of the present application is shown;

[0023] Figure 6 A schematic diagram showing a flow chart of a data decompression method provided in an embodiment of the present application is shown;

[0024] Figure 7 A schematic diagram of the structure of a three-dimensional data compression device provided in an embodiment of the present application is shown;

[0025] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein.

[0027] The inventors of the present application have found in their research that, compared with one-dimensional data and two-dimensional data, three-dimensional data has a larger data volume because it contains more dimensions and information than one-dimensional data and two-dimensional data. When compressing three-dimensional data, generally only part of the three-dimensional data is deleted on the basis of the original three-dimensional data, and the remaining three-dimensional data is retained to obtain compressed data. Since the data volume of three-dimensional data is large, even if part of the three-dimensional data is deleted, the data volume of the remaining three-dimensional data is still large, that is, the data volume of the compressed data is large. For the original three-dimensional data, if it can be represented by data with lower dimensions and less data volume, and the corresponding three-dimensional data is deleted, then the data volume of the compressed data can be greatly reduced.

[0028] Therefore, based on the above considerations, when compressing three-dimensional data, in order to obtain compressed data with a smaller data volume, the present application proposes a three-dimensional data compression method. After performing semantic analysis on the three-dimensional data, the three-dimensional data corresponding to the semantic information that meets the preset conditions is replaced with its corresponding semantic information, and the corresponding three-dimensional data is completely deleted, thereby obtaining compressed data with a smaller data volume.

[0029] Figure 1 A flow chart of a three-dimensional data compression method provided in an embodiment of the present application is shown, and the method is executed by a terminal device. The terminal device may be a terminal device including one or more processors, and the processor may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement an embodiment of the present invention, which is not limited here. The one or more processors included in the terminal device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs, which is not limited here. Figure 1 As shown, the method comprises the following steps:

[0030] Step 110: Acquire original three-dimensional data.

[0031] Among them, three-dimensional data refers to data with three dimensions. Three-dimensional data includes point clouds, meshes, and voxels. Point clouds are composed of a series of points in three-dimensional space, each of which corresponds to X-axis, Y-axis, and Z-axis coordinate information, and may also contain other attribute information, such as color. Point clouds are often used to represent the outer surface of objects. For example, after scanning a three-dimensional scene in the real world with a laser scanner, a three-dimensional model corresponding to the shape of the object in the real world composed of point clouds can be obtained. A mesh is composed of multiple polygons (usually triangles or squares), which are connected together by shared vertices to form a continuous surface. Meshes are often used in three-dimensional modeling and rendering, and can approximate complex geometric shapes. Voxel is the abbreviation of volume element, which indicates the smallest unit of three-dimensional data in spatial division, similar to pixels in two-dimensional data.

[0032] In this step, the original three-dimensional data refers to the three-dimensional data to be compressed. For the sake of convenience, the following is an example of the original three-dimensional data being point cloud data. After the three-dimensional scene is scanned by a laser scanner, if there are multiple objects in the scanned area, the obtained point cloud data will also include three-dimensional models corresponding to the multiple objects, and each three-dimensional model is composed of multiple points.

[0033] Step 120: Perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data.

[0034] Among them, since the three-dimensional model composed of multiple points in the point cloud data obtained in step 110 corresponds to the shape of an object in the real world, in this step, by performing semantic analysis based on the three-dimensional geometric features of the original three-dimensional data, the semantic information corresponding to each three-dimensional model in the original three-dimensional data can be obtained, wherein the original three-dimensional data can be semantically analyzed using an existing algorithm. For example, if the original three-dimensional data includes three-dimensional models such as cars and buildings, after performing semantic analysis on the original three-dimensional data based on the three-dimensional geometric features, the semantic information corresponding to the car model can be obtained as a car, and the semantic information corresponding to the building model can be obtained as a building.

[0035] In order to improve data compression efficiency, in some embodiments, before executing step 120, the original three-dimensional data may be preprocessed, for example, the original three-dimensional data may be processed by removing redundant data, normalizing, etc., so as to improve compression efficiency.

[0036] Step 130: Determine the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions.

[0037] Among them, no matter what kind of three-dimensional data, there will be data that is highly or less important to the user, so the preset conditions in this step can be set according to the importance of the three-dimensional data, which is not limited here. The preset conditions can be set as needed, and if the application scenario is different, the preset conditions will also change with different user needs.

[0038] For example, the original three-dimensional data is point cloud data obtained by scanning the three-dimensional scene of urban road traffic. If the user wants to know the road traffic of a city, the buildings and trees beside the road are not important to the user. The three-dimensional models corresponding to the buildings and trees in the original three-dimensional data belong to the three-dimensional models corresponding to the semantic information that meets the preset conditions. For this part of the data, the user only needs to know roughly that there are buildings and trees at a certain location, without knowing the specific shapes of the buildings and trees and other detailed information. If the user wants to plan an autonomous moving path for the robot, the buildings and trees beside the road are obstacles for the autonomous moving robot, so the three-dimensional models corresponding to the buildings and trees in the original three-dimensional data do not belong to the three-dimensional models corresponding to the semantic information that meets the preset conditions. Therefore, for the same original three-dimensional data, if the application scenario is different, the preset conditions will also be different, and the compressed data obtained by the subsequent compression of the original three-dimensional data will also be different.

[0039] The attribute information of the 3D model refers to the position information of the 3D model in the original 3D data, the size information of the 3D model, the color information of the 3D model, etc. For the point cloud data of the 3D model corresponding to the semantic information that meets the preset conditions, the user does not need to retain all the point cloud data, and usually only needs to know the basic information corresponding to this part of the point cloud data, such as semantic information, attribute information, etc. Therefore, after determining the attribute information of the 3D model corresponding to the semantic information that meets the preset conditions in this step, this part of the data can be compressed later.

[0040] Step 140: compress the original three-dimensional data, delete the three-dimensional models corresponding to the semantic information that meets the preset conditions, and retain the semantic information and attribute information of the deleted three-dimensional models to obtain compressed data.

[0041] Among them, in this step, by deleting all the three-dimensional models corresponding to the semantic information that meets the preset conditions, the amount of data can be greatly reduced. For the semantic information corresponding to all the three-dimensional models in the original three-dimensional data determined in step 120, only the semantic information that meets the preset conditions is retained, and the attribute information of the three-dimensional model corresponding to the semantic information determined in step 130 is retained. In other words, the compressed data includes the semantic information and attribute information corresponding to the three-dimensional model that meets the preset conditions, but does not include the point cloud data of the three-dimensional model that meets the preset conditions.

[0042] In the embodiment of the present application, by completely deleting the three-dimensional data that meets the preset conditions in the original three-dimensional data, compared with the method of only clearing part of the point cloud data of the three-dimensional model, for example, in order to know the object corresponding to the three-dimensional model corresponding to the semantic information that meets the preset conditions, only 70% of the three-dimensional data is cleared, and the point cloud data of the edge of the three-dimensional model is retained, which greatly reduces the amount of compressed data. In addition, since the retained semantic information and attribute information do not belong to the three-dimensional data, the amount of data is small. Therefore, the retained semantic information and attribute information corresponding to the deleted three-dimensional model will not cause the amount of compressed data obtained in the end to be too large. In addition, since the semantic information and attribute information corresponding to the deleted three-dimensional model are retained in the compressed data, the semantic information and attribute information of the deleted three-dimensional data can be directly obtained from the compressed data, so that when the compressed data is subsequently decompressed, restored, and analyzed, the decompressed and restored data with higher accuracy can be obtained.

[0043] Figure 2 FIG. 2 is a flow chart of a three-dimensional data compression method provided by another embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0044] Step 210: Acquire original three-dimensional data.

[0045] Step 220: Perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data.

[0046] Among them, step 210 to step 220 are the same as step 110 to step 120, so the principles and specific implementation methods of step 210 to step 220 can refer to step 110 to step 120, and will not be repeated here.

[0047] Step 230: Determine the level corresponding to each piece of semantic information in the pre-stored level table.

[0048] The pre-stored level table stores the correspondence between semantic information and level. In this step, specifically, the level corresponding to the semantic information corresponding to each 3D model in the original 3D data obtained in step 220 is determined. By determining the level corresponding to each semantic information, subsequent compression processing is facilitated.

[0049] Step 240: Determine the position information of the three-dimensional model corresponding to the semantic information of the N2th level.

[0050] As mentioned above, a point cloud is composed of a series of points in a three-dimensional space, each point has corresponding X-axis, Y-axis, and Z-axis coordinate information, and a three-dimensional model is usually composed of multiple points. Therefore, in this step, the X-axis, Y-axis, and Z-axis coordinate information of any point constituting the three-dimensional model can be obtained, and the X-axis, Y-axis, and Z-axis coordinate information of the point can be used as the position information of the three-dimensional model. In order to improve the accuracy of the determined position information, in an embodiment of the present application, preferably, the center point of the three-dimensional model is determined using multiple points constituting the three-dimensional model, and the X-axis, Y-axis, and Z-axis coordinate information of the center point is used as the position information of the three-dimensional model.

[0051] Step 250: Delete the three-dimensional model corresponding to the semantic information of the N2th level, and retain the semantic information and position information of the three-dimensional model corresponding to the semantic information of the N2th level to obtain compressed data.

[0052] Among them, this step is similar to step 140, so the specific implementation method of this step can refer to step 140 and will not be repeated here.

[0053] In the embodiment of the present application, since the correspondence between semantic information and level is stored in the level table, after determining the semantic information corresponding to each three-dimensional model in the original three-dimensional data, the level corresponding to each semantic information can be quickly determined according to the level table, and then the three-dimensional model corresponding to the semantic information of the N2th level can be quickly determined, so as to subsequently compress the original three-dimensional data, thereby improving the efficiency of compressing the original three-dimensional data.

[0054] Figure 3FIG. 2 is a flow chart of a three-dimensional data compression method provided by another embodiment of the present application. Figure 3 As shown, the method comprises the following steps:

[0055] Step 310: Acquire original three-dimensional data.

[0056] Step 320: Perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data.

[0057] Step 330: Determine the level corresponding to each piece of semantic information in the pre-stored level table.

[0058] Among them, step 310 to step 330 are the same as step 210 to step 230. Therefore, the principles and specific implementation methods of step 310 to step 330 can refer to step 210 to step 230 and will not be repeated here.

[0059] Step 340: Determine the attribute information of the three-dimensional model corresponding to the semantic information of the N1th level, wherein the attribute information of the three-dimensional model corresponding to the semantic information of the N1th level includes position information and at least one of size information and color information.

[0060] The three-dimensional model is composed of multiple points, and each point also includes color information. Therefore, in this step, the color information of the three-dimensional model can be determined based on the color information of each point. Since the three-dimensional model composed of multiple points is consistent with the appearance of objects in the real world, the size information of the three-dimensional model can be determined based on the multiple points that constitute the three-dimensional model.

[0061] Step 350: Delete the three-dimensional model corresponding to the semantic information of the N1th level, and retain the semantic information and attribute information of the three-dimensional model corresponding to the semantic information of the N1th level, wherein the N1th level is higher than the N2th level.

[0062] The level corresponds to the importance, and if the N1th level is higher than the N2th level, it means that the importance of the point cloud data of the three-dimensional model corresponding to the N1th level is higher than that of the point cloud data of the three-dimensional model corresponding to the N2th level. This step is similar to step 250, so the specific implementation of this step can refer to step 250.

[0063] Step 360: Determine the position information of the three-dimensional model corresponding to the semantic information of the N2th level.

[0064] Step 370: Delete the three-dimensional model corresponding to the semantic information of the N2th level, and retain the semantic information and position information of the three-dimensional model corresponding to the semantic information of the N2th level to obtain compressed data.

[0065] Among them, step 360 to step 370 are the same as step 240 to step 250. Therefore, the principles and specific implementation methods of step 360 to step 370 can refer to step 240 to step 250 and will not be repeated here.

[0066] It is understandable that if the compressed data obtained retains more information about the deleted three-dimensional model, the deleted three-dimensional model can be better restored when the compressed data is subsequently decompressed and restored. In the embodiment of the present application, for the three-dimensional model corresponding to the semantic information of the N1th level with higher importance, on the basis of retaining its semantic information and position information, at least one of the size information and color information is also retained, so that when the compressed data is subsequently decompressed, restored, and analyzed, more accurate decompressed data can be obtained.

[0067] Furthermore, since the levels in the level table correspond to the importance, compared with traditional compression algorithms, in the embodiments of the present application, the three-dimensional data is graded by utilizing semantic analysis rather than simply classifying it according to the type or size of the three-dimensional data. The embodiments of the present application can better reflect the actual meaning of the three-dimensional data, thereby more effectively compressing the three-dimensional data with low importance, thereby minimizing the amount of compressed data.

[0068] Different compression algorithms have different functions. For users, if a lossy compression algorithm is used to compress three-dimensional data, it is easy to cause the problem of important data being cleared during the compression process. For the use of a lossless compression algorithm to compress three-dimensional data, although the important data is completely saved in the compressed data, the amount of compressed data is still large, and it will still take up a lot of storage space and the transmission efficiency is low. The most important three-dimensional data needs to be retained, and the completely unimportant three-dimensional data can be deleted. For the three-dimensional data between the completely unimportant and the most important, if it can be represented by data with lower dimensions and less data, and the corresponding three-dimensional data is deleted, then the amount of compressed data can be greatly reduced.

[0069] Based on the above considerations, Figure 4 FIG. 2 is a flow chart of a three-dimensional data compression method provided by another embodiment of the present application. Figure 4 As shown, the method comprises the following steps:

[0070] Step 410: Acquire original three-dimensional data.

[0071] Step 420: Perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data.

[0072] Step 430: Determine the level corresponding to each piece of semantic information in the pre-stored level table.

[0073] Among them, step 410 to step 430 are the same as step 210 to step 230. Therefore, the principles and specific implementation methods of step 310 to step 330 can refer to step 210 to step 230 and will not be repeated here.

[0074] Step 440: retain all data of the three-dimensional model corresponding to the semantic information of the X1th level.

[0075] The level corresponds to the importance, and the 3D model corresponding to the semantic information of the X1th level has the highest importance. Therefore, in this step, by completely retaining all the data of the 3D model with the highest importance, it is avoided that important 3D data is lost when the 3D data is compressed.

[0076] Step 450: retaining part of the data of the three-dimensional model corresponding to the semantic information of the X2th level, wherein the X1th level is higher than the X2th level, and the X2th level is higher than the N1th level.

[0077] Among them, retaining part of the data of the three-dimensional model corresponding to the semantic information of the X2th level can be to retain only the data of the point cloud constituting the edge of the three-dimensional model, or the data of the point cloud corresponding to the important geometric features of the three-dimensional model, or to downsample the point cloud of the three-dimensional model to obtain part of the point cloud data. Which data of the three-dimensional model is retained can be set as needed and is not limited here. For example, if the user wants to plan an autonomous moving path for the robot, the buildings and trees beside the road are obstacles to the autonomous moving robot, but only the buildings and trees within the height range of the robot are obstacles. Therefore, for the three-dimensional models corresponding to higher buildings and trees, only the point cloud data within a certain height is retained.

[0078] Step 460: Determine the position information of the three-dimensional model corresponding to the semantic information of the N2th level.

[0079] Step 470: Delete the three-dimensional model corresponding to the semantic information of the N2th level, and retain the semantic information and position information of the three-dimensional model corresponding to the semantic information of the N2th level to obtain compressed data.

[0080] Among them, step 460 to step 470 are the same as step 240 to step 250. Therefore, the principles and specific implementation methods of step 460 to step 470 can refer to step 240 to step 250 and will not be repeated here.

[0081] The X1th level is higher than the X2th level, indicating that the three-dimensional model corresponding to the semantic information of the X1th level is the most important. Therefore, in the embodiment of the present application, by retaining all the data of the three-dimensional model corresponding to the semantic information of the X1th level, the most important three-dimensional data is retained, and the situation that the most important three-dimensional data is lost during the compression of the three-dimensional data is avoided. The X2th level is higher than the N1th level, indicating that the importance of the three-dimensional model corresponding to the semantic information of the X2th level is second only to the three-dimensional model corresponding to the semantic information of the X1th level. Therefore, in the embodiment of the present application, by retaining part of the data of the three-dimensional model corresponding to the semantic information of the X2th level, instead of retaining all the data of the three-dimensional model corresponding to the semantic information of the X2th level, the amount of data of the compressed data obtained can be reduced, and when the compressed data is subsequently decompressed and restored, the corresponding original data can be well restored based on the retained part of the data of the three-dimensional model. By completely deleting the three-dimensional model corresponding to the semantic information of the N2th level, the amount of data of the compressed data is effectively reduced.

[0082] Figure 5 FIG. 2 is a flow chart of a three-dimensional data compression method provided by another embodiment of the present application. Figure 5 As shown, the method comprises the following steps:

[0083] Step 510: Acquire original three-dimensional data.

[0084] Step 520: Perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data.

[0085] Step 530: Determine the level corresponding to each piece of semantic information in the pre-stored level table.

[0086] Step 540: Determine the position information of the three-dimensional model corresponding to the semantic information of the N2th level.

[0087] Among them, step 510 to step 540 are the same as step 210 to step 240. Therefore, the principles and specific implementation methods of step 510 to step 540 can refer to step 210 to step 240 and will not be repeated here.

[0088] Step 550: Determine the attribute information of the three-dimensional model corresponding to the semantic information of the N1th level, wherein the attribute information of the three-dimensional model corresponding to the semantic information of the N1th level includes position information and at least one of size information and color information.

[0089] Among them, step 550 is the same as step 340. Therefore, the principle and specific implementation method of step 550 can refer to step 340 and will not be repeated here.

[0090] Step 560: retain all data of the three-dimensional model corresponding to the semantic information of the X1th level.

[0091] Step 570: retaining part of the data of the three-dimensional model corresponding to the semantic information of the X2th level, wherein the X1th level is higher than the X2th level, and the X2th level is higher than the N1th level.

[0092] Among them, step 560 to step 570 are the same as step 440 to step 450. Therefore, the principles and specific implementation methods of step 560 to step 570 can refer to step 440 to step 450 and will not be repeated here.

[0093] Step 580: Delete the three-dimensional model corresponding to the semantic information of the N1th level, and retain the semantic information and attribute information of the three-dimensional model corresponding to the semantic information of the N1th level.

[0094] Among them, step 580 is the same as step 350. Therefore, the principle and specific implementation method of step 580 can refer to step 350 and will not be repeated here.

[0095] Step 590: Delete the three-dimensional model corresponding to the semantic information of the N2th level, and retain the semantic information and position information of the three-dimensional model corresponding to the semantic information of the N2th level to obtain compressed data, where the levels are sorted from high to low as X1>X2>N1>N2.

[0096] Among them, step 590 is the same as step 370. Therefore, the principle and specific implementation method of step 590 can refer to step 370 and will not be repeated here.

[0097] In an embodiment of the present application, different compression methods are used for three-dimensional data of different levels. For lower-level, i.e., less important data, lossy compression is used to achieve a better compression ratio and reduce the amount of compressed data. For higher-level data, lossless compression is used to ensure the accuracy and completeness of the compressed data.

[0098] Figure 6A flow chart of the data decompression method provided in an embodiment of the present application is shown. The method is executed by a terminal device. The terminal device may be a terminal device including one or more processors, and the processor may be a central processing unit CPU, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement an embodiment of the present invention, which is not limited here. The one or more processors included in the terminal device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs, which is not limited here. Among them, the terminal device executing the embodiment of the present application and the terminal device executing the above-mentioned three-dimensional data compression method embodiment may be the same terminal device, or may be two different terminal devices. Figure 6 As shown, the method comprises the following steps:

[0099] Step 610: Obtain compressed data, wherein the compressed data is data obtained by compressing original three-dimensional data using a three-dimensional data compression method.

[0100] The compressed data obtained in this step is the data obtained after compressing the original three-dimensional data in any embodiment of the three-dimensional data compression method described above.

[0101] Step 620: decompress the compressed data to generate data corresponding to the semantic information and attribute information of the deleted three-dimensional model, thereby obtaining decompressed data.

[0102] Wherein, if the attribute information includes the position information of the 3D model, then in this step, data corresponding to the semantic information of the deleted 3D model is generated at the position corresponding to the position information of the deleted 3D model, which may be obtained by reconstructing the 3D model corresponding to the semantic information using 3D modeling software, and moving the 3D model to the position corresponding to the position information of the deleted 3D model, thereby obtaining the decompressed data. If the attribute information includes the color information and size information of the 3D model, then in this step, the 3D model corresponding to the semantic information may be reconstructed using 3D modeling software, and the 3D model may be updated according to the color information and size information.

[0103] In an embodiment of the present application, since the semantic information and attribute information of the deleted three-dimensional model are retained in the obtained compressed data, the corresponding three-dimensional model can be determined and generated based on the retained semantic information, and the three-dimensional model can be adjusted based on the attribute information, thereby obtaining decompressed data with higher accuracy.

[0104] In order to quickly obtain the decompressed data, Figure 6Based on the embodiment provided, in the embodiment of the present application, the attribute information includes location information, and step 620 includes:

[0105] Step a1: determining a target icon corresponding to the semantic information of the deleted three-dimensional model from a pre-stored icon library.

[0106] Among them, the pre-stored icon library stores various icons, such as car icons, building icons, etc. The icon can be a three-dimensional model or a plane graphic, which is not limited here. The icon library also stores the correspondence between icons and semantic information, that is, the correspondence between each icon and its corresponding semantic information. Therefore, in this step, the target icon corresponding to the semantic information can be obtained from the icon library through the semantic information stored in the compressed data.

[0107] Step a2: Generate a target icon at a position corresponding to the position information of the deleted three-dimensional model to obtain decompressed data.

[0108] Among them, after the target icon is determined in step a1, in this step, the target icon is generated at the position corresponding to the position information of the deleted three-dimensional model in the compressed data, and the decompressed data can be obtained. For example, the three-dimensional model of the car at the X-axis, Y-axis and Z-axis coordinates (1, 1, 1) in the original three-dimensional data is deleted, and the semantic information and position information corresponding to the deleted three-dimensional model of the car retained in the compressed data are car and (1, 1, 1), respectively. In this step, the car icon is generated at the position corresponding to (1, 1, 1) in the compressed data, thereby obtaining the decompressed data.

[0109] In the embodiment of the present application, since an icon library is pre-stored, the target icon corresponding to the semantic information of the deleted three-dimensional model can be quickly determined from the icon library, and then the target icon can be quickly generated at the position corresponding to the position information of the deleted three-dimensional model, thereby improving the efficiency of the obtained decompressed data. In addition, since the attribute information includes the position information, by moving the generated corresponding three-dimensional model to the position corresponding to the position information of the deleted three-dimensional model in the compressed data, the decompressed data with higher accuracy can be obtained.

[0110] In order to further improve the accuracy of the decompressed data, Figure 6 Based on the provided embodiment, in the embodiment of the present application, after step 620, the data decompression method further includes:

[0111] Step b1: If the compressed data still contains the size information of the deleted three-dimensional model, the target icon is resized according to the size information.

[0112] Step b2: If the compressed data still contains the color information of the deleted three-dimensional model, the color of the target icon is adjusted according to the color information.

[0113] If the attribute information of the 3D model includes size information and color information, then in step b1 to step b2, the size and color of the target icon are adjusted according to the size information and color information. For example, if the semantic information contained in the compressed data is a building, the color information is white, and the size information is 5 meters high, then in step b1 to step b2, the color of the target icon corresponding to the building in the icon library is adjusted to white, and the height of the target icon is adjusted to 5 meters.

[0114] In an embodiment of the present application, if the compressed data contains size information and color information of the deleted three-dimensional model, the size and color of the target icon are adjusted according to the size information and color information so that the size and color of the target icon correspond to the size information and color information contained in the compressed data, so that the decompressed data is closer to the original three-dimensional data, thereby improving the accuracy of the obtained decompressed data.

[0115] Figure 7 FIG. 1 shows a schematic diagram of the structure of a three-dimensional data compression device provided in an embodiment of the present application. Figure 7 As shown, the device 700 includes: an acquisition module 701, a semantic analysis module 702, a determination module 703 and a data compression module 704. The acquisition module 701 is used to acquire original three-dimensional data. The semantic analysis module 702 is used to perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data. The determination module 703 is used to determine the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions. The data compression module 704 is used to compress the original three-dimensional data, delete the three-dimensional model corresponding to the semantic information that meets the preset conditions, and retain the semantic information and attribute information of the deleted three-dimensional model to obtain compressed data.

[0116] The three-dimensional data compression device provided in this embodiment is used to execute the technical solution of the three-dimensional data compression method in the aforementioned method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0117] It is worth noting that the three-dimensional data compression device provided in this embodiment also includes other modules for executing the steps of the above three-dimensional data compression method embodiment, which will not be described one by one here.

[0118] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown, and the specific embodiment of the present application does not limit the specific implementation of the electronic device.

[0119] like Figure 8 As shown, the electronic device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .

[0120] Wherein: the processor 802, the communication interface 804, and the memory 806 communicate with each other through the communication bus 808. The communication interface 804 is used to communicate with other devices such as a client or a network element of another server. The processor 802 is used to execute the program 810, which can specifically execute the relevant steps in the above-mentioned embodiment of the method for three-dimensional data compression and / or the relevant steps in the above-mentioned embodiment of the data decompression method.

[0121] Specifically, the program 810 may include program code including computer executable instructions.

[0122] The processor 802 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0123] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0124] An embodiment of the present application provides a computer-readable storage medium storing executable instructions. When the executable instructions are executed on an electronic device, the electronic device executes the three-dimensional data compression method in any of the above method embodiments and / or the data decompression method in any of the above method embodiments.

[0125] An embodiment of the present application provides a computer program, which can be called by a processor to enable an electronic device to execute the three-dimensional data compression method in any of the above method embodiments and / or the data decompression method in any of the above method embodiments.

[0126] An embodiment of the present application provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed on a computer, the computer executes the three-dimensional data compression method in any of the above method embodiments and / or the data decompression method in any of the above method embodiments.

Claims

1. A three-dimensional data compression method, It is characterized in that The method comprises: Obtaining original three-dimensional data; Performing semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data, wherein the semantic information is an object corresponding to the three-dimensional model; Determining attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions; The three-dimensional model corresponding to the semantic information that meets the preset condition is deleted, and the semantic information and attribute information of the deleted three-dimensional model are retained to compress the original three-dimensional data and obtain compressed data, wherein the attribute information includes position information of the deleted three-dimensional model in the original three-dimensional data, and the position information includes X-axis, Y-axis and Z-axis coordinate information of the deleted three-dimensional model, and the semantic information and the attribute information are used to generate data corresponding to the semantic information of the deleted three-dimensional model at a position corresponding to the position information of the deleted three-dimensional model when decompressing the compressed data.

2. The three-dimensional data compression method according to claim 1, It is characterized in that The step of determining the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions includes: Determine the level corresponding to each semantic information in the pre-stored level table, where the levels are sorted from high to low as X 1 >X 2 >N 1 >N 2 ; Determine the Nth 2 The position information of the three-dimensional model corresponding to the semantic information of the level; The compressing the original three-dimensional data, deleting the three-dimensional model corresponding to the semantic information that meets the preset condition, and retaining the semantic information and attribute information of the deleted three-dimensional model to obtain compressed data includes: Delete Nth 2 The 3D model corresponding to the semantic information of the level, and retain the Nth 2 The semantic information and position information of the three-dimensional model corresponding to the semantic information of the level are used to obtain compressed data.

3. The three-dimensional data compression method according to claim 2, It is characterized in that After determining the level corresponding to each semantic information in the pre-stored level table, the method further includes: Determine the Nth 1 The attribute information of the three-dimensional model corresponding to the semantic information of the level, among which the Nth 1 The attribute information of the three-dimensional model corresponding to the semantic information of the level includes position information and at least one of size information and color information; Delete Nth 1 The 3D model corresponding to the semantic information of the level, and retain the Nth 1 The semantic information of the level corresponds to the semantic information and attribute information of the three-dimensional model.

4. The three-dimensional data compression method according to claim 2, It is characterized in that After determining the level corresponding to each semantic information in the pre-stored level table, the method further includes: Keep X 1 All data of the three-dimensional model corresponding to the semantic information of the level; Keep X 2 Partial data of the three-dimensional model corresponding to the semantic information of the level.

5. A data decompression method, It is characterized in that The method comprises: Acquire compressed data, wherein the compressed data is data obtained by compressing original three-dimensional data using the three-dimensional data compression method according to any one of claims 1 to 4; The compressed data is decompressed to generate data corresponding to the semantic information and attribute information of the deleted three-dimensional model, thereby obtaining decompressed data.

6. The data decompression method according to claim 5, It is characterized in that The attribute information includes location information, and the compressed data is decompressed to generate data corresponding to the semantic information and attribute information of the deleted three-dimensional model, and the decompressed data is obtained, including: Determining a target icon corresponding to the semantic information of the deleted three-dimensional model from a pre-stored icon library; The target icon is generated at a position corresponding to the position information of the deleted three-dimensional model to obtain the decompressed data.

7. The data decompression method according to claim 6, It is characterized in that After generating the target icon at a position corresponding to the position information of the deleted three-dimensional model, the method further includes: If the compressed data still includes the size information of the deleted three-dimensional model, resizing the target icon according to the size information; If the compressed data also includes color information of the deleted three-dimensional model, the target icon is subjected to color adjustment processing according to the color information.

8. A three-dimensional data compression device, It is characterized in that The device comprises: An acquisition module, used for acquiring original three-dimensional data; A semantic analysis module, used to perform semantic analysis on the original three-dimensional data to obtain semantic information corresponding to each three-dimensional model in the original three-dimensional data, wherein the semantic information is an object corresponding to the three-dimensional model; A determination module, used to determine the attribute information of the three-dimensional model corresponding to the semantic information that meets the preset conditions; A data compression module, used to delete the three-dimensional model corresponding to the semantic information that meets the preset conditions, and retain the semantic information and attribute information of the deleted three-dimensional model, so as to compress the original three-dimensional data and obtain compressed data, wherein the attribute information includes the position information of the deleted three-dimensional model in the original three-dimensional data, and the position information includes the X-axis, Y-axis and Z-axis coordinate information of the deleted three-dimensional model, and the semantic information and the attribute information are used to generate data corresponding to the semantic information of the deleted three-dimensional model at the position corresponding to the position information of the deleted three-dimensional model when decompressing the compressed data.

9. An electronic device, It is characterized in that include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store executable instructions, and the executable instructions enable the processor to execute the three-dimensional data compression method according to any one of claims 1 to 4 and / or the data decompression method according to any one of claims 5 to 7.

10. A computer-readable storage medium, It is characterized in that The storage medium stores executable instructions, which, when run, execute the three-dimensional data compression method according to any one of claims 1 to 4 and / or the data decompression method according to any one of claims 5 to 7.

Citation Information

Patent Citations

  • Three-dimensional object reconstruction method and device, equipment and storage medium

    CN109493417A

  • Data compression method, device and equipment and computer readable storage medium

    CN116610646A

  • Three-dimensional model acquisition method and device, equipment and storage medium

    CN117456088A

  • Point cloud compression method, encoder, decoder, and storage medium

    US20230075442A1