3D map compression and decompression method and device

By compacting and mapping 3D map descriptors, generating compact representations and encapsulating them, the transmission problem caused by the large amount of 3D map data is solved, achieving a reduction in data volume and an improvement in transmission efficiency.

CN115442338BActive Publication Date: 2024-10-11HUAWEI TECH CO LTD

Patent Information

Application Number
CN202110823842.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-06-04
Filing Date
2021-07-21
Publication Date
2024-10-11
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

Existing 3D maps contain massive amounts of data, and their transmission and storage consume a significant amount of bandwidth, impacting application performance and user experience.

Method used

By compacting the descriptors of the 3D map to generate a compact representation, and using a mapping table to map it to compact representations of different data distributions, the amount of data is reduced. Finally, it is encapsulated to generate a bitstream.

Benefits of technology

It effectively reduces the data volume of 3D maps from TB to GB, reduces transmission resource overhead, and improves application performance and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442338B_ABST
    Figure CN115442338B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a compression and decompression method and device for a 3D map. It relates to the technical field of 3D map compression. The compression method comprises: compacting a descriptor to be encoded to obtain a first compacted representation of the descriptor to be encoded, the descriptor to be encoded corresponds to at least one 3D map point in the 3D map, obtaining a compacted representation of at least one reference descriptor corresponding to the descriptor to be encoded, obtaining a second compacted representation of the descriptor to be encoded based on the first compacted representation of the descriptor to be encoded and the compacted representation of the at least one reference descriptor, encapsulating the second compacted representation, and obtaining a code stream of the 3D map. The embodiment of the present application can reduce the transmission or storage overhead of 3D maps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to 3D map technology, and more particularly to a 3D map compression and decompression method and device. Background Art

[0002] Virtual reality (VR), augmented reality (AR) and mixed reality (MR) are emerging multimedia virtual scene technologies in recent years. This type of technology can create virtual reality and superimpose virtual reality with the real world to produce new visual environments and interactive experiences. In such applications, electronic devices need to determine their own position information in the current environment to accurately achieve the fusion of virtual objects and real scenes.

[0003] On the other hand, in applications such as autonomous driving, autonomous navigation, automatic drone inspection, industrial robots, etc., vehicles, drones, robots and other vehicles need to determine their own position in the current environment by determining the position of the electronic equipment they carry, in order to perform accurate path planning, navigation, detection, and control.

[0004] In the above applications, a typical solution to the problem of determining the position of the electronic device in the current environment is that the electronic device receives a three-dimensional (3D) map of the environment from a server or other device, and then collects visual information in the environment through local sensors, and determines the current position of the electronic device by combining the collected visual information and the downloaded 3D map.

[0005] However, the original 3D maps usually contain a huge amount of data, and transmitting the maps consumes a lot of bandwidth and time, which seriously limits the performance of the application and affects the user experience. Summary of the invention

[0006] The present application provides a 3D map compression and decompression method and device to reduce the transmission or storage overhead of the 3D map.

[0007] In a first aspect, an embodiment of the present application provides a 3D map compression method, which may include: compacting a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded. At least one reference descriptor corresponds to at least one encoded (or compressed) 3D map point of the 3D map. Based on the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor, obtain a second compact representation of the descriptor to be encoded. Encapsulate the second compact representation to obtain a code stream of the 3D map.

[0008] Exemplarily, the descriptor to be encoded may be a region descriptor in a 3D map or a point descriptor in a 3D map. The descriptor to be encoded may also be referred to as a current descriptor.

[0009] At least one reference descriptor corresponds to at least one encoded 3D map point of the 3D map. In other words, at least one reference descriptor can be at least one encoded 3D map point descriptor of the 3D map, or can be at least one encoded region descriptor of the 3D map.

[0010] A descriptor to be encoded can have one reference descriptor, or multiple reference descriptors. When the descriptor to be encoded is a region descriptor, the reference descriptor corresponding to the descriptor to be encoded can be a reference region descriptor. When the descriptor to be encoded is a 3D map point descriptor, the reference descriptor corresponding to the descriptor to be encoded can be a reference 3D map point descriptor.

[0011] In one possible design, the method may also include: receiving 3D map request information sent by an electronic device, and in response to the 3D map request information, sending a code stream of a 3D map corresponding to the 3D map request information to the electronic device. Alternatively, sending a code stream of a 3D map to a server.

[0012] In one possible design, data distribution of the first compact representation is different from data distribution of the second compact representation.

[0013] The data distribution of the compact representation (e.g., the first compact representation or the second compact representation) of the embodiment of the present application refers to the distribution of binary numbers (0, 1) in the compact representation. The embodiment of the present application reduces the data volume of the code stream of the 3D map obtained after subsequent encapsulation by changing the data distribution of the compact representation, for example, reducing the data volume of the 3D map from the terabyte (TB) level to the gigabyte (GB) level, thereby reducing the resource overhead required to transmit the code stream of the 3D map. Compared with the data distribution of the first compact representation, the distribution of 0 in the second compact representation of the embodiment of the present application is denser, or the distribution of 1 is denser.

[0014] In one possible design, the first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded, and the second compact representation of the descriptor to be encoded includes at least one second compact representation substring of the descriptor to be encoded. The at least one first compact representation substring is different from the at least one second compact representation substring.

[0015] Exemplarily, at least one first compact representation substring is different from the corresponding second compact representation substring. For example, the first compact representation includes three first compact representation substrings (A1, A2, and A3), and the second compact representation includes three second compact representation substrings (B1, B2, and B3), where A1 is different from B1, A2 is different from B2, and A3 is different from B3.

[0016] In one possible design, part or all of at least one second compact representation substring is less than or equal to the corresponding first compact representation substring. Alternatively, part or all of at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

[0017] In this implementation, at least one second compact representation substring is partially or entirely less than or equal to the corresponding first compact representation substring through first table mapping or second table mapping or XOR mapping or difference mapping, and the first compact representation substring is mapped toward the first direction, which may be a direction with a smaller value, thereby increasing the distribution density of 0s in the second compact representation, so as to reduce the data volume of the code stream of the 3D map obtained after subsequent encapsulation. Alternatively, at least one second compact representation substring is partially or entirely greater than or equal to the corresponding first compact representation substring through first table mapping or second table mapping or XOR mapping or difference mapping, and the first compact representation substring is mapped toward the second direction, which may be a direction with a larger value, thereby increasing the distribution density of 1s in the second compact representation, so as to reduce the data volume of the code stream of the 3D map obtained after subsequent encapsulation.

[0018] In one possible design, obtaining a second compact representation of the descriptor to be encoded based on a first compact representation of the descriptor to be encoded and a compact representation of at least one reference descriptor may include: obtaining the second compact representation of the descriptor to be encoded by looking up a first table based on the first compact representation of the descriptor to be encoded and a compact representation of at least one reference descriptor.

[0019] In a possible design, the first table includes at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring. The first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. At least one encoded compact representation substring includes at least one first compact representation substring, and at least one second reference compact representation substring includes at least one first reference compact representation substring of at least one reference descriptor. According to the first compact representation of the descriptor to be encoded and the compact representation of the reference descriptor, by looking up the first table, the second compact representation of the descriptor to be encoded is obtained, which may include: according to at least one first compact representation substring of the descriptor to be encoded and at least one first reference compact representation substring of the reference descriptor corresponding to the descriptor to be encoded, from the first table, obtaining at least one first compact representation substring and at least one third compact representation substring corresponding to the at least one first reference compact representation substring. According to at least one first compact representation substring and at least one third compact representation substring corresponding to the at least one first reference compact representation substring, the second compact representation of the descriptor to be encoded is obtained.

[0020] In a possible design, the first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoded compact representation substring or at least one second reference compact representation substring.

[0021] In one possible design, obtaining a second compact representation of the descriptor to be encoded based on the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor may include: obtaining the second compact representation of the descriptor to be encoded by looking up a second table based on the first compact representation of the descriptor to be encoded. The second table is established based on the compact representation of at least one reference descriptor.

[0022] In a possible design, the first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring. The second table includes at least one first reference compact representation substring and at least one fourth compact representation substring corresponding to the at least one first compact representation substring. According to the first compact representation of the descriptor to be encoded, by looking up the second table, the second compact representation of the descriptor to be encoded is obtained, including: according to the at least one first compact representation substring of the descriptor to be encoded, from the second table, obtaining at least one fourth compact representation substring corresponding to the at least one first compact representation substring. The second table is established based on at least one first reference compact representation substring. According to at least one fourth compact representation substring corresponding to the at least one first compact representation substring, the second compact representation of the descriptor to be encoded is obtained.

[0023] In a possible design, the second table is at least a one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first compact representation substring.

[0024] In one possible design, obtaining a second compact representation of the descriptor to be encoded based on a first compact representation of the descriptor to be encoded and a compact representation of at least one reference descriptor may include: taking the XOR value or the difference between the compact representation of at least one reference descriptor and the first compact representation of the descriptor to be encoded as the second compact representation of the descriptor to be encoded.

[0025] In one possible design, at least one reference descriptor corresponding to the descriptor to be encoded includes: at least one compressed (or encoded) descriptor before the descriptor to be encoded; or, at least one preset descriptor; or, at least one descriptor determined by a neural network model or clustering.

[0026] In one possible design, the compaction processing includes a quantization process or a binarization process, and the quantization process or the binarization process is used to reduce the number of bits of the descriptor to be encoded.

[0027] In a second aspect, an embodiment of the present application provides a method for decompressing a 3D map, which may include: decapsulating a code stream of a 3D map to obtain a second compact representation of a descriptor to be decoded. The descriptor to be decoded corresponds to at least one 3D map point in the 3D map. Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. At least one reference descriptor corresponds to at least one decoded (or decompressed) 3D map point of the 3D map. Based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded, obtain a first compact representation of the descriptor to be decoded. Based on the first compact representation of the descriptor to be decoded, obtain reconstructed data of at least one 3D map point.

[0028] In a possible design, the method may further include: sending 3D map request information, receiving a code stream of a 3D map corresponding to the 3D map request information, or receiving a code stream of a 3D map sent by an electronic device.

[0029] In one possible design, data distribution of the first compact representation is different from data distribution of the second compact representation.

[0030] In one possible design, the first compact representation of the descriptor to be decoded includes at least one first compact representation substring of the descriptor to be decoded, and the second compact representation of the descriptor to be decoded includes at least one second compact representation substring of the descriptor to be decoded. The at least one first compact representation substring is different from the at least one second compact representation substring.

[0031] In one possible design, part or all of at least one second compact representation substring is less than or equal to the corresponding first compact representation substring. Alternatively, part or all of at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

[0032] In one possible design, obtaining a first compact representation of the descriptor to be decoded based on a second compact representation of the descriptor to be decoded and a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded may include: obtaining the first compact representation of the descriptor to be decoded by looking up a first table based on the second compact representation of the descriptor to be decoded and a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0033] In a possible design, obtaining a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded includes: obtaining the first compact representation of the descriptor to be decoded by looking up a second table according to the second compact representation of the descriptor to be decoded. The second table is established based on the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0034] In one possible design, a first compact representation of the descriptor to be decoded is obtained based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded, including: taking the exclusive OR value or the sum value of the compact representation of at least one reference descriptor and the second compact representation of the descriptor to be decoded as the first compact representation of the descriptor to be decoded.

[0035] In a third aspect, an embodiment of the present application provides a 3D map compression device, which may be a chip or system on chip in an electronic device or server, or a functional module in an electronic device or server for implementing the method described in the first aspect or any possible implementation of the first aspect. For example, the device may include: a compact processing module, a mapping module, and a packaging module.

[0036] The compaction processing module is used to compact the descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. The mapping module is used to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded. At least one reference descriptor corresponds to at least one encoded (or compressed) 3D map point of the 3D map. The mapping module is also used to obtain a second compact representation of the descriptor to be encoded based on the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor. The encapsulation module is used to encapsulate the second compact representation to obtain a code stream of the 3D map.

[0037] In one possible design, the apparatus may further include: a transmission module. The transmission module is used to receive 3D map request information sent by an electronic device, and in response to the 3D map request information, send a code stream of the 3D map corresponding to the 3D map request information to the electronic device, or the transmission module is used to send a code stream of the 3D map to a server.

[0038] In one possible design, data distribution of the first compact representation is different from data distribution of the second compact representation.

[0039] In one possible design, the first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded, and the second compact representation of the descriptor to be encoded includes at least one second compact representation substring of the descriptor to be encoded. The at least one first compact representation substring is different from the at least one second compact representation substring.

[0040] In one possible design, part or all of at least one second compact representation substring is less than or equal to the corresponding first compact representation substring; or part or all of at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

[0041] In one possible design, the mapping module is used to obtain a second compact representation of the descriptor to be encoded by looking up a first table according to a first compact representation of the descriptor to be encoded and a compact representation of at least one reference descriptor.

[0042] In one possible design, the first table may include at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring. The first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. At least one encoded compact representation substring includes at least one first compact representation substring, and at least one second reference compact representation substring includes at least one first reference compact representation substring of at least one reference descriptor. The mapping module is used to: obtain at least one first compact representation substring and at least one third compact representation substring corresponding to at least one first reference compact representation substring from the first table according to at least one first compact representation substring of the descriptor to be encoded and at least one first reference compact representation substring of the reference descriptor corresponding to the descriptor to be encoded. Obtain the second compact representation of the descriptor to be encoded according to at least one first compact representation substring and at least one third compact representation substring corresponding to at least one first reference compact representation substring.

[0043] In a possible design, the first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoded compact representation substring or at least one second reference compact representation substring.

[0044] In a possible design, the mapping module is used to obtain a second compact representation of the descriptor to be encoded by looking up a second table according to the first compact representation of the descriptor to be encoded. The second table is established based on the compact representation of at least one reference descriptor.

[0045] In one possible design, the first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring. The second table includes at least one first reference compact representation substring and at least one fourth compact representation substring corresponding to the at least one first compact representation substring. The mapping module is used to: obtain at least one fourth compact representation substring corresponding to the at least one first compact representation substring from the second table according to the at least one first compact representation substring of the descriptor to be encoded. The second table is established based on at least one first reference compact representation substring. According to at least one fourth compact representation substring corresponding to the at least one first compact representation substring, a second compact representation of the descriptor to be encoded is obtained.

[0046] In a possible design, the second table is at least a one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first compact representation substring.

[0047] In one possible design, the mapping module is used to: use an XOR value or a difference value of a compact representation of at least one reference descriptor and a first compact representation of the descriptor to be encoded as a second compact representation of the descriptor to be encoded.

[0048] In one possible design, the descriptor to be encoded includes a region descriptor or a 3D map point descriptor.

[0049] In one possible design, at least one reference descriptor corresponding to the descriptor to be encoded includes: at least one compressed descriptor before the descriptor to be encoded; or, at least one preset descriptor; or, at least one descriptor determined by a neural network model or clustering.

[0050] In a possible design, the compaction processing includes a quantization processing or a binarization processing, and the quantization processing or the binarization processing is used to reduce the number of bits of the descriptor to be encoded.

[0051] In a fourth aspect, an embodiment of the present application provides a 3D map decompression device, which may be a chip or system on chip in an electronic device or server, or a functional module in an electronic device or server for implementing the method described in the second aspect or any possible implementation of the second aspect. For example, the device may include: a decapsulation module, a demapping module, and a reconstruction module.

[0052] A decapsulation module is used to decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded; the descriptor to be decoded corresponds to at least one 3D map point in the 3D map. A decomposition module is used to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The at least one reference descriptor corresponds to at least one decoded 3D map point of the 3D map. The decomposition module is also used to obtain a first compact representation of the descriptor to be decoded based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. A reconstruction module is used to obtain reconstructed data of at least one 3D map point based on the first compact representation of the descriptor to be decoded.

[0053] In a possible design, the device may also include: a transmission module, used to send 3D map request information, receive a code stream of a 3D map corresponding to the 3D map request information. Or, used to receive a code stream of a 3D map sent by an electronic device.

[0054] In one possible design, data distribution of the first compact representation is different from data distribution of the second compact representation.

[0055] In one possible design, the first compact representation of the descriptor to be decoded includes at least one first compact representation substring of the descriptor to be decoded, and the second compact representation of the descriptor to be decoded includes at least one second compact representation substring of the descriptor to be decoded. The at least one first compact representation substring is different from the at least one second compact representation substring.

[0056] In one possible design, part or all of at least one second compact representation substring is less than or equal to the corresponding first compact representation substring; or part or all of at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

[0057] In one possible design, the inverse mapping module is used to obtain the first compact representation of the descriptor to be decoded by looking up the first table according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0058] In one possible design, the inverse mapping module is used to obtain a first compact representation of the descriptor to be decoded by looking up a second table according to the second compact representation of the descriptor to be decoded. The second table is established based on the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0059] In one possible design, the inverse mapping module is used to: use an exclusive OR value or a sum value of a compact representation of at least one reference descriptor and a second compact representation of the descriptor to be decoded as a first compact representation of the descriptor to be decoded.

[0060] In a fifth aspect, an embodiment of the present application provides a 3D map compression device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the first aspect or any possible design of the first aspect.

[0061] In a sixth aspect, an embodiment of the present application provides a 3D map decompression device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the second aspect or any possible design of the second aspect.

[0062] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes a computer program, which, when executed on a computer, causes the computer to execute the method described in the first aspect or any possible design of the first aspect, or execute the method described in the second aspect or any possible design of the second aspect.

[0063] In an eighth aspect, the present application provides a computer program or a computer program product. When the computer program or the computer program product is executed on a computer, the computer implements the method described in the first to second aspects above and any possible implementation manner thereof.

[0064] In a ninth aspect, the present application provides a non-transitory storage medium, comprising a bit stream encoded according to any one of the methods described in the first aspect above.

[0065] In the tenth aspect, an embodiment of the present application provides a 3D map compression method, which may include: clustering the descriptor to be encoded to obtain at least one first center information of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. The at least one first center information is used to represent the center of at least one sub-feature of the descriptor to be encoded after clustering. Obtain at least one first reference center information of the reference descriptor corresponding to the descriptor to be encoded. The reference descriptor corresponds to at least one encoded 3D map point of the 3D map. At least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering. Based on the at least one first center information of the descriptor to be encoded and at least one first reference center information, obtain at least one second center information of the descriptor to be encoded. Compact the at least one second center information of the descriptor to be encoded to obtain a compact representation of the descriptor to be encoded. Encapsulate the compact representation to obtain a code stream of the 3D map.

[0066] It can be seen that in this embodiment, clustering processing is first performed, and the first center information is used to represent the original descriptor to be encoded, thereby reducing the data amount of the descriptor to be encoded, and then at least one first center information is mapped to at least one second center information to change the data distribution of the center information, thereby further reducing the data amount of the code stream of the 3D map obtained after compaction processing and encapsulation, thereby reducing the resource overhead required to transmit the code stream of the 3D map.

[0067] Exemplarily, the descriptor to be encoded may be divided into one or more sub-features, and each sub-feature may be clustered to obtain one or more first center information. The one or more first center information may be the number of one or more cluster centers.

[0068] Exemplarily, the descriptor to be encoded may be a region descriptor in a 3D map or a point descriptor in a 3D map. The descriptor to be encoded may also be referred to as a current descriptor.

[0069] The reference descriptor corresponds to at least one encoded 3D map point of the 3D map. In other words, the reference descriptor may be an encoded 3D map point descriptor of the 3D map, or may be an encoded region descriptor of the 3D map.

[0070] When the descriptor to be encoded is a region descriptor, the reference descriptor corresponding to the descriptor to be encoded may be a reference region descriptor. When the descriptor to be encoded is a 3D map point descriptor, the reference descriptor corresponding to the descriptor to be encoded may be a reference 3D map point descriptor.

[0071] In one possible design, the method may also include: receiving 3D map request information sent by an electronic device, and in response to the 3D map request information, sending a code stream of a 3D map corresponding to the 3D map request information to the electronic device. The execution subject (which may be an electronic device or a server (such as a cloud server)) for executing the compression method described in the tenth aspect may receive 3D map request information sent by other electronic devices, and send a code stream of a 3D map corresponding to the 3D map request information to the electronic device.

[0072] In one possible design, the method may further include: sending a code stream of the 3D map to the server. The execution subject (which may be the first electronic device) for executing the compression method described in the tenth aspect may send the code stream of the 3D map to the server, and the server may send the code stream of the 3D map to the second electronic device.

[0073] In one possible design, obtaining at least one second central information of the descriptor to be encoded based on at least one first central information and at least one first reference central information of the descriptor to be encoded may include: obtaining at least one second central information of the descriptor to be encoded by looking up a first table based on at least one first central information and at least one first reference central information of the descriptor to be encoded.

[0074] In a possible design, the first table includes at least one encoding center information and at least one third center information corresponding to at least one second reference center information. The at least one encoding center information includes at least one first center information of the descriptor to be encoded, and the at least one second reference center information includes the at least one first reference center information. According to the at least one first center information and at least one first reference center information of the descriptor to be encoded, by looking up the first table, at least one second center information of the descriptor to be encoded is obtained, including: according to the at least one first center information and at least one first reference center information of the descriptor to be encoded, from the first table, at least one third center information corresponding to at least one first reference center information is obtained. The at least one third center information is used as the at least one second center information of the descriptor to be encoded.

[0075] In a possible design, the first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoding center information or at least one second reference center information.

[0076] In a possible design, obtaining at least one second central information of the descriptor to be encoded according to at least one first central information of the descriptor to be encoded and at least one first reference central information includes: obtaining at least one second central information of the descriptor to be encoded by looking up a second table according to the at least one first central information of the descriptor to be encoded. The second table is established based on the at least one first reference central information.

[0077] In a possible design, the second table includes the at least one first reference center information and at least one fourth center information corresponding to the at least one first center information of the descriptor to be encoded. According to the at least one first center information of the descriptor to be encoded, by looking up the second table, at least one second center information of the descriptor to be encoded is obtained, including: according to the at least one first center information of the descriptor to be encoded, from the second table, at least one fourth center information corresponding to the at least one first center information is obtained. The at least one fourth center information corresponding to the at least one first center information is used as the at least one second center information of the descriptor to be encoded.

[0078] In a possible design, the second table is at least a one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first center information.

[0079] In one possible design, at least one second center information of the descriptor to be encoded is obtained based on at least one first center information and at least one first reference center information of the descriptor to be encoded, including: taking the exclusive OR value or difference of at least one first center information of the descriptor to be encoded and at least one first reference center information as the at least one second center information of the descriptor to be encoded.

[0080] In the eleventh aspect, an embodiment of the present application provides a decompression method for a 3D map, which may include: decapsulating the code stream of the 3D map to obtain at least one second center information of a descriptor to be decoded. The descriptor to be decoded corresponds to at least one 3D map point in the 3D map. Obtain at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded. The reference descriptor corresponds to at least one decoded 3D map point of the 3D map. The at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering processing. Based on the at least one second center information of the descriptor to be decoded and the at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded, obtain at least one first center information of the descriptor to be decoded. Based on the at least one first center information of the descriptor to be decoded, obtain the reconstructed data of the at least one 3D map point.

[0081] In a possible design, the method may further include: sending 3D map request information, receiving a code stream of a 3D map corresponding to the 3D map request information, or receiving a code stream of a 3D map sent by an electronic device.

[0082] In one possible design, obtaining at least one first center information of the descriptor to be decoded based on at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded may include: obtaining at least one first center information of the descriptor to be decoded by looking up a first table based on at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded.

[0083] In a possible design, obtaining at least one first center information of the descriptor to be decoded according to at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded includes: obtaining at least one first center information of the descriptor to be decoded by looking up a second table according to the at least one second center information of the descriptor to be decoded. The second table is established based on at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded.

[0084] In one possible design, at least one first center information of the descriptor to be decoded is obtained based on at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded, including: taking the exclusive OR value or the sum value of the at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded as the at least one first center information of the descriptor to be decoded.

[0085] In a twelfth aspect, an embodiment of the present application provides a 3D map compression device, which may be a chip or system on chip in an electronic device or server, or a functional module in an electronic device or server for implementing the method described in the tenth aspect or any possible implementation of the tenth aspect. For example, the device may include: a mapping module, a compact processing module, and a packaging module.

[0086] The mapping module is used to perform clustering processing on the descriptor to be encoded to obtain at least one first center information of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. The at least one first center information is used to represent the center of at least one sub-feature of the descriptor to be encoded after clustering processing.

[0087] The mapping module is further used to obtain at least one first reference center information of the reference descriptor corresponding to the descriptor to be encoded. The reference descriptor corresponds to at least one encoded 3D map point of the 3D map. The at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering. At least one second center information of the descriptor to be encoded is obtained based on the at least one first center information of the descriptor to be encoded and the at least one first reference center information.

[0088] The compaction processing module is used to perform compaction processing on at least one second central information of the descriptor to be encoded to obtain a compact representation of the descriptor to be encoded.

[0089] The encapsulation module is used to encapsulate the compact representation to obtain a code stream of the 3D map.

[0090] In one possible design, the apparatus may further include: a transmission module. The transmission module is used to receive 3D map request information sent by an electronic device, and in response to the 3D map request information, send a code stream of the 3D map corresponding to the 3D map request information to the electronic device, or the transmission module is used to send a code stream of the 3D map to a server.

[0091] In a possible design, the mapping module is specifically used to obtain at least one second center information of the descriptor to be encoded by looking up a first table according to at least one first center information and at least one first reference center information of the descriptor to be encoded.

[0092] In a possible design, the first table includes at least one encoding center information and at least one third center information corresponding to at least one second reference center information. The at least one encoding center information includes at least one first center information of the descriptor to be encoded, and the at least one second reference center information includes the at least one first reference center information. The mapping module is specifically used to: obtain at least one first center information and at least one third center information corresponding to at least one first reference center information from the first table according to at least one first center information and at least one first reference center information of the descriptor to be encoded. The at least one third center information is used as the at least one second center information of the descriptor to be encoded.

[0093] In a possible design, the first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoding center information or at least one second reference center information.

[0094] In a possible design, the mapping module is specifically used to obtain at least one second central information of the descriptor to be encoded by looking up a second table according to at least one first central information of the descriptor to be encoded. The second table is established based on the at least one first reference central information.

[0095] In a possible design, the second table includes the at least one first reference center information and at least one fourth center information corresponding to the at least one first center information of the descriptor to be encoded. The mapping module is specifically used to: obtain at least one fourth center information corresponding to the at least one first center information from the second table according to the at least one first center information of the descriptor to be encoded. The at least one fourth center information corresponding to the at least one first center information is used as the at least one second center information of the descriptor to be encoded.

[0096] In a possible design, the second table is at least a one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first center information.

[0097] In one possible design, the mapping module is specifically used to: use the exclusive OR value or difference of at least one first center information of the descriptor to be encoded and at least one first reference center information as at least one second center information of the descriptor to be encoded.

[0098] In a thirteenth aspect, an embodiment of the present application provides a 3D map decompression device, which may be a chip or system on chip in an electronic device or server, or a functional module in an electronic device or server for implementing the method described in the eleventh aspect or any possible implementation of the eleventh aspect. For example, the device may include: a decapsulation module, a demapping module, and a reconstruction module.

[0099] The decapsulation module is used to decapsulate the code stream of the 3D map to obtain at least one second center information of a descriptor to be decoded. The descriptor to be decoded corresponds to at least one 3D map point in the 3D map.

[0100] The demapping module is used to obtain at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded. The reference descriptor corresponds to at least one decoded 3D map point of the 3D map. The at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering. The at least one first center information of the descriptor to be decoded is obtained according to the at least one second center information of the descriptor to be decoded and the at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded.

[0101] The reconstruction module is used to obtain the reconstructed data of the at least one 3D map point according to the at least one first center information of the descriptor to be decoded.

[0102] In a possible design, the above-mentioned device may also include: a transmission module, which is used to send 3D map request information and receive a code stream of a 3D map corresponding to the 3D map request information. Or, it is used to receive a code stream of a 3D map sent by an electronic device.

[0103] In one possible design, the demapping module is specifically used to obtain at least one first center information of the descriptor to be decoded by looking up a first table based on at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded.

[0104] In one possible design, the de-mapping module is specifically used to obtain at least one first center information of the descriptor to be decoded by looking up a second table according to at least one second center information of the descriptor to be decoded. The second table is established based on at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded.

[0105] In one possible design, the demapping module is specifically used to: use the exclusive OR value or the sum value of at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded as the at least one first center information of the descriptor to be decoded.

[0106] In the fourteenth aspect, an embodiment of the present application provides a 3D map compression device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the tenth aspect or any possible design of the tenth aspect.

[0107] In the fifteenth aspect, an embodiment of the present application provides a 3D map decompression device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the eleventh aspect or any possible design of the eleventh aspect.

[0108] In the sixteenth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that it includes a computer program, which, when executed on a computer, enables the computer to execute the method described in the tenth aspect or any possible design of the tenth aspect, or execute the method described in the eleventh aspect or any possible design of the eleventh aspect.

[0109] In the seventeenth aspect, the present application provides a computer program or a computer program product. When the computer program or the computer program product is executed on a computer, it enables the computer to implement the method described in the above tenth to eleventh aspects and any possible implementation manner thereof.

[0110] In an eighteenth aspect, the present application provides a non-transitory storage medium, comprising a bit stream encoded according to any one of the methods described in the tenth aspect above.

[0111] It should be understood that the third to ninth aspects of the present application are consistent with the technical solutions of the first to second aspects of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar, and will not be repeated. The twelfth to eighteenth aspects of the present application are consistent with the technical solutions of the tenth to eleventh aspects of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar, and will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS

[0112] Figure 1 A schematic diagram of an application architecture provided in an embodiment of the present application;

[0113] Figure 2 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application;

[0114] Figure 3 A schematic diagram of the structure of the server 30 provided in the embodiment of the present application;

[0115] Figure 4a-4f A schematic diagram of an application scenario provided for an embodiment of the present application;

[0116] Figure 4g A schematic diagram of a user interface displayed by an electronic device provided in an embodiment of the present application;

[0117] Figure 5 It is a flowchart of a 3D map compression method provided in an embodiment of the present application;

[0118] Figure 6 A schematic diagram comparing the data distribution of the second compact representation and the data distribution of the first compact representation provided in an embodiment of the present application;

[0119] Figure 7 It is a flowchart of a 3D map decompression method provided in an embodiment of the present application;

[0120] Figure 8 It is a flowchart of a 3D map compression method provided in an embodiment of the present application;

[0121] Fig. 9 It is a flowchart of a 3D map decompression method provided in an embodiment of the present application;

[0122] Fig.10 It is a flowchart of a 3D map compression method provided in an embodiment of the present application;

[0123] Fig.11 It is a flowchart of a 3D map decompression method provided in an embodiment of the present application;

[0124] Fig.12 It is a flowchart of a 3D map compression method provided in an embodiment of the present application;

[0125] Fig.13 It is a flowchart of a 3D map decompression method provided in an embodiment of the present application;

[0126] Fig.14 A schematic diagram of the structure of a 3D map compression device provided in an embodiment of the present application;

[0127] Fig.15 A schematic diagram of the structure of a 3D map decompression device provided in an embodiment of the present application;

[0128] Fig.16 A schematic block diagram of a decoding device 1600 provided in an embodiment of the present application;

[0129] Fig.17 A schematic diagram of dividing a first compact representation substring provided in an embodiment of the present application;

[0130] Fig.18 A schematic flow chart of a 3D map compression method is provided for an embodiment of the present application;

[0131] Fig.19 A flowchart of a 3D map decompression method is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0132] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0133] The terms "first", "second", etc. in the specification embodiments, claims, and drawings of the present application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product, or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0134] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0135] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0136] The singular forms of "a", "said" and "the" used in the embodiments of the present application or the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items. As used herein, the singular forms of "one", "some" and "the" are intended to also include plural forms, unless the context clearly indicates otherwise. It will also be understood that the terms "include", "have", "include" and / or "contain" specify the presence of stated features, integers, steps, operations, elements, and / or components when used in this article, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0137] It should be noted that the terms used in the embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0138] Figure 1 A schematic diagram of an application architecture provided in an embodiment of the present application, such as Figure 1 As shown, the application architecture includes multiple electronic devices and a server, wherein the multiple electronic devices may include a first electronic device, one or more second electronic devices ( Figure 1(In the example of two second electronic devices), the one or more second electronic devices are several electronic devices other than the first electronic device. Multiple electronic devices and servers, and multiple electronic devices can communicate with each other. For example, for any device in the application architecture, it can communicate with other devices through wireless fidelity (WiFi) communication, Bluetooth communication, or cellular 2 / 3 / 4 / 5 generation (2G / 3G / 4G / 5G) communication. It should be understood that other communication methods can be used between the server and the electronic device, including future communication methods, which are not specifically limited. It should be noted that the "one or more second electronic devices" in the embodiments of the present application are only used to represent electronic devices other than the first electronic device, but it does not limit whether the types of multiple electronic devices are the same.

[0139] The electronic device may be any type of device equipped with a camera and a display component. For example, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a video recorder, or other terminal device ( Figure 1 The electronic device is a mobile phone as an example), the electronic device can also be a device for virtual scene interaction, including VR glasses, AR devices, MR interactive devices, etc. The electronic device can also be a wearable electronic device such as a smart watch and a smart bracelet, and the electronic device can also be a device carried in a vehicle, an unmanned vehicle, a drone, an industrial robot, etc. The specific form of the electronic device is not specifically limited in the embodiments of the present application.

[0140] In addition, the above-mentioned electronic device may also be referred to as user equipment (UE), subscriber station, mobile unit, subscriber unit, wireless unit, remote unit, mobile device, wireless device, wireless communication device, remote device, mobile subscriber station, terminal device, access terminal, mobile terminal, wireless terminal, smart terminal, remote terminal, handset, user agent, mobile client, client, or other suitable term.

[0141] The above server can be one or more physical servers ( Figure 1 It can also be a computer cluster, a virtual machine or a cloud server in a cloud computing scenario, and so on.

[0142] In the embodiment of the present application, the electronic device may install a virtual scene application (application, APP) such as a VR application, an AR application or an MR application, and may run the VR application, the AR application or the MR application based on the user's operation (such as clicking, touching, sliding, shaking, voice control, etc.). The electronic device may collect visual information of any object in the environment through a sensor, and then display a virtual object on the display component according to the collected visual information. The virtual object may be a virtual object in a VR scene, an AR scene or an MR scene (i.e., an object in a virtual environment).

[0143] In the embodiments of the present application, the electronic device can install navigation, detection, and control applications, and run the corresponding applications based on user control or preset programs. The electronic device can perform path planning, object detection, vehicle control, and other applications based on its own position and other state information in the current environment.

[0144] The posture refers to the position and orientation information of the electronic device, which can be an absolute posture in the world coordinate system or a relative posture relative to a certain point in the environment.

[0145] The visual information involved in the embodiments of the present application includes, but is not limited to, images and videos (without depth information) captured by a camera, images and videos with depth information captured by a depth sensor, data collected by a laser radar (LiDAR), and data collected by a millimeter wave radar (RaDAR).

[0146] It should be noted that in the embodiments of the present application, the virtual scene application in the electronic device can be an application built into the electronic device itself, or it can be an application provided by a third-party service provider and installed by the user, and there is no specific limitation on this.

[0147] In the embodiment of the present application, the electronic device may also be configured with a simultaneous localization and mapping (SLAM) system, which can create a map in a completely unknown environment and use the map for positioning, position and posture (position and attitude) determination, navigation, etc. In the embodiment of the present application, the map created by the SLAM system is referred to as a SLAM map, and the SLAM map can be understood as a map drawn by the SLAM system based on the environmental information collected by the collection device, and the collection device may include a visual information collection device and an inertial measurement unit (IMU) in the electronic device, wherein the visual information collection device may include, for example, a camera, a depth camera, a laser radar, a millimeter wave radar, etc., and the IMU may include, for example, a gyroscope, an accelerometer, and other sensors.

[0148] In the embodiment of the present application, the SLAM map is also referred to as a 3D map. It should be noted that the 3D map includes but is not limited to the SLAM map, and may also include a three-dimensional map created using other technologies, which is not specifically limited in the embodiment of the present application.

[0149] In a possible implementation, the 3D map may include multiple 3D map points, and accordingly, the data of the 3D map may include data of multiple 3D map points. A 3D map point is a point in an environment that is interesting or has significant features.

[0150] One possible way to obtain 3D map points is to use laser radar, aerial photography from a drone perspective (oblique photography), high-definition panoramic cameras, high-definition industrial cameras and other devices to shoot, and extract them from the data captured by the above devices through methods such as ORB, scale-invariant feature transform (SIFT), speeded up robust features (SURF), binary robust independent elementary features (BRIEF), binary robust invariant scalable keypoints (BRISK), fast retina keypoint (FREAK), D2Net, or feature point detection and descriptor extraction method based on self-supervised training (SuperPoint).

[0151] The data of 3D map points can include:

[0152] (1) 3D map point descriptor

[0153] A 3D map point descriptor is a vector that represents the local features of a corresponding 3D map point. In the visual positioning algorithm, the 3D map point descriptor is used to match 3D map points. One possible approach is to calculate the distance between two 3D map point descriptors (which can be Euclidean distance, inner product distance, Hamming distance, etc.). When the distance is less than a threshold, the two 3D map points are considered to match.

[0154] (2) 3D map point spatial location

[0155] The spatial position of a 3D map point can be represented by X, Y, and Z on the three-dimensional axis, or by longitude and latitude, altitude, or polar coordinates. The embodiment of the present application does not impose any specific restrictions on the representation method of the spatial position of a 3D map point. The spatial position of a 3D map point can be the absolute position of the 3D map point or the relative position of the 3D map point. For example, with the center position of the entire area as the origin, all spatial positions of 3D map points are offset positions relative to the spatial position of the origin.

[0156] In the embodiment of the present application, a number can be assigned to each 3D map point and written into the data of the 3D map, or the number of the 3D map point can be implicitly represented by the storage order of multiple 3D map points in the memory. It should be noted that the order between the multiple 3D map points contained in the 3D map has no practical meaning, so the aforementioned number can be considered as an identifier for identifying the 3D map point to distinguish each 3D map point, but the number is not used to limit the order between the multiple 3D map points. For example, the 3D map contains 3 3D map points, which are numbered 1, 2 and 3 respectively. The processing of the three 3D map points can be performed in the order of 1, 2, 3, or in the order of 3, 2, 1, or in the order of 2, 1, 3, and so on.

[0157] In a possible implementation, the data of the 3D map also includes multiple region descriptors, and any one of the multiple region descriptors is used to describe the features of some or all of the 3D map points in the above-mentioned multiple 3D map points, that is, for any one of the multiple region descriptors, the region descriptor can be used to describe the features of some or all of the 3D map points in the multiple 3D map points, so that the region descriptor and the 3D map point are in a one-to-many relationship. And the features of each 3D map point in the multiple 3D map points can be described by some or all of the region descriptors in the multiple region descriptors, so that the 3D map point and the region descriptor are in a one-to-many relationship. It can be seen that there is a many-to-many relationship between the multiple region descriptors and the multiple 3D map points. The generation method of the region descriptor includes but is not limited to traditional methods such as bag of words (BOW), vector of locally aggregated descriptors (VLAD) and new methods based on NetVLAD and artificial intelligence (AI). Similarly, multiple region descriptors may also be identified by numbers to distinguish the multiple region descriptors, but the numbers are also not a limitation on the order between the multiple region descriptors.

[0158] In a possible implementation, the 3D map data also includes a correspondence between 3D map points and descriptors, in which the correspondence clearly describes which 3D map points any descriptor corresponds to, and which descriptors any 3D map point corresponds to.

[0159] Optionally, the above correspondence can be explicitly described by a correspondence table between the number of the region descriptor and the number of the 3D map point. For example, the 3D map contains 3 region descriptors, numbered T1 to T3, and 6 3D map points, where the spatial positions of the 6 3D map points are numbered P1 to P6, and the 6 3D map point descriptors are numbered F1 to F6. The correspondence table is shown in Table 1.

[0160] Table 1

[0161]

[0162] It should be noted that Table 1 is an example of a correspondence table between the numbers of region descriptors and the numbers of 3D map points. The correspondence table may also be presented in other formats or ways, and this application does not make any specific limitations on this.

[0163] Optionally, the above correspondence can also be implicitly described using region descriptors and storage locations of 3D map points. For example, T1 is stored in the memory first, followed by the data of P1, P2 and P3, then T2 is stored, followed by the data of P2 and P3, and finally T3 is stored, followed by the data of P3, P4, P5 and P6.

[0164] Figure 2 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the electronic device 20 may be Figure 1 At least one of the first electronic device and one or more second electronic devices in the illustrated embodiment. It should be understood that Figure 2 The structure shown does not constitute a specific limitation on the electronic device 20. In other embodiments of the present application, the electronic device 20 may include Figure 2 The structures shown may have more or fewer components, or may combine or separate certain components, or may have different arrangements of components. Figure 2 The various components shown in the EMBODIMENTS 2000 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0165] The electronic device 20 may include: a chip 21, a memory 22 (one or more computer-readable storage media), a user interface 23, a display component 24, a camera 25, a sensor 26, a positioning module 27 for device positioning, and a transceiver 28 for communication. These components may communicate with each other via one or more buses 29.

[0166] The chip 21 may be integrated with: one or more processors 211, a clock module 212, and a power management module 213. The clock module 212 integrated in the chip 21 is mainly used to provide the processor 211 with a timer required for data transmission and timing control, and the timer can realize the clock function of data transmission and timing control. The processor 211 can perform operations and generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions. The power management module 213 integrated in the chip 21 is mainly used to provide stable and high-precision voltage for the chip 21 and other components of the electronic device 20.

[0167] The processor 211 may also be referred to as a central processing unit (CPU). The processor 211 may specifically include one or more processing units. For example, the processor 211 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or may be integrated into one or more processors.

[0168] In one possible implementation, the processor 211 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0169] The memory 22 can be connected to the processor 211 via the bus 29, or can be coupled to the processor 311 to store various software programs and / or multiple sets of instructions. The memory 22 can include a high-speed random access memory (such as a cache memory), or can include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 22 can store an operating system, such as Android, Apple Mobile Platform (IOS), Microsoft Windows Operating System (Windows) or embedded operating systems such as Linux. The memory 22 can also store data, such as image data, point cloud data, 3D map data, posture data, coordinate system conversion information, map update information, etc. The memory 22 can also store computer executable program code, which includes instructions, such as communication program instructions, related program instructions of SLAM systems, etc. The memory 22 can also store one or more applications, such as virtual scene applications such as AR / VR / MR, map applications, image management applications, navigation and control applications, etc. The memory 22 can also store a user interface program, which can display the content of the application, such as virtual objects in virtual scenes such as AR / VR / MR, realistically through a graphical operating interface and present it through the display component 24, and realize receiving user control operations on the application through input controls such as menus, dialog boxes and buttons.

[0170] The user interface 23 may be, for example, a touch panel that can detect operation instructions of the user thereon. The user interface 23 may also be, for example, a keypad, a physical button, or a mouse.

[0171] The electronic device 20 may include one or more display components 24. The electronic device 20 may realize the display function by the display component 24, the graphics processor (GPU) in the chip 21, and the application processor (AP). The GPU is a microprocessor for image processing, which connects the display component 24 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The display component 24 can display the interface content output by the electronic device 20, for example, displaying images, videos, etc. in virtual scenes such as AR / VR / MR. The interface content may include the interface of the running application and the system-level menu, etc., and may be specifically composed of the following interface elements: input interface elements, such as buttons (Button), text input boxes (Text), sliders (Scroll Bar), menus (Menu), etc.; output interface elements, such as windows (Window), labels (Label), images, videos, animations, etc.

[0172] The display component 24 can be a display panel, a lens (such as VR glasses), a projection screen, etc. The display panel can also be called a display screen, for example, it can be a touch screen, a flexible screen, a curved screen, etc., or it can be other optical components. It should be understood that the display screen of the electronic device in the embodiment of the present application can be a touch screen, a flexible screen, a curved screen or other forms of screens, that is, the display screen of the electronic device has the function of displaying images, and the specific material and shape of the display screen are not specifically limited.

[0173] For example, when the display component 24 includes a display panel, the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In addition, in a possible implementation, the touch panel in the user interface 23 and the display panel in the display component 24 can be coupled together, for example, the touch panel can be arranged under the display panel, the touch panel is used to detect the touch pressure acting on the display panel when the user inputs a touch operation (such as clicking, sliding, touching, etc.) through the display panel, and the display panel is used to display content.

[0174] The camera 25 may be a monocular camera or a binocular camera or a depth camera, and is used to shoot / record the environment to obtain an image / video image. The image / video image collected by the camera 25 may be used as an input data of a SLAM system, or may be displayed as an image / video through the display component 24.

[0175] In a possible implementation, the camera 25 may also be regarded as a sensor. The image captured by the camera 25 may be in IMG format or other format types, which is not specifically limited in the embodiment of the present application.

[0176] The sensor 26 can be used to collect data related to the state change (e.g., rotation, swing, movement, shaking, etc.) of the electronic device 20, and the data collected by the sensor 26 can be used as a kind of input data of the SLAM system. The sensor 26 may include one or more sensors, such as an inertial measurement unit (IMU), a time of flight (TOF) sensor, etc. The IMU may include sensors such as a gyroscope and an accelerometer. The gyroscope is used to measure the angular velocity of the electronic device when it moves, and the accelerometer is used to measure the acceleration of the electronic device when it moves. The TOF sensor may include a light transmitter and a light receiver. The light transmitter is used to emit light outward, such as laser, infrared, radar wave, etc., and the light receiver is used to detect reflected light, such as reflected laser, infrared, radar wave, etc.

[0177] It should be noted that the sensor 26 may also include more other sensors, such as an inertial sensor, a barometer, a magnetometer, a wheel speed meter, etc., which is not specifically limited in the embodiment of the present application.

[0178] The positioning module 27 is used to realize the physical positioning of the electronic device 20, for example, to obtain the initial position of the electronic device 20. The positioning module 27 may include one or more of a WiFi positioning module, a Bluetooth positioning module, a base station positioning module, and a satellite positioning module. The satellite positioning module may be provided with a global navigation satellite system (GNSS) to assist in positioning, and the GNSS is not limited to the Beidou system, the global positioning system (GPS) system, the GLONASS system, and the Galileo satellite navigation system (Galileo) system.

[0179] The transceiver 28 is used to realize the communication between the electronic device 20 and other devices (for example, servers, other electronic devices, etc.). The transceiver 28 integrates a transmitter and a receiver, which are used to send and receive radio frequency signals respectively. In a specific implementation, the transceiver 28 includes but is not limited to: an antenna system, a radio frequency (RF) transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec (CODEC) chip, a subscriber identification module (SIM) card and a storage medium, etc. In a possible implementation, the transceiver 28 can also be implemented on a separate chip. The transceiver 28 supports at least one data network communication of 2G / 3G / 4G / 5G, etc., and / or supports at least one of the following short-range wireless communication methods: Bluetooth (BT) communication, wireless fidelity (WiFi) communication, near field communication (NFC), infrared (IR) wireless communication, ultra wide band (UWB) communication, ZigBee communication.

[0180] In the embodiment of the present application, the processor 211 executes various functional applications and data processing of the electronic device 20 by running the program code stored in the memory 22 .

[0181] Figure 3 A schematic diagram of the structure of the server 30 provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, the server 30 may be Figure 1 The server 30 in the illustrated embodiment includes a processor 301 , a memory 302 (one or more computer-readable storage media), and a transceiver 303 . These components can communicate with each other via one or more buses 304 .

[0182] The processor 301 may be one or more CPUs. When the processor 301 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.

[0183] The memory 302 may be connected to the processor 301 via the bus 304, or may be coupled to the processor 301, and is used to store various program codes and / or multiple sets of instructions, and data (e.g., map data, posture data, etc.). In a specific implementation, the memory 302 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM).

[0184] The transceiver 303 mainly integrates a receiver and a transmitter, wherein the receiver is used to receive data (eg, requests, images, etc.) sent by an electronic device, and the transmitter is used to send data (eg, map data, posture data, etc.) to the electronic device.

[0185] It should be understood that Figure 3 The server 30 shown is only an example provided in the embodiment of the present application. The server 30 may also have more components than those shown in the figure, and the embodiment of the present application does not make any specific limitation on this.

[0186] In the embodiment of the present application, the processor 301 executes various functional applications and data processing of the server 30 by running the program code stored in the memory 302.

[0187] The term "coupled" used in the embodiments of the present application means directly connected or connected through one or more intermediate components or circuits.

[0188] Figure 4a A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4a As shown, the application scenario is that the electronic device collects visual information through sensors, and determines the current position of the electronic device by combining the visual information and a 3D map from a server.

[0189] The 3D map is provided by the server, that is, the server creates the 3D map, then compresses the 3D map and transmits the compressed data of the 3D map to the electronic device; after receiving the compressed data of the 3D map, the electronic device decompresses it to obtain the reconstructed data of the 3D map, and determines the current posture of the electronic device by combining the collected visual information and the reconstructed data of the 3D map. The posture is the position information of the electronic device, which can be the absolute posture in the world coordinate system or the relative posture relative to a certain point in the environment.

[0190] In the embodiment of the present application, the server can pre-create a 3D map, compress the 3D map and store it locally, which can save storage space. In addition, the server can also transmit the compressed data of the 3D map to other devices, such as cloud storage.

[0191] 1. The server creates a 3D map and compresses the 3D map data to store it locally.

[0192] The server compresses the 3D map to save local storage space.

[0193] 2. The electronic device sends a map download request to the server. There are two ways to trigger the map download request:

[0194] (1) The user opens a map application installed on an electronic device, and the application uploads location information obtained based on GPS positioning or WiFi positioning to its corresponding server. The upload operation can trigger a map download request. Since the uploaded content includes location information, the server can make a preliminary estimate based on the location information and transmit the compressed data of the 3D map of the area to which the location point indicated by the location information belongs to the electronic device. The range of the area to which the location point indicated by the location information belongs can be pre-set. For example, the area to which the location point belongs can be the administrative districts of various levels (including counties, cities, countries or administrative districts, etc.) where the location point is located, or it can be a circular area with the location point as the center and a set distance as the radius.

[0195] (2) The user opens a map application installed on the electronic device and actively inputs or selects an area in the application. For example, the user actively inputs "xx Commercial Center" or selects "Street A" from a list of "Street A, Street B, Street C". The user's aforementioned operation can trigger a map download request. Since the user input or selection includes a geographic location, the server transmits compressed data of the 3D map of the geographic location to the electronic device.

[0196] It should be understood that in addition to the above two methods, other methods can also be used in the embodiments of the present application to trigger a map download request. For example, the electronic device automatically detects whether the conditions for downloading a 3D map or starting to download a 3D map are met, or the electronic device starts downloading a 3D map by detecting changes in ambient light or detecting changes in the environment to request the server to download a 3D map within a certain area. The size of the area is not specifically limited.

[0197] 3. The server sends compressed data of the 3D map to the electronic device.

[0198] 4. Electronic devices collect visual information through sensors.

[0199] It should be noted that step 3 and step 4 are independent of each other and the order of execution is not limited.

[0200] 5. The electronic device decompresses the compressed data of the 3D map to obtain reconstructed data of the 3D map.

[0201] 6. The electronic device is positioned in the 3D map according to the visual information to obtain a posture corresponding to the visual information.

[0202] After receiving the compressed data of the 3D map, the electronic device does not need to decompress it immediately, but only needs to decompress it to obtain the reconstructed data of the 3D map before positioning based on the visual information. For example, the user can download the compressed data of the 3D map of a certain area in advance by downloading the "offline map", and only decompress the compressed data of the 3D map when positioning is needed.

[0203] Figure 4b A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4b As shown, the application scenario is that the electronic device collects visual information through sensors, and the server determines the current position of the electronic device by combining the visual information from the electronic device and the 3D map.

[0204] The 3D map is provided by the server, that is, the server creates the 3D map, then compresses the 3D map and stores the compressed data of the 3D map locally. When receiving visual information from the electronic device, the server decompresses it to obtain the reconstructed data of the 3D map, and determines the current position of the electronic device by combining the visual information and the reconstructed data of the 3D map.

[0205] 1. The server creates a 3D map and compresses the 3D map data to store it locally.

[0206] 2. Electronic devices collect visual information through sensors.

[0207] 3. The electronic device sends visual information to the server.

[0208] 4. The server decompresses the compressed data of the 3D map to obtain the reconstructed data of the 3D map.

[0209] It should be understood that the server compresses the 3D map in order to save storage space.

[0210] 5. The server locates in the 3D map based on the visual information to obtain the position and posture corresponding to the visual information.

[0211] 6. The server sends the position and posture to the electronic device.

[0212] Figure 4c A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4c As shown, the application scenario is that the electronic device collects visual information through sensors, and determines the current position of the electronic device by combining the collected visual information and a 3D map.

[0213] The 3D map is provided by the electronic device, that is, the electronic device creates the 3D map, then compresses the 3D map and stores the compressed data of the 3D map locally. When the visual information is collected, the electronic device decompresses it to obtain the reconstructed data of the 3D map, and determines the current position of the electronic device by combining the collected visual information and the reconstructed data of the 3D map.

[0214] 1. The electronic device creates a 3D map and compresses the 3D map data to store it locally.

[0215] It should be understood that the electronic device compresses the 3D map in order to save storage space.

[0216] 2. Electronic devices collect visual information through sensors.

[0217] 3. The electronic device decompresses the compressed data of the 3D map to obtain reconstructed data of the 3D map.

[0218] 4. The electronic device is positioned in the 3D map according to the visual information to obtain a posture corresponding to the visual information.

[0219] Figure 4d A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4b As shown, the application scenario is that the second electronic device collects visual information through a sensor, and determines the current position of the second electronic device by combining the visual information and a 3D map from a server.

[0220] The 3D map is created by the first electronic device, that is, the first electronic device creates the 3D map, compresses the 3D map, and then sends the compressed data of the 3D map to the server. The server then sends the compressed data of the 3D map to the second electronic device. The second electronic device decompresses the data to obtain the reconstructed data of the 3D map, and determines the current position of the second electronic device by combining the collected visual information and the reconstructed data of the 3D map.

[0221] In an embodiment of the present application, the first electronic device may create a 3D map in advance, compress the 3D map and transmit it to the server, which can reduce the transmission bandwidth.

[0222] 1. The first electronic device creates a 3D map and compresses the 3D map to obtain compressed data.

[0223] 2. The first electronic device sends compressed data of the 3D map to the server.

[0224] The first electronic device compresses the 3D map before transmitting it, which can reduce the transmission bandwidth and improve the transmission efficiency.

[0225] 3. The second electronic device sends a map download request to the server.

[0226] The second electronic device may also send a map download request based on Figure 4a The triggering method shown.

[0227] 4. The server sends the compressed data of the 3D map to the second electronic device.

[0228] 5. The second electronic device decompresses the compressed data of the 3D map to obtain reconstructed data of the 3D map.

[0229] 6. The second electronic device acquires visual information through sensors.

[0230] 7. The second electronic device is positioned in the 3D map according to the visual information to obtain a position and posture corresponding to the visual information.

[0231] Figure 4e A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4c As shown, the application scenario is that the second electronic device collects visual information through a sensor, and the server determines the current position of the second electronic device by combining the visual information from the second electronic device and the 3D map from the first electronic device.

[0232] The 3D map is created by the first electronic device, that is, the first electronic device creates the 3D map, compresses the 3D map, and then sends the compressed data of the 3D map to the server. The server decompresses the data to obtain the reconstructed data of the 3D map, and determines the current position of the second electronic device by combining the visual information from the second electronic device and the reconstructed data of the 3D map.

[0233] 1. The first electronic device creates a 3D map and compresses the 3D map to obtain compressed data.

[0234] 2. The first electronic device sends compressed data of the 3D map to the server.

[0235] 3. The second electronic device collects visual information through sensors.

[0236] 4. The second electronic device sends a positioning request to the server, where the positioning request carries visual information.

[0237] 5. The server decompresses the compressed data of the 3D map to obtain the reconstructed data of the 3D map.

[0238] 6. The server locates in the 3D map based on the visual information to obtain the position and posture corresponding to the visual information.

[0239] 7. The server sends the position and posture obtained by positioning to the second electronic device.

[0240] Figure 4f A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 4d As shown, the application scenario is that the second electronic device collects visual information through a sensor, and determines the current position of the second electronic device by combining the visual information and the 3D map from the first electronic device.

[0241] The 3D map is created by a first electronic device, that is, the first electronic device creates a 3D map, compresses the 3D map, and then sends the compressed data of the 3D map to a second electronic device. The second electronic device decompresses the data to obtain reconstructed data of the 3D map, and determines the current position of the second electronic device by combining the collected visual information and the 3D map from the first electronic device.

[0242] 1. The first electronic device creates a 3D map, compresses the 3D map to obtain compressed data, and stores the compressed data locally.

[0243] 2. The second electronic device sends a map download request to the first electronic device.

[0244] 3. The first electronic device sends compressed data of the 3D map to the second electronic device.

[0245] 4. The second electronic device decompresses the compressed data of the 3D map to obtain reconstructed data of the 3D map.

[0246] 5. The second electronic device acquires visual information through sensors.

[0247] 6. The second electronic device is positioned in the 3D map according to the visual information to obtain a position and posture corresponding to the visual information.

[0248] Figure 4a to Figure 4f In the illustrated embodiment, the positioning algorithm used may include:

[0249] (1) Extracting the descriptor of the region to be retrieved from the visual information. The algorithm used to extract the descriptor of the region to be retrieved is consistent with the algorithm used to extract the region descriptor from the 3D map.

[0250] (2) Extract the 3D map points to be retrieved from the visual information, and obtain the spatial position of the 3D map points to be retrieved and the descriptors of the 3D map points to be retrieved. The algorithm for extracting the descriptors of the 3D map points to be retrieved is consistent with the algorithm for extracting the descriptors of the 3D map points from the 3D map.

[0251] (3) Searching for multiple region descriptors contained in the 3D map data according to the region descriptor to be retrieved to obtain multiple candidate region descriptors.

[0252] In an embodiment of the present application, the distance between the region descriptor to be retrieved and each region descriptor in the multiple region descriptors can be calculated, and the distance may include Hamming distance, Manhattan distance, or Euclidean distance, etc., and then at least one region descriptor that meets the conditions (for example, the distance is less than a threshold) is selected, that is, the candidate region descriptor.

[0253] (4) Use the 3D map point descriptor to be retrieved to match the 3D map point descriptors corresponding to the multiple candidate region descriptors. Matching is to calculate the similarity between the 3D map point descriptor to be retrieved and the 3D map point descriptors corresponding to the multiple candidate region descriptors, and find the most similar 3D map point.

[0254] (5) Based on the matched 3D map points, the pose of the electronic device is calculated using pose solving algorithms such as pespective-n-point (PnP) and efficient perspective-n-point camera pose estimation (EPnP).

[0255] exist Figure 4a to Figure 4fIn any application scenario, positioning is performed based on the 3D map of the embodiment of the present application to obtain the current posture of the electronic device, which can be applied to AR navigation, AR human-computer interaction, assisted driving, automatic driving and other fields. Taking AR navigation based on this posture as an example, Figure 4g A schematic diagram of a user interface displayed by an electronic device according to an embodiment of the present application. The electronic device can display the following information based on the posture: Figure 4g The user interface shown in the figure may include a navigation arrow indicating navigation to conference room 2. The navigation arrow indicating navigation to conference room 2 may be a virtual object obtained from the server or locally based on the position. The user interface may also include visual information collected by the sensor, for example, Figure 4g The user refers to the electronic device as shown in Figure 4g Go to Meeting Room 2 in the user interface shown.

[0256] It should be noted that the reconstructed data of the 3D map obtained by decompression involved in the embodiments of the present application can also be referred to as the reconstructed data of the 3D map.

[0257] and Figure 4a to Figure 4f The illustrated embodiments all involve compression and decompression of 3D maps. The embodiments of the present application provide a plurality of methods for performing the aforementioned compression and decompression processes. The methods for the compression and decompression processes are described below.

[0258] Based on the above description, the following is a 3D map compression method provided by an embodiment of the present application. For the various method embodiments described below, for convenience, they are all expressed as a combination of a series of action steps, but those skilled in the art should know that the specific implementation of the technical solution of the present application is not limited by the order of the described series of action steps.

[0259] See also Figure 5 , Figure 5 is a flow chart of a 3D map compression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers shown in the examples. The method includes but is not limited to the following steps:

[0260] S101 , compacting a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded.

[0261] The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. The descriptor to be encoded may be a region descriptor, which corresponds to multiple 3D map points in the 3D map. Or the descriptor to be encoded may be a 3D map point descriptor, which corresponds to a 3D map point in the 3D map.

[0262] In one implementation, a quantization process is performed on a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The quantization process includes but is not limited to: scalar quantization, vector quantization, or product quantization. Exemplarily, the descriptor to be encoded can be mapped to one or more quantization indexes through the quantization process, and the one or more quantization indexes are the first compact representation of the descriptor to be encoded. Each quantization index in the one or more quantization indexes corresponds to a quantization center.

[0263] Another possible implementation method is to perform binarization on the descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The binarization includes but is not limited to: hashing of iterative quantization (ITQ), locality-sensitive hashing (LSH), or spectral hashing, etc. Exemplarily, the descriptor to be encoded can be mapped to a Hamming space (also called a binary space) through binarization to obtain a binarized representation, which is the first compact representation of the descriptor to be encoded.

[0264] Whether through the above quantization process or through the binarization process, the number of bits of the first compact representation of the descriptor to be encoded is usually significantly less than the number of bits of the original descriptor to be encoded, thereby achieving the purpose of saving storage and / or transmission bandwidth.

[0265] S102: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded.

[0266] The at least one reference descriptor corresponds to at least one encoded 3D map point of the 3D map. Exemplarily, the 3D map point descriptor and the 3D map point spatial position are independently encoded, and the at least one encoded 3D map point can be at least one encoded 3D map point descriptor. The embodiment of the present application does not specifically limit the encoding of the 3D map point spatial position. Of course, it can be understood that in some cases, the at least one encoded 3D map point can be at least one encoded 3D map point descriptor and at least one encoded 3D map point spatial position, and the embodiment of the present application is not limited to this.

[0267] Similar to the compaction processing of the descriptor to be encoded, in some embodiments, the at least one reference descriptor may be compacted to obtain a compact representation of the at least one reference descriptor. For example, if the descriptor to be encoded is quantized to obtain a first compact representation of the descriptor to be encoded, the at least one reference descriptor is quantized to obtain a compact representation of the at least one reference descriptor. If the descriptor to be encoded is binarized to obtain a first compact representation of the descriptor to be encoded, the at least one reference descriptor is binarized to obtain a compact representation of the at least one reference descriptor.

[0268] Explanation of at least one reference descriptor corresponding to the descriptor to be encoded. In one implementation, the at least one reference descriptor may include at least one descriptor that has been encoded or compressed before the descriptor to be encoded. Taking a reference descriptor as an example, the reference descriptor may be an encoded or compressed descriptor before the descriptor to be encoded. In another implementation, the at least one reference descriptor may include at least one preset descriptor. The preset descriptor may be flexibly set according to demand. For example, the preset descriptor may be 10101010. In another implementation, the at least one reference descriptor may include at least one descriptor determined by a neural network model or a clustering algorithm. The neural network model may be a convolutional neural network (CNN), a deep neural network (DNN), a recurrent neural network (RNN), or a recursive residual convolutional neural network (RR-CNN), etc., which is not specifically limited in the embodiments of the present application. For example, the at least one reference descriptor may be determined using CNN based on multiple descriptors in a database or multiple descriptors of an image to be retrieved.

[0269] S103 . Obtain a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor.

[0270] By mapping the first compact representation of the descriptor to be encoded to a second compact representation, the data distribution of the second compact representation is different from the data distribution of the first compact representation. The data distribution of the compact representation (e.g., the first compact representation or the second compact representation) of the embodiment of the present application refers to the distribution of binary numbers in the compact representation. The embodiment of the present application reduces the amount of data of the code stream of the 3D map obtained after subsequent encapsulation by changing the data distribution of the compact representation, thereby reducing the resource overhead required to transmit the code stream of the 3D map.

[0271] In some embodiments, the first compact representation may include at least one first compact representation substring, and the second compact representation may include at least one second compact representation substring. Accordingly, the compact representation of each reference descriptor in the at least one reference descriptor includes at least one first reference compact representation substring. Figure 6 As shown, Figure 6 A schematic diagram comparing the data distribution of the second compact representation and the data distribution of the first compact representation provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the horizontal axis is the compact representation substring, the vertical axis is the frequency of occurrence, the diagonal bars are the data distribution of the first compact representation, and the blank bars are the data distribution of the second compact representation. Figure 6 It can be seen that the first compact representation substrings included in the first compact representation are approximately evenly distributed in different values, while different from the first compact representation, the second compact representation substrings included in the second compact representation are more concentratedly distributed in some values ​​(such as Figure 6 It can be seen that the data distribution of the second compact representation is different from the data distribution of the first compact representation.

[0272] It should be noted that Figure 6 This is only an exemplary example. The data distribution of the second compact representation of the embodiment of the present application may also be in other forms. For example, the second compact representation substrings included in the second compact representation are more concentrated in other values ​​(such as 230 to 255). The data distribution of the second compact representation of the embodiment of the present application is not based on Figure 6 As a restriction.

[0273] S104: Encapsulate the second compact representation to obtain a code stream of the 3D map.

[0274] The second compact representation may be subjected to entropy coding and other processing to obtain a code stream of the 3D map.

[0275] It should be noted that the second compact representation obtained through the compression process from S101 to S103 may also be referred to as compressed data. Afterwards, the compressed data is packaged through S104 to obtain a code stream of the 3D map. Such compression process may also be referred to as encoding process.

[0276] Optionally, the execution subject of this embodiment may be a server, and the server may also receive 3D map request information sent by the electronic device (for example, Figure 4a In response to the 3D map request information, the 3D map code stream corresponding to the 3D map request information is sent to the electronic device. Alternatively, the execution subject of this embodiment may be an electronic device, and the electronic device may also send the code stream of the 3D map to the server. The electronic device may be a user terminal device or a vehicle-mounted electronic device.

[0277] In some embodiments, the number of at least one reference descriptor corresponding to the descriptor to be encoded, or the difference between the number of the reference descriptor and the number of the descriptor to be encoded, can also be encapsulated so that the code stream of the 3D map also carries the number of the at least one reference descriptor or the difference in the numbers. During decompression, the at least one reference descriptor can be obtained according to the number of the at least one reference descriptor or the difference in the numbers, and decompression is performed based on the at least one reference descriptor.

[0278] In this embodiment, a first compact representation of the descriptor to be encoded is obtained by compacting the descriptor to be encoded, a second compact representation of the descriptor to be encoded is obtained based on the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor, and the second compact representation is encapsulated to obtain a code stream of the 3D map. The data amount of the descriptor to be encoded is first reduced by compacting, and then the first compact representation is mapped to the second compact representation to change the data distribution of the compact representation, thereby further reducing the data amount of the code stream of the 3D map obtained by encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map.

[0279] See also Figure 7 , Figure 7 is a flow chart of a 3D map decompression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers shown in the examples. The method includes but is not limited to the following steps:

[0280] S201. Decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded.

[0281] The descriptor to be decoded corresponds to at least one 3D map point in the 3D map. The descriptor to be decoded may be a region descriptor, which corresponds to multiple 3D map points in the 3D map. Or the descriptor to be decoded may be a 3D map point descriptor, which corresponds to a 3D map point in the 3D map.

[0282] The second compact representation of the descriptor to be decoded in this embodiment is the above Figure 5 A second compact representation of the descriptor to be encoded in an embodiment.

[0283] It should be noted that, by decapsulating the code stream of the 3D map in S201 to obtain the second compact representation, such decompression processing can also be called decoding processing. The second compact representation obtained by decapsulation can also be called compressed data. Afterwards, by S202 to S204, the compressed data is decompressed.

[0284] S202: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0285] The at least one reference descriptor corresponds to at least one decoded 3D map point of the 3D map. Exemplarily, the 3D map point descriptor and the 3D map point spatial position are decoded independently, and the at least one decoded 3D map point can be at least one decoded 3D map point descriptor. The decoding of the 3D map point spatial position is not specifically limited in the embodiments of the present application. Of course, it can be understood that in some cases, the at least one decoded 3D map point can be at least one decoded 3D map point descriptor and at least one decoded 3D map point spatial position, and the embodiments of the present application are not limited to this.

[0286] An explanation of at least one reference descriptor corresponding to the descriptor to be decoded. Figure 5The reference descriptors of the illustrated embodiment are similar. In one implementation, the at least one reference descriptor may include at least one decoded or decompressed descriptor before the descriptor to be decoded. Taking a reference descriptor as an example, the reference descriptor may be a decoded or decompressed descriptor before the descriptor to be decoded. In another implementation, the at least one reference descriptor may include at least one preset descriptor. The preset descriptor may be flexibly set according to demand. For example, the preset descriptor may be 10101010. In another implementation, the at least one reference descriptor may include at least one descriptor determined by a neural network model or a clustering algorithm. In another implementation, the code stream of the 3D map is decapsulated, and the number of at least one reference descriptor corresponding to the descriptor to be decoded, or the difference between the number of the reference descriptor and the number of the descriptor to be decoded, is obtained, according to the number of at least one reference descriptor corresponding to the descriptor to be decoded, or the difference between the number of the reference descriptor and the number of the descriptor to be decoded, at least one reference descriptor corresponding to the descriptor to be decoded is obtained.

[0287] S203 . Obtain a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0288] The second compact representation of the descriptor to be decoded is inversely mapped to the first compact representation of the descriptor to be decoded. The first compact representation of the descriptor to be decoded is the above Figure 5 A first compact representation of the descriptor to be encoded in an embodiment.

[0289] S204 . Obtain reconstructed data of at least one 3D map point according to the first compact representation of the descriptor to be decoded.

[0290] According to the first compact representation of the descriptor to be decoded, reconstructed data of at least one 3D map point is obtained. The reconstructed data of the at least one 3D map point can be used for positioning based on a 3D map. Exemplarily, if the first compact representation is one or more quantized indexes, the reconstructed data of the 3D map point can be obtained by performing dequantization processing on the one or more quantized indexes.

[0291] In this embodiment, by decapsulating the code stream of the 3D map, a second compact representation of the descriptor to be decoded is obtained, and based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded, a first compact representation of the descriptor to be decoded is obtained, and based on the first compact representation of the descriptor to be decoded, reconstructed data of at least one 3D map point is obtained. The encoding end first performs compaction processing to reduce the amount of data of the descriptor to be encoded, and then maps the first compact representation to the second compact representation to change the data distribution of the compact representation, thereby further reducing the amount of data of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required to transmit the code stream of the 3D map. The decoding end can de-map the second compact representation obtained by decapsulation to obtain the first compact representation, and then obtain the reconstructed data of the 3D map point.

[0292] In the above embodiment, mapping the first compact representation to the second compact representation may be implemented in different ways.

[0293] Method 1: First table mapping (also called static table mapping)

[0294] According to the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor, a second compact representation of the descriptor to be encoded is obtained by looking up a first table. The first table may be preset.

[0295] Method 2: Second table mapping (also called dynamic table mapping)

[0296] According to the first compact representation of the descriptor to be encoded, a second compact representation of the descriptor to be encoded is obtained by looking up a second table, wherein the second table is established based on the compact representation of at least one reference descriptor.

[0297] Method 3: Difference or XOR

[0298] The XOR value or the difference value of the compact representation of at least one reference descriptor and the first compact representation of the descriptor to be encoded is used as the second compact representation of the descriptor to be encoded.

[0299] Several specific coding and decoding embodiments are used below to specifically explain the above-mentioned method 1, method 2 and method 3.

[0300] See also Figure 8 , Figure 8 is a flow chart of a 3D map compression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4fAny of the servers exemplified. The 3D map compression method of this embodiment uses the above-mentioned method 1 to map the first compact representation to the second compact representation. This embodiment is illustrated by taking the example that the first compact representation includes at least one first compact representation substring and the second compact representation includes at least one second compact representation substring. The method includes but is not limited to the following steps:

[0301] S301: Compact a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The first compact representation includes at least one first compact representation substring.

[0302] S302: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0303] The relevant explanations of S301 to S302 can be found in Figure 5 The specific explanations of S101 to S102 of the illustrated embodiment are not repeated here.

[0304] S303. According to the at least one first compact representation substring and the at least one first reference compact representation substring, obtain from the first table at least one third compact representation substring corresponding to the at least one first compact representation substring and the at least one first reference compact representation substring.

[0305] The first table of this embodiment may include at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring.

[0306] At least one encoding compact representation substring of the first table includes at least one first compact representation substring of the descriptor to be encoded, and at least one second reference compact representation substring of the first table includes at least one first reference compact representation substring of the at least one reference descriptor. Thus, according to at least one first compact representation substring and at least one first reference compact representation substring, at least one corresponding third compact representation substring can be obtained from the first table.

[0307] The first table can be in many different forms. In one example, the first table can be a multi-dimensional array, such as a two-dimensional array or a three-dimensional array.

[0308] Taking the first table as a two-dimensional array as an example, T[i][j] represents the third compact representation substring corresponding to the coded compact representation substring i and the second reference compact representation substring j. i takes 0 to N-1 respectively, and j takes 0 to M-1 respectively. N and M are positive integers greater than 1. N represents the total number of coded compact representation substrings, and M represents the total number of second reference compact representation substrings. Taking a first compact table substring as an example, when using the first table to map the first compact representation substring, the first compact representation substring can be used to find the same substring x as the first compact representation substring in the N coded compact representation substrings, x∈[0,N-1], and the first reference compact representation substring corresponding to the first compact representation substring is used to find the same substring y as the first reference compact representation substring in the M second reference compact representation substrings, y∈[0,M-1], and T[x][y] is the corresponding third compact representation substring.

[0309] Wherein, T[i][j] can be obtained by function mapping. The function can be a function of the encoding compact representation substring i and the reference compact representation substring j. In one example, the function can be a random function. Of course, it can be understood that the function can also be other functions, and its specific form is not specifically limited in the embodiments of the present application.

[0310] In some embodiments, T[i][j] is less than or equal to the encoded compact representation substring i, or greater than or equal to the encoded compact representation substring i.

[0311] If T[i][j] of the first table is less than or equal to the encoded compact representation substring i, then the third compact representation substring obtained through the first table is less than or equal to the first compact representation substring.

[0312] If T[i][j] of the first table is greater than or equal to the encoded compact representation substring i, then the third compact representation substring obtained through the first table is greater than or equal to the first compact representation substring.

[0313] Taking the first table as a three-dimensional array as an example, T[i][j][1], T[i][j][2], ..., and T[i][j][K] represent the K third compact representation substrings corresponding to the coded compact representation substring i and the reference compact representation substring j. i is 0 to N-1, and j is 0 to M-1. N, M, and K are positive integers greater than 1. N represents the total number of coded compact representation substrings, and M represents the total number of reference compact representation substrings. Taking a first compact table substring as an example, when using the first table to map the first compact representation substring, the first compact representation substring can be used to find the substring x that is the same as the first compact representation substring among the N encoded compact representation substrings, x∈[0,N-1], and the compact representation substring corresponding to the first compact representation substring can be used to find the substring y that is the same as the compact representation substring among the M reference compact representation substrings, y∈[0,M-1], T[x][y][1], T[x][y][2], ..., and T[x][y][K] are the corresponding multiple third compact representation substrings.

[0314] T[i][j][1], T[i][j][2], ..., and T[i][j][K] can be obtained by function mapping. The function can be a function of the encoding compact representation substring i and the reference compact representation substring j. In one example, the function can be a random function. Of course, it can be understood that the function can also be other functions, and its specific form is not specifically limited in the embodiments of the present application.

[0315] In another example, T[i][j1][j2] represents the third compact representation substring corresponding to the encoded compact representation substring i, the second reference compact representation substring j1, and the second reference compact representation substring j2. i is 0 to N-1, j1, j2 are 0 to M-1. N and M are positive integers greater than 1. N represents the total number of encoded compact representation substrings, and M represents the total number of second reference compact representation substrings. Taking a first compact table substring as an example, when using the first table to map the first compact representation substring, the first compact representation substring can be used to find the substring x that is the same as the first compact representation substring among the N encoded compact representation substrings, x∈[0,N-1], and use a second reference compact representation substring j1 corresponding to the first compact representation substring to find the substring y that is the same as the second compact representation substring j1 among the M second reference compact representation substrings, y∈[0,M-1], and use another second reference compact representation substring j2 corresponding to the first compact representation substring to find the substring z that is the same as the second compact representation substring j2 among the M second reference compact representation substrings, z∈[0,M-1], and T[x][y][z] is the corresponding third compact representation substring.

[0316] T[x][y][z] can be obtained by function mapping. The function can be a function of the encoded compact representation substring i, the second reference compact representation substring j1, and the second reference compact representation substring j2. In one example, the function can be a random function. Of course, it can be understood that the function can also be other functions, and its specific form is not specifically limited in the embodiments of the present application.

[0317] S304: Obtain a second compact representation of the descriptor to be encoded according to at least one first compact representation substring and at least one third compact representation substring corresponding to at least one first reference compact representation substring.

[0318] In one possible implementation, a first compact representation substring and a first reference compact representation substring correspond to a third compact representation substring. The corresponding at least one third compact representation substring is respectively used as a second compact representation substring, and the obtained at least one second compact representation substring is the second compact representation of the descriptor to be encoded. Since T[i][j] in the first table is less than or equal to the encoded compact representation substring i, the first compact representation substring is used, and the second compact representation substring obtained through the first table mapping is less than or equal to the first compact representation substring. Therefore, through the first table mapping, the first compact representation substring can be mapped toward a first direction, and the first direction can be a direction with a smaller value (for example, such as Figure 6 The horizontal axis shown in the left direction) makes the second compact representation substring more likely to be a smaller value, making the data distribution of the second compact representation more concentrated, so as to reduce the amount of data in the code stream of the 3D map obtained through subsequent entropy coding. Alternatively, since T[i][j] in the first table is greater than or equal to the encoded compact representation substring i, the first compact representation substring is used, and the second compact representation substring obtained by mapping the first table is greater than or equal to the first compact representation substring. Therefore, through the first table mapping, the first compact representation substring can be mapped toward the second direction, and the second direction can be a direction with a larger value (for example, such as Figure 6 The horizontal axis as shown is to the right), so that the second compact representation substring is more likely to be a larger value, and the data distribution of the second compact representation is more concentrated, so as to reduce the data volume of the code stream of the 3D map obtained by subsequent entropy coding.

[0319] In another implementation, a first compact representation substring and a first reference compact representation substring correspond to multiple third compact representation substrings. A second compact representation substring is obtained based on the corresponding multiple third compact representation substrings. In this way, at least one second compact representation substring is obtained, which is the second compact representation of the descriptor to be encoded. For example, the multiple third compact representation substrings corresponding to a first compact representation substring and a first reference compact representation substring are T[i][j][1], T[i][j][2], ..., and T[i][j][K]. Then, a second compact representation substring can be obtained based on T[i][j][1], T[i][j][2], ..., and T[i][j][K]. For example, T[i][j][1], T[i][j][2], ..., and T[i][j][K] are averaged, and the average value is used as a second compact representation substring. Of course, it is understandable that other methods can also be used to obtain a second compact representation substring based on multiple third compact representation substrings. The embodiments of the present application do not illustrate them one by one. Since the second compact representation substring obtained through the first table is less than or equal to the encoded compact representation substring i, the first compact representation substring is used, and the second compact representation substring obtained through the first table mapping is less than or equal to the first compact representation substring. Therefore, through the first table mapping, the first compact representation substring can be mapped toward the first direction, and the first direction can be a direction with a smaller value (for example, Figure 6 The horizontal axis shown in the left direction) makes the second compact representation substring more likely to be a smaller value, making the data distribution of the second compact representation more concentrated, so as to reduce the amount of data in the code stream of the 3D map obtained after subsequent entropy coding. Alternatively, since the second compact representation substring obtained through the first table is greater than or equal to the encoded compact representation substring i, the first compact representation substring is used, and the second compact representation substring obtained through the first table mapping is greater than or equal to the first compact representation substring. Therefore, through the first table mapping, the first compact representation substring can be mapped toward the second direction, and the second direction can be a direction with a larger value (for example, such as Figure 6 The horizontal axis as shown is to the right), so that the second compact representation substring is more likely to be a larger value, and the data distribution of the second compact representation is more concentrated, so as to reduce the data volume of the code stream of the 3D map obtained by subsequent entropy coding.

[0320] In the embodiment of the present application, the order of at least one first compact representation substring is different from the order of at least one second compact representation substring.

[0321] S305: Encapsulate the second compact representation to obtain a code stream of the 3D map.

[0322] Among them, the relevant explanation of S305 can be found in Figure 5 The specific explanation of S104 in the illustrated embodiment will not be repeated here.

[0323] In this embodiment, by performing compaction processing on the descriptor to be encoded, at least one first compacted representation substring of the descriptor to be encoded is obtained, and according to the at least one first compacted representation substring and the at least one first reference compacted representation substring, at least one third compacted representation substring corresponding to the at least one first compacted representation substring and the at least one first reference compacted representation substring is obtained from the first table, and according to the at least one first compacted representation substring and the at least one third compacted representation substring corresponding to the at least one first reference compacted representation substring, a second compacted representation of the descriptor to be encoded is obtained, and the second compacted representation is encapsulated to obtain a code stream of the 3D map. The data amount of the descriptor to be encoded is first reduced by compaction processing, and then the first compacted representation is mapped to the second compacted representation through the first table to change the data distribution of the compacted representation, thereby further reducing the data amount of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map.

[0324] See also Fig. 9 , Fig. 9 is a flow chart of a 3D map decompression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers exemplified. The decompression method of the 3D map of this embodiment uses the first table to reversely map the second compact representation to the first compact representation. This embodiment is illustrated by taking the example that the first compact representation includes at least one first compact representation substring and the second compact representation includes at least one second compact representation substring. The method includes but is not limited to the following steps:

[0325] S401: Decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded. The second compact representation includes at least one second compact representation substring.

[0326] The code stream of the 3D map can be Figure 8 The code stream of the 3D map obtained in the embodiment shown can also be obtained by Fig.10 The code stream of the 3D map obtained in the embodiment shown. The compression method and decompression method of the embodiment of the present application can be flexibly combined.

[0327] S402: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0328] The relevant explanations of S401 to S402 can be found in Figure 7 The specific explanations of S201 to S202 of the illustrated embodiment are not repeated here.

[0329] S403. According to at least one second compact representation substring and at least one first reference compact representation substring, obtain from the first table at least one first compact representation substring corresponding to the at least one second compact representation substring and the at least one first reference compact representation substring.

[0330] The first table of this embodiment can be Figure 8 The same table as the first table in the embodiment shown may also be Figure 8 In the embodiment shown, the first table is different from the table, for example, it can be Figure 8 The inverse mapping table corresponding to the first table in the illustrated embodiment. In this embodiment, the compact representation before mapping can be obtained through the first table, and then the reconstructed data of the 3D map point can be obtained.

[0331] Taking the first table as a two-dimensional array as an example, T[i][j] represents the third compact representation substring corresponding to the encoded compact representation substring i and the second reference compact representation substring j, and the third compact representation substring is used as a second compact representation substring. Let i'=T[i][j], i' represents the second compact representation substring, then the inverse mapping table of this embodiment can be expressed as T'[i'][j], that is, the compact representation substring before mapping is obtained through the inverse mapping table, i=T'[i'][j].

[0332] S404. Obtain reconstructed data of at least one 3D map point according to at least one first compact representation substring.

[0333] The relevant explanation of S404 can be found in Figure 7 The specific explanation of S204 in the illustrated embodiment will not be repeated here.

[0334] In this embodiment, by decapsulating the code stream of the 3D map, at least one second compact representation substring of the descriptor to be decoded is obtained. According to the at least one second compact representation substring of the descriptor to be decoded and at least one first reference compact representation substring of at least one reference descriptor, at least one first compact representation substring of the descriptor to be decoded is obtained from the first table. According to the at least one first compact representation substring of the descriptor to be decoded, the reconstructed data of at least one 3D map point is obtained. The encoding end first performs compaction processing to reduce the data amount of the descriptor to be encoded, and then maps the first compact representation to the second compact representation to change the data distribution of the compact representation, thereby further reducing the data amount of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map. The decoding end can de-map the second compact representation obtained by decapsulation through the first table to obtain the first compact representation, and then obtain the reconstructed data of the 3D map point.

[0335] See also Fig.10 , Fig.10 is a flow chart of a 3D map compression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers exemplified. The 3D map compression method of this embodiment uses the above-mentioned method 2 to map the first compact representation to the second compact representation. This embodiment is illustrated by taking the example that the first compact representation includes at least one first compact representation substring and the second compact representation includes at least one second compact representation substring. The method includes but is not limited to the following steps:

[0336] S501: Compact a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The first compact representation includes at least one first compact representation substring.

[0337] S502: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0338] The relevant explanations of S501 to S502 can be found in Figure 5 The specific explanations of S101 to S102 of the illustrated embodiment are not repeated here.

[0339] S503: According to the at least one first compact representation substring, obtain from the second table at least one fourth compact representation substring corresponding to the at least one first compact representation substring.

[0340] The second table is established based on a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded.

[0341] Taking a first reference compact representation substring as an example, the second table of this embodiment may include the first reference compact representation substring and at least one fourth compact representation substring corresponding to at least one first compact representation substring. That is, one first reference compact representation substring and one second table. Multiple first reference compact representation substrings may establish multiple second tables.

[0342] The second table can have many different forms. In one example, the second table can be a one-dimensional array or a multi-dimensional array, and the multi-dimensional array can be, for example, a two-dimensional array or a three-dimensional array.

[0343] Taking the second table as a one-dimensional array as an example, T[k] represents the fourth compact representation substring corresponding to the first compact representation substring k. k is 0 to N-1, N is the number of the first compact representation substring, N is a positive integer greater than 1, and k is the first compact representation substring k.

[0344] Wherein, T[k] can be obtained by function mapping. In one example, the function can be a random function. Of course, it can be understood that the function can also be other functions, and the specific form of which is not specifically limited in the embodiments of the present application.

[0345] T[k] is less than or equal to the first compact representation substring k, or greater than or equal to the first compact representation substring k.

[0346] If T[k] of the second table is less than or equal to the first compact representation substring k, then the fourth compact representation substring obtained through the second table is less than or equal to the first compact representation substring.

[0347] If T[k] of the first table is greater than or equal to the first compact representation substring k, then the fourth compact representation substring obtained through the second table is greater than or equal to the first compact representation substring.

[0348] S504: Obtain a second compact representation of the descriptor to be encoded according to at least one fourth compact representation substring.

[0349] In one possible implementation, a first compact representation substring corresponds to a fourth compact representation substring. The corresponding at least one fourth compact representation substring is respectively used as a second compact representation substring, and the obtained at least one second compact representation substring is the second compact representation of the descriptor to be encoded. Since T[k] in the second table is less than or equal to the first compact representation substring k, the first compact representation substring is used, and the second compact representation substring obtained through the second table mapping is less than or equal to the first compact representation substring. Therefore, through the second table mapping, the first compact representation substring can be mapped toward a first direction, and the first direction can be a direction with a smaller value (for example, such as Figure 6 The horizontal axis shown in the second table is in the left direction), so that the second compact representation substring is more likely to be a smaller value, so that the data distribution of the second compact representation is more concentrated, so as to reduce the amount of data in the code stream of the 3D map obtained by subsequent entropy coding. Alternatively, since T[k] in the second table is greater than or equal to the first compact representation substring k, the first compact representation substring is used, and the second compact representation substring obtained by mapping the second table is greater than or equal to the first compact representation substring. Therefore, through the second table mapping, the first compact representation substring can be mapped toward the second direction, and the second direction can be a direction with a larger value (for example, such as Figure 6 The horizontal axis as shown is to the right), so that the second compact representation substring is more likely to be a larger value, and the data distribution of the second compact representation is more concentrated, so as to reduce the data volume of the code stream of the 3D map obtained by subsequent entropy coding.

[0350] In the embodiment of the present application, the order of at least one first compact representation substring is different from the order of at least one second compact representation substring.

[0351] S505: Encapsulate the second compact representation to obtain a code stream of the 3D map.

[0352] Among them, the relevant explanation of S505 can be found in Figure 5 The specific explanation of S104 in the illustrated embodiment will not be repeated here.

[0353] In this embodiment, by compacting the descriptor to be encoded, at least one first compact representation substring of the descriptor to be encoded is obtained, and based on the at least one first compact representation substring, at least one fourth compact representation substring corresponding to the at least one first compact representation substring is obtained from the second table. The second table is established based on at least one first reference compact representation substring of at least one reference descriptor. Based on the at least one fourth compact representation substring, a second compact representation of the descriptor to be encoded is obtained, and the second compact representation is encapsulated to obtain a code stream of the 3D map. After the compaction process is first performed to reduce the amount of data of the descriptor to be encoded, the first compact representation is then mapped to the second compact representation through the second table to change the data distribution of the compact representation, thereby further reducing the amount of data of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required to transmit the code stream of the 3D map.

[0354] See also Fig.11 , Fig.11 is a flow chart of a 3D map decompression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers exemplified. The decompression method of the 3D map of this embodiment uses a second table to reversely map the second compact representation to the first compact representation. This embodiment is illustrated by taking the first compact representation including at least one first compact representation substring and the second compact representation including at least one second compact representation substring as an example. The method includes but is not limited to the following steps:

[0355] S601: Decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded. The second compact representation includes at least one second compact representation substring.

[0356] The code stream of the 3D map can be Figure 8 The code stream of the 3D map obtained in the embodiment shown can also be obtained by Fig.10 The code stream of the 3D map obtained in the embodiment shown. The compression method and decompression method of the embodiment of the present application can be flexibly combined.

[0357] S602: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0358] The relevant explanations of S601 to S602 can be found in Figure 7 The specific explanations of S201 to S202 of the illustrated embodiment are not repeated here.

[0359] S603: According to the at least one second compact representation substring, obtain from the second table at least one first compact representation substring corresponding to the at least one second compact representation substring.

[0360] The second table is established by at least one first reference compact representation substring of one or more reference descriptors.

[0361] The second table of this embodiment can be Fig.10 The inverse mapping table corresponding to the second table in the illustrated embodiment. In this embodiment, the compact representation before mapping can be obtained through the second table, and then the reconstructed data of the 3D map point can be obtained.

[0362] Taking the second table as a one-dimensional array as an example, T[k] represents the fourth compact representation substring corresponding to the first compact representation substring k, and the fourth compact representation substring is used as a second compact representation substring. Let k'=T[k], k' represents the second compact representation substring, then the inverse mapping table of this embodiment can be expressed as T'[k'], that is, the compact representation substring before mapping is obtained through the inverse mapping table, k=T'[k'], T'[k'] is obtained according to a compact representation substring j of the reference descriptor.

[0363] S604: Obtain reconstructed data of at least one 3D map point according to at least one first compact representation substring.

[0364] The relevant explanation of S604 can be found in Figure 7 The specific explanation of S204 in the illustrated embodiment will not be repeated here.

[0365] In this embodiment, by decapsulating the code stream of the 3D map, at least one second compact representation substring of the descriptor to be decoded is obtained. According to the at least one second compact representation substring of the descriptor to be decoded, at least one first compact representation substring of the descriptor to be decoded is obtained from the second table. According to the at least one first compact representation substring of the descriptor to be decoded, the reconstructed data of at least one 3D map point is obtained. The second table is established according to at least one first reference compact representation substring of at least one reference descriptor. The encoding end first performs compaction processing to reduce the data amount of the descriptor to be encoded, and then maps the first compact representation to the second compact representation to change the data distribution of the compact representation, thereby further reducing the data amount of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map. The decoding end can de-map the second compact representation obtained by decapsulation through the second table to obtain the first compact representation, and then obtain the reconstructed data of the 3D map point.

[0366] See also Fig.12 , Fig.12 is a flow chart of a 3D map compression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers exemplified. The 3D map compression method of this embodiment uses the above-mentioned method 3 to map the first compact representation to the second compact representation. This embodiment is illustrated by taking the example that the first compact representation includes at least one first compact representation substring and the second compact representation includes at least one second compact representation substring. The method includes but is not limited to the following steps:

[0367] S701: Compact a descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The first compact representation includes at least one first compact representation substring.

[0368] S702: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded, wherein the compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0369] The relevant explanations of S701 to S702 can be found in Figure 5 The specific explanations of S101 to S102 of the illustrated embodiment are not repeated here.

[0370] S703: Take the XOR value or the difference value of at least one first compact representation substring and the corresponding compact representation substring of at least one reference descriptor as at least one second compact representation substring.

[0371] Taking at least one first compact representation substring including N first compact representation substrings as an example, N XOR values ​​or difference values ​​are used as N second compact representation substrings. The N XOR values ​​or difference values ​​are XOR values ​​or difference values ​​of the N first compact representation substrings and the compact representation substring of at least one reference descriptor corresponding to each of them.

[0372] S704: Obtain a second compact representation of the descriptor to be encoded according to at least one second compact representation substring.

[0373] At least one second compact representation substring is combined to obtain a second compact representation of the descriptor to be encoded.

[0374] S705: Encapsulate the second compact representation to obtain a code stream of the 3D map.

[0375] Among them, the relevant explanation of S705 can be found in Figure 5 The specific explanation of S104 in the illustrated embodiment will not be repeated here.

[0376] In this embodiment, by performing compaction processing on the descriptor to be encoded, at least one first compacted representation substring of the descriptor to be encoded is obtained, and the XOR value or difference value of the at least one first compacted representation substring and the corresponding compacted representation substring of at least one reference descriptor is used as at least one second compacted representation substring, thereby obtaining a second compacted representation of the descriptor to be encoded, and encapsulating the second compacted representation to obtain a code stream of the 3D map. The data amount of the descriptor to be encoded is first reduced by compaction processing, and then the first compacted representation is mapped to the second compacted representation by XOR or difference value to change the data distribution of the compacted representation, thereby further reducing the data amount of the code stream of the 3D map obtained by encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map.

[0377] See also Fig.13 , Fig.13 is a flow chart of a 3D map decompression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers exemplified. The decompression method of the 3D map of this embodiment uses XOR or addition to reversely map the second compact representation to the first compact representation. This embodiment is illustrated by taking the example that the first compact representation includes at least one first compact representation substring and the second compact representation includes at least one second compact representation substring. The method includes but is not limited to the following steps:

[0378] S801: Decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded. The second compact representation includes at least one second compact representation substring.

[0379] The code stream of the 3D map can be Fig.12 The code stream of the 3D map obtained in the illustrated embodiment.

[0380] S802: Obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring of at least one reference descriptor.

[0381] The relevant explanations of S801 to S802 can be found in Figure 7 The specific explanations of S201 to S202 of the illustrated embodiment are not repeated here.

[0382] S803: Take the exclusive OR value or the sum value of at least one second compact representation substring and the corresponding compact representation substring of at least one reference descriptor as at least one first compact representation substring.

[0383] Taking the example that at least one second compact representation substring includes N second compact representation substrings, N XOR values ​​or sum values ​​are used as N first compact representation substrings. The N XOR values ​​or sum values ​​are XOR values ​​or sum values ​​of the N second compact representation substrings and the compact representation substring of at least one reference descriptor corresponding to each of them.

[0384] S804: Obtain a first compact representation of the descriptor to be decoded according to at least one first compact representation substring.

[0385] At least one first compact representation substring is combined to obtain a first compact representation of the descriptor to be decoded.

[0386] S805 . Obtain reconstructed data of at least one 3D map point according to the first compact representation of the descriptor to be decoded.

[0387] Among them, the relevant explanation of S805 can be found in Figure 7 The specific explanation of S204 in the illustrated embodiment will not be repeated here.

[0388] In this embodiment, by decapsulating the code stream of the 3D map, a second compact representation of the descriptor to be decoded is obtained, and based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded, a first compact representation of the descriptor to be decoded is obtained, and based on the first compact representation of the descriptor to be decoded, reconstructed data of at least one 3D map point is obtained. The encoding end first performs compaction processing to reduce the amount of data of the descriptor to be encoded, and then maps the first compact representation to the second compact representation to change the data distribution of the compact representation, thereby further reducing the amount of data of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required to transmit the code stream of the 3D map. The decoding end can de-map the second compact representation obtained by decapsulation to obtain the first compact representation, and then obtain the reconstructed data of the 3D map point.

[0389] At least one first compact representation substring of the descriptor to be encoded involved in the above-mentioned embodiments of the present application can be obtained by the following method: compacting the descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded, and dividing the first compact representation into one or more first compact representation substrings. There are many ways to implement the division of the first compact representation. For example, the first compact representation includes multiple binary information, one or multiple consecutive binary information is a first compact representation substring, or each interval of a preset number (for example, 2) of binary information is a first compact representation substring. For example, please refer to Fig.17 As shown in (a) and (b) in Fig.17As shown in (a), three consecutive binary information are used as a first compact representation substring, and the first compact representation can be divided into three first compact representation substrings. It should be noted that: Fig.17 (a) in the figure is described by taking the case where the lengths of the first compact representation substrings are the same as an example, but the present embodiment is not limited to this. For example, the lengths of the first compact representation substrings may also be different, and the present embodiment does not describe each of them one by one. Fig.17 As shown in (b), the first, fourth and seventh binary information of the first compact representation substring are used as a first compact representation substring, the second, fifth and eighth binary information of the first compact representation substring are used as a first compact representation substring, and the third, sixth and ninth binary information of the first compact representation substring are used as a first compact representation substring. It should be noted that Fig.17 (b) in the figure is illustrated by taking the interval of 2 binary information as an example, but the embodiments of the present application are not limited to this, and the embodiments of the present application are not illustrated one by one.

[0390] The above embodiment of the present application reduces the amount of data of the descriptor to be encoded by first performing compaction processing, and then maps the first compact representation to the second compact representation to change the data distribution of the compact representation, thereby further reducing the amount of data of the code stream of the 3D map obtained after encapsulation, thereby reducing the resource overhead required for transmitting the code stream of the 3D map. The embodiment of the present application also provides the following embodiments, which can achieve the same technical effect, and the specific explanation can be referred to the following embodiments.

[0391] See also Fig.18 , Fig.18 is a flow chart of a 3D map compression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers shown in the examples. The method includes but is not limited to the following steps:

[0392] S901 , clustering the descriptors to be encoded to obtain at least one first center information of the descriptors to be encoded.

[0393] For a detailed explanation of the descriptor to be encoded, please refer to Figure 5 The relevant explanations of S101 in the illustrated embodiment will not be repeated here.

[0394] The at least one first center information is used to represent the center of at least one sub-feature of the descriptor to be encoded after clustering. Any sub-feature of the descriptor to be encoded can be understood as a point in a space composed of at least one dimension, where the center can be the geometric center or the centroid or the center of gravity of a point or multiple points. For a point, the center is the point or the sub-feature itself. For multiple points, the multiple points may include multiple sub-features of the descriptor to be encoded, or the multiple points may include one or more sub-features of the descriptor to be encoded and one or more sub-features of the encoded descriptor. Any first center information may include at least one item such as the number of a center or the value of at least one dimension of a center. In other words, the first center information is used to represent a center, and then represents a class of sub-features. Sub-features of the same class have certain similarities, and sub-features of different classes have differences. The sum of the distances of each sub-feature to the center in the same class of sub-features is less than the sum of the distances of each sub-feature to another sub-feature.

[0395] Exemplarily, the descriptor to be encoded may be divided into one or more sub-features, and each sub-feature may be clustered to obtain one or more first center information. The one or more first center information may be the number of one or more cluster centers.

[0396] S902: Obtain at least one first reference center information of a reference descriptor corresponding to the descriptor to be encoded.

[0397] The reference descriptor corresponds to at least one encoded 3D map point of the 3D map. A detailed explanation of the reference descriptor can be found in Figure 5 The relevant explanations of S102 in the illustrated embodiment will not be repeated here.

[0398] The at least one first reference center information is used to indicate the center of at least one sub-feature of the reference descriptor after clustering. The at least one first reference center information may be the number of at least one reference cluster center.

[0399] S903 . Obtain at least one second center information of the descriptor to be encoded according to at least one first center information of the descriptor to be encoded and at least one first reference center information.

[0400] According to at least one first reference center information, at least one first center information of the descriptor to be encoded is mapped to at least one second center information. The implementation method of mapping at least one first center information to at least one second center information may be the same as the implementation method of mapping the first compact representation to the second compact representation in the above embodiment. The specific implementation method may refer to the specific explanation of the above embodiment, which will not be repeated here.

[0401] For example, at least one first center information is (C1, C2, C3), and at least one first reference center information is (PC1, PC2, PC3). Then, based on (PC1, PC2, PC3) and (C1, C2, C3), at least one second center information can be obtained as (C1', C2', C3').

[0402] S904: Compact at least one second central information of the descriptor to be encoded to obtain a compact representation of the descriptor to be encoded.

[0403] The detailed explanation of compaction processing can be found in Figure 5 S101 of the illustrated embodiment will not be described in detail here.

[0404] For example, at least one second center information (C1', C2', C3') is compacted to obtain a compact representation of the descriptor to be encoded, and the compact representation may be (D_bin_1', D_bin_2', D_bin_3').

[0405] S905: Encapsulate the compact representation to obtain a code stream of the 3D map.

[0406] The compact representation may be subjected to entropy coding and other processing to obtain a code stream of the 3D map.

[0407] In some embodiments, the number of the reference descriptor corresponding to the descriptor to be encoded, or the difference between the number of the reference descriptor and the number of the descriptor to be encoded, can also be encapsulated so that the number of the reference descriptor or the difference in the numbers is also carried in the code stream of the 3D map. During decompression, the reference descriptor can be obtained according to the number of the reference descriptor or the difference in the numbers, and decompression is performed based on the reference descriptor.

[0408] In this embodiment, at least one first center information of the descriptor to be encoded is obtained by clustering the descriptor to be encoded, at least one second center information of the descriptor to be encoded is obtained based on the at least one first center information and at least one first reference center information of the descriptor to be encoded, the at least one second center information of the descriptor to be encoded is compacted to obtain a compact representation of the descriptor to be encoded, and the compact representation is encapsulated to obtain a code stream of the 3D map. After clustering, the original descriptor to be encoded is represented by the first center information to reduce the data volume of the descriptor to be encoded, and then the at least one first center information is mapped to at least one second center information to change the data distribution of the center information, thereby further reducing the data volume of the code stream of the 3D map obtained after compaction and encapsulation, thereby reducing the resource overhead required to transmit the code stream of the 3D map.

[0409] See also Fig.19 , Fig.19 is a flow chart of a 3D map decompression method provided in an embodiment of the present application. In some implementations, the method can be applied to Figures 1 to 4f Any of the electronic devices exemplified above may also be applied to Figures 1 to 4f Any of the servers shown in the examples. The method includes but is not limited to the following steps:

[0410] S1001. Decapsulate a code stream of a 3D map to obtain at least one second center information of a descriptor to be decoded.

[0411] For a detailed explanation of the descriptor to be decoded, please refer to Figure 7 The relevant explanations of S201 in the illustrated embodiment are not repeated here.

[0412] The at least one second central information of the descriptor to be decoded in this embodiment is the above Fig.18 At least one second central information of the descriptor to be encoded in the illustrated embodiment.

[0413] S1002: Obtain at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded.

[0414] The reference descriptor corresponds to at least one decoded 3D map point of the 3D map. Figure 7 The relevant explanations of S202 in the illustrated embodiment are not repeated here.

[0415] The at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering processing.

[0416] S1003 . Obtain at least one first center information of the descriptor to be decoded according to at least one second center information of the descriptor to be decoded and at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded.

[0417] The at least one second central information of the descriptor to be decoded is inversely mapped to the at least one first central information of the descriptor to be decoded. The at least one first central information of the descriptor to be decoded here is the above Fig.18 At least one first central information of the descriptor to be encoded in the illustrated embodiment.

[0418] S1004. Obtain reconstructed data of at least one 3D map point according to at least one first center information of the descriptor to be decoded.

[0419] According to at least one first center information of the descriptor to be decoded, reconstructed data of at least one 3D map point is obtained. The reconstructed data of at least one 3D map point can be used for positioning based on a 3D map.

[0420] In this embodiment, by decapsulating the bitstream of the 3D map, at least one second center information of the descriptor to be decoded is obtained, and at least one first center information of the descriptor to be decoded is obtained based on the at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded. According to the at least one first center information of the descriptor to be decoded, the reconstructed data of at least one 3D map point is obtained. The encoding end first performs clustering processing, uses the first center information to represent the original descriptor to be encoded, and reduces the data volume of the descriptor to be encoded. Then, the at least one first center information is mapped to at least one second center information to change the data distribution of the center information, thereby further reducing the data volume of the bitstream of the 3D map obtained after compaction processing and encapsulation, thereby reducing the resource overhead required for transmitting the bitstream of the 3D map. The decoding end can de-map the at least one second center information obtained by decapsulation to obtain at least one first center information, and then obtain the reconstructed data of the 3D map point.

[0421] The above describes in detail the compression method and decompression method of the 3D map in the embodiment of the present application in conjunction with the accompanying drawings. Figures 14 to 16 The compression device and decompression device of the 3D map of the embodiment of the present application are introduced. It should be understood that the compression device of the 3D map can execute the compression method of the 3D map of the embodiment of the present application, and the decompression device of the 3D map can execute the decompression method of the 3D map of the embodiment of the present application. In order to avoid unnecessary repetition, the repeated description is appropriately omitted when introducing the compression device and decompression device of the 3D map of the embodiment of the present application.

[0422] See also Fig.14 , Fig.14 This is a schematic diagram of the structure of a 3D map compression device provided in an embodiment of the present application. Fig.14 As shown, the 3D map compression device 1400 may include: a compaction processing module 1401, a mapping module 1402 and a packaging module 1403.

[0423] The compaction processing module 1401 is used to perform compaction processing on the descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map.

[0424] The mapping module 1402 is used to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded. The at least one reference descriptor corresponds to at least one encoded 3D map point of the 3D map. The mapping module 1402 is also used to obtain a second compact representation of the descriptor to be encoded based on the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor. The encapsulation module 1403 is used to encapsulate the second compact representation to obtain a code stream of the 3D map.

[0425] In some embodiments, the above apparatus may further include: a transmission module 1404. The transmission module 1404 is used to receive 3D map request information sent by the electronic device, and in response to the 3D map request information, send a code stream of the 3D map corresponding to the 3D map request information to the electronic device. Alternatively, the transmission module 1404 is used to send a code stream of the 3D map to the server.

[0426] In some embodiments, the mapping module 1402 is used to obtain a second compact representation of the descriptor to be encoded by looking up a first table according to the first compact representation of the descriptor to be encoded and the compact representation of at least one reference descriptor.

[0427] In some embodiments, the first table includes at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring. The first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. The at least one encoded compact representation substring includes at least one first compact representation substring, and the at least one second reference compact representation substring includes at least one first reference compact representation substring of at least one reference descriptor. The mapping module 1402 is used to obtain at least one first compact representation substring and at least one third compact representation substring corresponding to at least one first reference compact representation substring from the first table according to at least one first compact representation substring of the descriptor to be encoded and at least one first reference compact representation substring of the reference descriptor corresponding to the descriptor to be encoded. According to at least one first compact representation substring and at least one third compact representation substring corresponding to at least one first reference compact representation substring, a second compact representation of the descriptor to be encoded is obtained.

[0428] In some embodiments, the mapping module 1402 is used to obtain a second compact representation of the descriptor to be encoded by looking up a second table according to the first compact representation of the descriptor to be encoded. The second table is established based on the compact representation of at least one reference descriptor.

[0429] In some embodiments, the first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded. The compact representation of at least one reference descriptor includes at least one first reference compact representation substring. The second table includes at least one first reference compact representation substring and at least one fourth compact representation substring corresponding to the at least one first compact representation substring. The mapping module 1402 is used to obtain at least one fourth compact representation substring corresponding to the at least one first compact representation substring from the second table according to the at least one first compact representation substring of the descriptor to be encoded. The second table is established based on at least one first reference compact representation substring. According to at least one fourth compact representation substring corresponding to the at least one first compact representation substring, a second compact representation of the descriptor to be encoded is obtained.

[0430] In some embodiments, the mapping module 1402 is used to: use an exclusive OR value or a difference value of a compact representation of at least one reference descriptor and a first compact representation of the descriptor to be encoded as a second compact representation of the descriptor to be encoded.

[0431] It should be noted that the 3D map compression device 1400 can execute Figure 5 or Figure 8 or Fig.10 or Fig.12 The 3D map compression method of the illustrated embodiment. The specific implementation principle and technical effects can be referred to the specific explanation of the above method embodiment, which will not be repeated here.

[0432] The present application also provides another 3D map compression device, which can be used in the same manner as Fig.14 Same structure.

[0433] Among them, the mapping module 1402 is used to perform clustering processing on the descriptor to be encoded to obtain at least one first center information of the descriptor to be encoded. The descriptor to be encoded corresponds to at least one 3D map point in the 3D map. The at least one first center information is used to represent the center of at least one sub-feature of the descriptor to be encoded after clustering processing. The mapping module 1402 is also used to obtain at least one first reference center information of the reference descriptor corresponding to the descriptor to be encoded. The reference descriptor corresponds to at least one encoded 3D map point of the 3D map. At least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering processing. Based on the at least one first center information of the descriptor to be encoded and at least one first reference center information, at least one second center information of the descriptor to be encoded is obtained.

[0434] The compaction processing module 1401 is used to perform compaction processing on at least one second central information of the descriptor to be encoded to obtain a compact representation of the descriptor to be encoded.

[0435] The encapsulation module 1403 is used to encapsulate the compact representation to obtain a code stream of the 3D map.

[0436] In one possible design, the apparatus may further include: a transmission module 1404. The transmission module 1404 is used to receive 3D map request information sent by the electronic device, and in response to the 3D map request information, send a code stream of the 3D map corresponding to the 3D map request information to the electronic device, or the transmission module 1404 is used to send the code stream of the 3D map to the server.

[0437] In one possible design, the mapping module 1402 is specifically used to obtain at least one second center information of the descriptor to be encoded by looking up a first table according to at least one first center information and at least one first reference center information of the descriptor to be encoded.

[0438] In a possible design, the first table includes at least one encoding center information and at least one third center information corresponding to at least one second reference center information. The at least one encoding center information includes at least one first center information of the descriptor to be encoded, and the at least one second reference center information includes the at least one first reference center information. The mapping module 1402 is specifically used to: obtain at least one first center information and at least one third center information corresponding to at least one first reference center information from the first table according to at least one first center information and at least one first reference center information of the descriptor to be encoded. The at least one third center information is used as the at least one second center information of the descriptor to be encoded.

[0439] In a possible design, the first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoding center information or at least one second reference center information.

[0440] In a possible design, the mapping module 1402 is specifically used to obtain at least one second central information of the descriptor to be encoded by looking up a second table according to at least one first central information of the descriptor to be encoded. The second table is established based on the at least one first reference central information.

[0441] In one possible design, the second table includes the at least one first reference center information and at least one fourth center information corresponding to the at least one first center information of the descriptor to be encoded. The mapping module 1402 is specifically used to: obtain at least one fourth center information corresponding to the at least one first center information from the second table according to the at least one first center information of the descriptor to be encoded. The at least one fourth center information corresponding to the at least one first center information is used as the at least one second center information of the descriptor to be encoded.

[0442] In a possible design, the second table is at least a one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first center information.

[0443] In one possible design, the mapping module 1402 is specifically used to: use the exclusive OR value or difference of at least one first center information of the descriptor to be encoded and at least one first reference center information as at least one second center information of the descriptor to be encoded.

[0444] It should be noted that the 3D map compression device can execute Fig.18 The 3D map compression method of the illustrated embodiment. The specific implementation principle and technical effects can be referred to the specific explanation of the above method embodiment, which will not be repeated here.

[0445] See also Fig.15 , Fig.15 This is a schematic diagram of the structure of a 3D map decompression device provided in an embodiment of the present application. Fig.15 As shown, the 3D map decompression device 1500 may include: a decapsulation module 1501, an inverse mapping module 1502 and a reconstruction module 1503.

[0446] The decapsulation module 1501 is used to decapsulate the code stream of the 3D map to obtain a second compact representation of the descriptor to be decoded. The descriptor to be decoded corresponds to at least one 3D map point in the 3D map. The inverse mapping module 1502 is used to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The at least one reference descriptor corresponds to at least one decoded 3D map point of the 3D map. The inverse mapping module 1502 is also used to obtain a first compact representation of the descriptor to be decoded based on the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded. The reconstruction module 1503 is used to obtain reconstructed data of at least one 3D map point based on the first compact representation of the descriptor to be decoded.

[0447] In some embodiments, the above-mentioned apparatus may further include: a transmission module 1504, configured to send 3D map request information and receive a code stream of a 3D map corresponding to the 3D map request information.

[0448] In some embodiments, the demapping module 1502 is used to obtain the first compact representation of the descriptor to be decoded by looking up the first table according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0449] In some embodiments, the demapping module 1502 is used to obtain a first compact representation of the descriptor to be decoded by looking up a second table according to the second compact representation of the descriptor to be decoded. The second table is established based on the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

[0450] In some embodiments, the inverse mapping module 1502 is used to: use an exclusive OR value or a sum value of a compact representation of at least one reference descriptor and a second compact representation of the descriptor to be decoded as a first compact representation of the descriptor to be decoded.

[0451] It should be noted that the 3D map decompression device 1500 can execute Figure 7 or Fig. 9 or Fig.11 or Fig.13 The 3D map decompression method of the illustrated embodiment. The specific implementation principle and technical effects can be referred to the specific explanation of the above method embodiment, which will not be repeated here.

[0452] The present application embodiment also provides another 3D map decompression device, which can be used in the same manner as Fig.15 Same structure.

[0453] The decapsulation module 1501 is used to decapsulate the code stream of the 3D map to obtain at least one second center information of a descriptor to be decoded. The descriptor to be decoded corresponds to at least one 3D map point in the 3D map.

[0454] The demapping module 1502 is used to obtain at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded. The reference descriptor corresponds to at least one decoded 3D map point of the 3D map. The at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering. According to the at least one second center information of the descriptor to be decoded and the at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded, the at least one first center information of the descriptor to be decoded is obtained.

[0455] The reconstruction module 1503 is used to obtain the reconstructed data of the at least one 3D map point according to the at least one first center information of the descriptor to be decoded.

[0456] In a possible design, the above-mentioned device may also include: a transmission module 1504, which is used to send 3D map request information and receive a code stream of a 3D map corresponding to the 3D map request information. Or, it is used to receive a code stream of a 3D map sent by an electronic device.

[0457] In one possible design, the demapping module 1502 is specifically used to obtain at least one first center information of the descriptor to be decoded by looking up a first table based on at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded.

[0458] In one possible design, the demapping module 1502 is specifically configured to obtain at least one first center information of the descriptor to be decoded by looking up a second table according to at least one second center information of the descriptor to be decoded. The second table is established based on at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded.

[0459] In one possible design, the demapping module 1502 is specifically used to: use the exclusive OR value or the sum value of at least one second center information of the descriptor to be decoded and at least one first reference center information of the reference descriptor corresponding to the descriptor to be decoded as the at least one first center information of the descriptor to be decoded.

[0460] It should be noted that the 3D map decompression device can execute Fig.19 The 3D map decompression method of the illustrated embodiment. The specific implementation principle and technical effects can be referred to the specific explanation of the above method embodiment, which will not be repeated here.

[0461] Fig.16 1 is a schematic block diagram of an implementation of a decoding device 1600 for an embodiment of the present application. The acquisition device 1600 may include a processor 1601, a memory 1602, and a bus system 1603. The processor 1601 and the memory 1602 are connected via the bus system 1603, the memory 1602 is used to store instructions, and the processor 1601 is used to execute the instructions stored in the memory 1302 to execute various 3D map compression or decompression methods described in the present application. To avoid repetition, it will not be described in detail here.

[0462] In the embodiment of the present application, the processor 1601 may be a central processing unit (CPU), or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0463] The memory 1602 may include a ROM device or a RAM device. Any other suitable type of storage device may also be used as the memory 1602. The memory 1602 may include code and data 16021 accessed by the processor 1601 using the bus 1603. The memory 1602 may further include an operating system 16023 and an application 16022, the application 16022 including at least one program that allows the processor 1601 to execute the compression or decompression method of the 3D map described in the present application. For example, the application 16022 may include applications 1 to N, which further include a 3D map compression or decompression application (referred to as a 3D map decoding application) that executes the compression or decompression method of the 3D map described in the present application.

[0464] The bus system 1603 may include, in addition to the data bus, a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as the bus system 1603 in the figure.

[0465] Optionally, the decoding device 1600 may further include one or more output devices, such as a display 1604. In one example, the display 1604 may be a touch-sensitive display that combines a display with a touch-sensitive unit operable to sense touch input. The display 1604 may be connected to the processor 1601 via a bus 1603.

[0466] It should be noted that the decoding device 1600 can execute the 3D map compression method in the present application, and can also execute the 3D map decompression method in the present application.

[0467] The processor mentioned in the above embodiments can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware coding processor to be executed, or the hardware and software modules in the coding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0468] The memory mentioned in the above embodiments may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0469] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0470] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0471] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0472] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0473] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0474] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0475] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A 3D map compression method, characterized in that: The method comprises: Performing compaction processing on the descriptor to be encoded to obtain a first compact representation of the descriptor to be encoded; the descriptor to be encoded corresponds to at least one 3D map point in the 3D map; Obtaining a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded; the at least one reference descriptor corresponds to at least one encoded 3D map point of the 3D map; Obtaining a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor; The second compact representation is encapsulated to obtain a code stream of the 3D map.

2. The method according to claim 1, characterized in that The method further comprises: receiving 3D map request information sent by an electronic device, and in response to the 3D map request information, sending a code stream of the 3D map corresponding to the 3D map request information to the electronic device; or, The code stream of the 3D map is sent to the server.

3. The method according to claim 1 or 2, characterized in that: A data distribution of the first compacted representation is different from a data distribution of the second compacted representation.

4. The method according to claim 3, characterized in that The first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded, and the second compact representation of the descriptor to be encoded includes at least one second compact representation substring of the descriptor to be encoded; the at least one first compact representation substring is different from the at least one second compact representation substring.

5. The method according to claim 4, characterized in that Part or all of the at least one second compact representation substring is smaller than or equal to the corresponding first compact representation substring; or part or all of the at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

6. The method according to any one of claims 1 to 2, 4 to 5, characterized in that: The step of obtaining a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor comprises: According to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor, a second compact representation of the descriptor to be encoded is obtained by looking up a first table.

7. The method according to claim 6, characterized in that The first table includes at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring; The at least one encoded compact representation substring includes at least one first compact representation substring of the to-be-encoded descriptor, and the at least one second reference compact representation substring includes at least one first reference compact representation substring of the at least one reference descriptor; The obtaining, according to the first compact representation of the descriptor to be encoded and the compact representation of the reference descriptor, a second compact representation of the descriptor to be encoded by looking up a first table, comprises: According to the at least one first compact representation substring of the to-be-encoded descriptor and the at least one first reference compact representation substring of the reference descriptor corresponding to the to-be-encoded descriptor, acquiring from the first table at least one third compact representation substring corresponding to the at least one first compact representation substring and the at least one first reference compact representation substring; A second compact representation of the descriptor to be encoded is obtained according to the at least one first compact representation substring and the at least one third compact representation substring corresponding to the at least one first reference compact representation substring.

8. The method according to claim 7, characterized in that The first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoded compact representation substring or at least one second reference compact representation substring.

9. The method according to any one of claims 1 to 2, 4 to 5, characterized in that: The step of obtaining a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor comprises: According to the first compact representation of the descriptor to be encoded, a second compact representation of the descriptor to be encoded is obtained by looking up a second table; the second table is established based on the compact representation of the at least one reference descriptor.

10. The method according to claim 9, characterized in that The compact representation of the at least one reference descriptor includes at least one first reference compact representation substring; the second table includes at least one fourth compact representation substring corresponding to the at least one first reference compact representation substring and the at least one first compact representation substring of the descriptor to be encoded; The obtaining, according to the first compact representation of the descriptor to be encoded, by looking up a second table, a second compact representation of the descriptor to be encoded comprises: According to the at least one first compact representation substring of the descriptor to be encoded, obtaining from the second table at least one fourth compact representation substring corresponding to the at least one first compact representation substring; the second table is established based on the at least one first reference compact representation substring; A second compact representation of the to-be-encoded descriptor is obtained according to at least one fourth compact representation substring corresponding to the at least one first compact representation substring.

11. The method according to claim 10, characterized in that The second table is at least one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first compact representation substring.

12. The method according to any one of claims 1 to 2, 4 to 5, characterized in that: The step of obtaining a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor comprises: The XOR value or the difference value of the compact representation of the at least one reference descriptor and the first compact representation of the descriptor to be encoded is used as the second compact representation of the descriptor to be encoded.

13. The method according to any one of claims 1 to 2, 4 to 5, 7 to 8, 10 to 11, characterized in that: The to-be-encoded descriptor includes a region descriptor or a 3D map point descriptor.

14. The method according to any one of claims 1 to 2, 4 to 5, 7 to 8, 10 to 11, characterized in that: The at least one reference descriptor corresponding to the to-be-encoded descriptor comprises: at least one compressed descriptor preceding the descriptor to be encoded; or at least one preset descriptor; or, At least one descriptor determined by a neural network model or clustering.

15. The method according to any one of claims 1 to 2, 4 to 5, 7 to 8, 10 to 11, characterized in that: The compaction processing includes quantization processing or binarization processing, and the quantization processing or binarization processing is used to reduce the number of bits of the descriptor to be encoded.

16. A 3D map decompression method, characterized in that: The method comprises: Decapsulating the code stream of the 3D map to obtain a second compact representation of a descriptor to be decoded; the descriptor to be decoded corresponds to at least one 3D map point in the 3D map; Obtaining a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded; the at least one reference descriptor corresponds to at least one decoded 3D map point of the 3D map; Obtaining a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded; According to the first compact representation of the descriptor to be decoded, reconstructed data of the at least one 3D map point is obtained.

17. The method according to claim 16, characterized in that The method further comprises: Send 3D map request information, and receive a code stream of the 3D map corresponding to the 3D map request information.

18. The method according to claim 16 or 17, characterized in that A data distribution of the first compacted representation is different from a data distribution of the second compacted representation.

19. The method according to claim 18, characterized in that The first compact representation of the descriptor to be decoded includes at least one first compact representation substring of the descriptor to be decoded, and the second compact representation of the descriptor to be decoded includes at least one second compact representation substring of the descriptor to be decoded; the at least one first compact representation substring is different from the at least one second compact representation substring.

20. The method according to claim 19, characterized in that Part or all of the at least one second compact representation substring is smaller than or equal to the corresponding first compact representation substring; or part or all of the at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

21. The method according to any one of claims 16 to 17, 19 to 20, characterized in that: The step of obtaining a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded comprises: According to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded, a first compact representation of the descriptor to be decoded is obtained by looking up a first table.

22. The method according to any one of claims 16 to 17, 19 to 20, characterized in that: The step of obtaining a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded comprises: According to the second compact representation of the descriptor to be decoded, a first compact representation of the descriptor to be decoded is obtained by looking up a second table; the second table is established based on the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

23. The method according to any one of claims 16 to 17, 19 to 20, characterized in that: The step of obtaining a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded comprises: An exclusive OR value or a sum value of the compact representation of the at least one reference descriptor and the second compact representation of the descriptor to be decoded is used as a first compact representation of the descriptor to be decoded.

24. A 3D map compression device, characterized in that: The device comprises: A compaction processing module, configured to perform compaction processing on a descriptor to be encoded to obtain a first compacted representation of the descriptor to be encoded; the descriptor to be encoded corresponds to at least one 3D map point in the 3D map; A mapping module, configured to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be encoded; the at least one reference descriptor corresponds to at least one encoded 3D map point of the 3D map; The mapping module is further used to obtain a second compact representation of the descriptor to be encoded according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor; The encapsulation module is used to encapsulate the second compact representation to obtain a code stream of the 3D map.

25. The device according to claim 24, characterized in that The device further comprises: a transmission module; The transmission module is configured to receive 3D map request information sent by an electronic device, and in response to the 3D map request information, send a code stream of the 3D map corresponding to the 3D map request information to the electronic device; or The transmission module is used to send the code stream of the 3D map to the server.

26. The device according to claim 24 or 25, characterized in that A data distribution of the first compacted representation is different from a data distribution of the second compacted representation.

27. The device according to claim 26, characterized in that The first compact representation of the descriptor to be encoded includes at least one first compact representation substring of the descriptor to be encoded, and the second compact representation of the descriptor to be encoded includes at least one second compact representation substring of the descriptor to be encoded; the at least one first compact representation substring is different from the at least one second compact representation substring.

28. The device according to claim 27, characterized in that Part or all of the at least one second compact representation substring is smaller than or equal to the corresponding first compact representation substring; or part or all of the at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

29. The device according to any one of claims 24 to 25, 27 to 28, characterized in that The mapping module is used to obtain a second compact representation of the descriptor to be encoded by looking up a first table according to the first compact representation of the descriptor to be encoded and the compact representation of the at least one reference descriptor.

30. The device according to claim 29, characterized in that The first table includes at least one encoded compact representation substring and at least one third compact representation substring corresponding to at least one second reference compact representation substring; The at least one encoded compact representation substring includes at least one first compact representation substring of the to-be-encoded descriptor, and the at least one second reference compact representation substring includes at least one first reference compact representation substring of the at least one reference descriptor; The mapping module is used to: obtain from the first table, based on at least one first compact representation substring of the descriptor to be encoded and at least one first reference compact representation substring of the reference descriptor corresponding to the descriptor to be encoded, the at least one first compact representation substring and at least one third compact representation substring corresponding to the at least one first reference compact representation substring; and obtain a second compact representation of the descriptor to be encoded based on the at least one first compact representation substring and at least one third compact representation substring corresponding to the at least one first reference compact representation substring.

31. The device according to claim 30, characterized in that The first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoded compact representation substring or at least one second reference compact representation substring.

32. The device according to any one of claims 24 to 25, 27 to 28, characterized in that The mapping module is used to obtain a second compact representation of the descriptor to be encoded by looking up a second table according to the first compact representation of the descriptor to be encoded; the second table is established based on the compact representation of the at least one reference descriptor.

33. The device according to claim 32, characterized in that The compact representation of the at least one reference descriptor includes at least one first reference compact representation substring; the second table includes at least one fourth compact representation substring corresponding to the at least one first reference compact representation substring and the at least one first compact representation substring of the descriptor to be encoded; The mapping module is used to: obtain at least one fourth compact representation substring corresponding to the at least one first compact representation substring of the descriptor to be encoded from the second table according to the at least one first compact representation substring of the descriptor to be encoded; the second table is established based on the at least one first reference compact representation substring; and obtain the second compact representation of the descriptor to be encoded according to the at least one fourth compact representation substring corresponding to the at least one first compact representation substring.

34. The device according to claim 33, characterized in that The second table is at least one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first compact representation substring.

35. The device according to any one of claims 24 to 25, 27 to 28, characterized in that The mapping module is used to: use the XOR value or the difference value of the compact representation of the at least one reference descriptor and the first compact representation of the descriptor to be encoded as the second compact representation of the descriptor to be encoded.

36. The device according to any one of claims 24 to 25, 27 to 28, 30 to 31, 33 to 34, characterized in that The to-be-encoded descriptor includes a region descriptor or a 3D map point descriptor.

37. The device according to any one of claims 24 to 25, 27 to 28, 30 to 31, 33 to 34, characterized in that The at least one reference descriptor corresponding to the to-be-encoded descriptor comprises: at least one compressed descriptor preceding the descriptor to be encoded; or at least one preset descriptor; or, At least one descriptor determined by a neural network model or clustering.

38. The device according to any one of claims 24 to 25, 27 to 28, 30 to 31, 33 to 34, characterized in that The compaction processing includes quantization processing or binarization processing, and the quantization processing or binarization processing is used to reduce the number of bits of the descriptor to be encoded.

39. A 3D map decompression device, characterized in that: The device comprises: A decapsulation module, configured to decapsulate a code stream of the 3D map to obtain a second compact representation of a descriptor to be decoded; the descriptor to be decoded corresponds to at least one 3D map point in the 3D map; A demapping module, configured to obtain a compact representation of at least one reference descriptor corresponding to the descriptor to be decoded; the at least one reference descriptor corresponds to at least one decoded 3D map point of the 3D map; The inverse mapping module is further used to obtain a first compact representation of the descriptor to be decoded according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded; The reconstruction module is used to obtain the reconstructed data of the at least one 3D map point according to the first compact representation of the descriptor to be decoded.

40. The device according to claim 39, characterized in that The device also includes: The transmission module is used to send 3D map request information and receive a code stream of the 3D map corresponding to the 3D map request information.

41. The device according to claim 39 or 40, characterized in that A data distribution of the first compacted representation is different from a data distribution of the second compacted representation.

42. The device according to claim 41, characterized in that The first compact representation of the descriptor to be decoded includes at least one first compact representation substring of the descriptor to be decoded, and the second compact representation of the descriptor to be decoded includes at least one second compact representation substring of the descriptor to be decoded; the at least one first compact representation substring is different from the at least one second compact representation substring.

43. The device according to claim 42, characterized in that Part or all of the at least one second compact representation substring is smaller than or equal to the corresponding first compact representation substring; or part or all of the at least one second compact representation substring is greater than or equal to the corresponding first compact representation substring.

44. The device according to any one of claims 39 to 40, 42 to 43, characterized in that The inverse mapping module is used to obtain the first compact representation of the descriptor to be decoded by looking up the first table according to the second compact representation of the descriptor to be decoded and the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

45. The device according to any one of claims 39 to 40, 42 to 43, characterized in that The inverse mapping module is used to: obtain the first compact representation of the descriptor to be decoded by looking up a second table according to the second compact representation of the descriptor to be decoded; the second table is established based on the compact representation of at least one reference descriptor corresponding to the descriptor to be decoded.

46. ​​The device according to any one of claims 39 to 40, 42 to 43, characterized in that The inverse mapping module is used to: use the exclusive OR value or the sum value of the compact representation of the at least one reference descriptor and the second compact representation of the descriptor to be decoded as the first compact representation of the descriptor to be decoded.

47. A 3D map compression method, characterized in that: The method comprises: Performing clustering processing on the descriptor to be encoded to obtain at least one first center information of the descriptor to be encoded; the descriptor to be encoded corresponds to at least one 3D map point in the 3D map; the at least one first center information is used to represent the center of at least one sub-feature of the descriptor to be encoded after the clustering processing; Acquire at least one first reference center information of a reference descriptor corresponding to the descriptor to be encoded; the reference descriptor corresponds to at least one encoded 3D map point of the 3D map; the at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering; Obtaining at least one second center information of the descriptor to be encoded according to the at least one first center information and the at least one first reference center information; Performing compaction processing on at least one second center information of the descriptor to be encoded to obtain a compact representation of the descriptor to be encoded; The compact representation is encapsulated to obtain a code stream of the 3D map.

48. The method according to claim 47, characterized in that The obtaining, according to the at least one first center information and the at least one first reference center information, at least one second center information of the descriptor to be encoded comprises: According to the at least one first center information and the at least one first reference center information, at least one second center information of the descriptor to be encoded is obtained by looking up a first table.

49. The method according to claim 48, characterized in that The first table includes at least one encoding center information and at least one third center information corresponding to at least one second reference center information; The at least one encoding center information includes the at least one first center information, and the at least one second reference center information includes the at least one first reference center information; The obtaining, according to the at least one first center information and the at least one first reference center information, at least one second center information of the descriptor to be encoded by looking up a first table, comprises: According to the at least one first center information and the at least one first reference center information, acquiring from the first table at least one third center information corresponding to the at least one first center information and the at least one first reference center information; The at least one third central information is used as the at least one second central information of the descriptor to be encoded.

50. The method according to claim 49, characterized in that The first table is a multidimensional array, and each element in the multidimensional array corresponds to at least one encoding center information or at least one second reference center information.

51. The method according to claim 47, characterized in that The obtaining, according to the at least one first center information and the at least one first reference center information, at least one second center information of the descriptor to be encoded comprises: According to the at least one first central information, at least one second central information of the descriptor to be encoded is obtained by looking up a second table; the second table is established based on the at least one first reference central information.

52. The method according to claim 51, characterized in that The second table includes the at least one first reference center information and at least one fourth center information corresponding to the at least one first center information; The obtaining, according to the at least one first central information, at least one second central information of the descriptor to be encoded by looking up a second table, comprises: According to the at least one first center information, acquiring from the second table at least one fourth center information corresponding to the at least one first center information; The at least one fourth central information corresponding to the at least one first central information is used as the at least one second central information of the descriptor to be encoded.

53. The method according to claim 52, characterized in that The second table is at least one-dimensional array, and each element in the at least one-dimensional array corresponds to at least one first center information.

54. The method according to claim 47, characterized in that The obtaining, according to the at least one first center information and the at least one first reference center information, at least one second center information of the descriptor to be encoded comprises: The exclusive OR value or difference value of the at least one first center information and the at least one first reference center information is used as the at least one second center information of the descriptor to be encoded.

55. A 3D map decompression method, characterized in that: The method comprises: Decapsulating the code stream of the 3D map to obtain at least one second center information of a descriptor to be decoded; the descriptor to be decoded corresponds to at least one 3D map point in the 3D map; Acquire at least one first reference center information of a reference descriptor corresponding to the descriptor to be decoded; the reference descriptor corresponds to at least one decoded 3D map point of the 3D map; the at least one first reference center information is used to represent the center of at least one sub-feature of the reference descriptor after clustering; Obtaining at least one first center information of the descriptor to be decoded according to the at least one second center information and the at least one first reference center information; According to at least one first center information of the descriptor to be decoded, reconstructed data of the at least one 3D map point is obtained.

56. A 3D map compression device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 15 or the method according to any one of claims 47 to 54.

57. A 3D map decompression device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 16 to 23 or the method according to claim 55.

58. A computer-readable storage medium, characterized in that: The method comprises a computer program which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 23 or the method according to any one of claims 47 to 55.

Citation Information

Patent Citations

  • Method for obtaining compact global characteristic descriptors of images and image searching method

    CN102968632A

  • Local descriptor extracting method, image searching method and image matching method

    CN103218427A

  • Method for constructing compact image local feature descriptor

    CN103955690A

  • Analysis method of image code, device, generation method of image code and device

    CN105868814A

  • Method for decoding an image, encoding method, devices, terminal equipment and associated computer programs

    US20200137393A1

Cited By

  • 3D map compression method and apparatus, and 3D map decompression method and apparatus

    WO2022253228A1