Point cloud data encoding and decoding method and device, computer equipment and readable storage medium

By obtaining the predicted coding state of the child node to be coded in the point cloud data and determining the context probability model, the problem of blurred coding state boundaries is solved and the accuracy and efficiency of point cloud data coding are improved.

CN118678084AActive Publication Date: 2024-09-20PENG CHENG LAB

Patent Information

Application Number
CN202410958898.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-20
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

In geometry-based point cloud compression coding technology, the blurred boundaries of different coding states cause the encoder to be unable to accurately distinguish, reducing the coding accuracy.

Method used

By obtaining the predicted encoding status of the child node to be encoded in the point cloud data, its corresponding context probability model is determined, and the placeholder information is encoded based on the model to clarify the boundaries of different information and improve the accuracy of encoding.

Benefits of technology

It effectively distinguishes subtle differences in encoding status between adjacent frames, improves the encoding accuracy of sub-nodes to be encoded in point cloud data, and reduces the amount of data while maintaining the quality and accuracy of the original data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678084A
    Figure CN118678084A
Patent Text Reader

Abstract

The embodiment of the invention provides a point cloud data encoding and decoding method and device, computer equipment and a readable storage medium. The coding method comprises the following steps: acquiring a to-be-coded sub-node in point cloud data; obtaining a predicted coding state of the to-be-coded sub-node; wherein the predictive coding state comprises an inter-frame coding state and an intra-frame coding state; determining a first context probability model corresponding to the to-be-coded sub-node based on the predictive coding state; and coding the placeholder information of the to-be-coded sub-node through the first context probability model to obtain target coded data of the placeholder information. Therefore, the corresponding first context probability model can be accurately determined by effectively utilizing the predictive coding state, and the coding accuracy of the to-be-coded sub-node of the point cloud data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of point cloud compression coding, and in particular to a point cloud data encoding and decoding method, device, computer equipment and readable storage medium. Background Art

[0002] Point cloud compression coding technology is a technology used to efficiently store and transmit point cloud data. Point clouds are composed of a large number of points in space, which represent the shape of the external environment or objects in a three-dimensional coordinate system. Since point cloud data is usually very large, direct storage and transmission will be very time-consuming and inefficient, so compression coding technology is needed to reduce its data volume while maintaining the quality and accuracy of the original data as much as possible.

[0003] In the related art, in the geometry-based point cloud compression coding (G-PCC) encoder framework, the octree-based geometry codec is commonly used. In the octree coding framework, when encoding the sub-nodes to be encoded, different encoding states usually share the same encoder group. However, in some cases, different types of encoding states may overlap. If the same encoder group is used for different encoding states, the boundaries of the states may be blurred, which in turn causes the encoder to be unable to accurately distinguish the encoding states, resulting in reduced encoding accuracy. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a point cloud data encoding and decoding method, device, computer equipment and readable storage medium, which can improve the accuracy of encoding the sub-nodes to be encoded of the point cloud data.

[0005] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a point cloud data encoding method, the method comprising:

[0006] Get the sub-nodes to be encoded in the point cloud data;

[0007] Acquire the predicted coding state of the to-be-coded subnode; wherein the predicted coding state includes an inter-frame coding state and an intra-frame coding state;

[0008] Based on the predicted coding state, determining a first context probability model corresponding to the sub-node to be encoded;

[0009] The placeholder information of the to-be-encoded child node is encoded using the first context probability model to obtain target encoding data of the placeholder information.

[0010] Accordingly, a second aspect of an embodiment of the present application provides a point cloud data encoding device, the device comprising:

[0011] A first acquisition module is used to acquire the sub-nodes to be encoded in the point cloud data;

[0012] A second acquisition module, used to acquire the predicted coding state of the to-be-coded sub-node; wherein the predicted coding state includes an inter-frame coding state and an intra-frame coding state;

[0013] A first determination module, used to determine a first context probability model corresponding to the to-be-encoded subnode based on the predicted encoding state;

[0014] An encoding module is used to encode the placeholder information of the to-be-encoded sub-node by using the first context probability model to obtain target encoding data of the placeholder information.

[0015] In some implementations, the first determining module is further configured to:

[0016] Acquire local sparse information of the to-be-encoded subnode; determine a corresponding first context probability model from a first context probability model group based on the predicted coding state and the local sparse information;

[0017] Or, according to the predicted coding state, predict the predicted placeholder information of the subnode to be encoded; based on the predicted coding state and the predicted placeholder information, determine the corresponding first context probability model from the first context probability model group:

[0018] Or, obtain local sparse information of the sub-node to be encoded; predict the predicted placeholder information of the sub-node to be encoded according to the predicted coding state; determine the corresponding first context probability model from the first context probability model group based on the predicted coding state, the local sparse information and at least two parameters in the predicted placeholder information.

[0019] In some embodiments, the point cloud data encoding device further includes a first mapping module, which is used to:

[0020] Determine at least one of the predicted coding state and the local sparse information as first classification information, and use other information other than the first classification information in the predicted coding state and the local sparse information as second classification information; or, determine at least one of the predicted coding state and the predicted placeholder information as first classification information, and use other information other than the first classification information in the predicted coding state and the predicted placeholder information as second classification information; or, determine at least one of the predicted coding state, the local sparse information, and the predicted placeholder information as first classification information, and use other information other than the first classification information in the predicted coding state, the local sparse information, and the predicted placeholder information as second classification information;

[0021] Determine, according to the first classification information, a context state tree category of the context state tree corresponding to the sub-node to be encoded;

[0022] The context state tree category and the second classification information are mapped in the first context probability model group to determine a corresponding first context probability model.

[0023] In some implementations, the first determining module is further configured to:

[0024] Determine, in coding order, a plurality of encoded adjacent nodes that are located in front of the subnode to be encoded;

[0025] Determine the number of occupancy of the plurality of encoded adjacent nodes based on the first occupancy information of the plurality of encoded adjacent nodes;

[0026] The occupied number is compared with a preset occupied number threshold to determine the local sparse information of the sub-node to be encoded.

[0027] In some implementations, the first determining module is further configured to:

[0028] Acquire the frame to be encoded where the sub-node to be encoded is located, and determine at least one reference frame from the encoded adjacent frames according to the encoding order;

[0029] Determine, from the reference frame, a reference subnode having the same subnode spatial position and the same subnode size as the subnode to be encoded;

[0030] Reference placeholder information of the reference subnode is obtained as second placeholder information, and the second placeholder information is used as predicted placeholder information of the subnode to be encoded.

[0031] Accordingly, a third aspect of an embodiment of the present application proposes a point cloud data decoding method, the method comprising:

[0032] Obtain target decoding data of the subnode to be decoded in the point cloud data;

[0033] Acquire the predicted decoding state of the to-be-decoded subnode; wherein the predicted decoding state includes an inter-frame decoding state and an intra-frame decoding state;

[0034] Based on the predicted decoding state, determining a second context probability model corresponding to the subnode to be decoded;

[0035] The target decoding data of the sub-node to be decoded is decoded by using the second context probability model to obtain the placeholder information of the sub-node to be decoded.

[0036] Accordingly, a fourth aspect of an embodiment of the present application provides a point cloud data decoding device, the device comprising:

[0037] The third acquisition module is used to acquire target decoding data of the sub-node to be decoded in the point cloud data;

[0038] A fourth acquisition module, used to acquire the predicted decoding state of the to-be-decoded subnode; wherein the predicted decoding state includes an inter-frame decoding state and an intra-frame decoding state;

[0039] A second determination module, used to determine a second context probability model corresponding to the sub-node to be decoded based on the predicted decoding state;

[0040] A decoding module is used to decode the target decoding data of the sub-node to be decoded through the second context probability model to obtain the placeholder information of the sub-node to be decoded.

[0041] In some implementations, the second determining module is further configured to:

[0042] Acquire the local sparse information of the subnode to be decoded; determine the corresponding second context probability model from the second context probability model group based on the predicted decoding state and the local sparse information;

[0043] Or, according to the predicted decoding state, predict the predicted placeholder information of the subnode to be decoded; based on the predicted decoding state and the predicted placeholder information, determine the corresponding second context probability model from the second context probability model group:

[0044] Or, obtain local sparse information of the sub-node to be decoded; predict the predicted placeholder information of the sub-node to be decoded according to the predicted decoding state; determine the corresponding second context probability model from the second context probability model group based on the predicted decoding state, the local sparse information and at least two parameters in the predicted placeholder information.

[0045] In some embodiments, the point cloud data decoding device further includes a second mapping module, which is used to:

[0046] Determine at least one of the predicted decoding state and the local sparse information as first classification information, and use other information in the predicted decoding state and the local sparse information other than the first classification information as second classification information; or, determine at least one of the predicted decoding state and the predicted placeholder information as first classification information, and use other information in the predicted decoding state and the predicted placeholder information other than the first classification information as second classification information; or, determine at least one of the predicted decoding state, the local sparse information, and the predicted placeholder information as first classification information, and use other information in the predicted decoding state, the local sparse information, and the predicted placeholder information other than the first classification information as second classification information;

[0047] Determine, according to the first classification information, a context state tree category of the context state tree corresponding to the sub-node to be decoded;

[0048] The context state tree category and the second classification information are mapped in the second context probability model group to determine a corresponding second context probability model.

[0049] In some implementations, the second determining module is further configured to:

[0050] Determine, in decoding order, a plurality of decoded adjacent nodes that are located in front of the child node to be decoded;

[0051] Determine the number of occupancy places of the plurality of decoded adjacent nodes based on the first occupancy place information of the plurality of decoded adjacent nodes;

[0052] The occupied number is compared with a preset occupied number threshold to determine the local sparse information of the sub-node to be decoded.

[0053] In some implementations, the second determining module is further configured to:

[0054] Acquire the frame to be decoded where the subnode to be decoded is located, and determine at least one reference frame from decoded adjacent frames in a decoding order;

[0055] Determine, from the reference frame, a reference subnode having the same subnode spatial position and the same subnode size as the subnode to be decoded;

[0056] Reference placeholder information of the reference subnode is acquired as second placeholder information, and the second placeholder information is used as predicted placeholder information of the subnode to be decoded.

[0057] Correspondingly, the fifth aspect of the embodiments of the present application proposes a computer device, which includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the point cloud data encoding method described in any one of the embodiments of the first aspect of the present application, or the point cloud data decoding method described in any one of the embodiments of the second aspect of the present application.

[0058] Correspondingly, the sixth aspect of the embodiments of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the point cloud data encoding method described in any one of the embodiments of the first aspect of the present application, or the point cloud data decoding method described in any one of the embodiments of the second aspect of the present application.

[0059] The embodiment of the present application obtains the sub-node to be encoded in the point cloud data; obtains the predicted coding state of the sub-node to be encoded; wherein the predicted coding state includes the inter-frame coding state and the intra-frame coding state; based on the predicted coding state, determines the first context probability model corresponding to the sub-node to be encoded; and encodes the placeholder information of the sub-node to be encoded through the first context probability model to obtain the target coding data of the placeholder information. In this way, the corresponding first context probability model can be determined according to different predicted coding states to clarify the division boundary of the first context probability model corresponding to different information, so that the context probability model can effectively distinguish and encode the subtle differences in the coding states between adjacent frames, thereby improving the accuracy of encoding the sub-node to be encoded in the point cloud data. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of the architecture of the point cloud data encoding and decoding system provided in an embodiment of the present application;

[0061] Figure 2 is a coding flow chart of the point cloud data coding method provided in an embodiment of the present application;

[0062] Figure 3 is a decoding flow chart of the point cloud data decoding method provided in an embodiment of the present application;

[0063] Figure 4 It is an overall flow chart of the encoding of the point cloud data encoding method provided in the embodiment of the present application;

[0064] Figure 5 is an overall flow chart of decoding of the point cloud data decoding method provided in an embodiment of the present application;

[0065] Figure 6 It is a schematic diagram of the functional modules of the point cloud data encoding device provided in an embodiment of the present application;

[0066] Figure 7It is a schematic diagram of the functional modules of the point cloud data decoding device provided in an embodiment of the present application;

[0067] Figure 8 It is a schematic diagram of the hardware structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0069] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0071] Point cloud compression coding technology is a technology used to efficiently store and transmit point cloud data. Point clouds are composed of a large number of points in space, which represent the shape of the external environment or objects in a three-dimensional coordinate system. Since point cloud data is usually very large, direct storage and transmission will be very time-consuming and inefficient, so compression coding technology is needed to reduce its data volume while maintaining the quality and accuracy of the original data as much as possible.

[0072] In the related art, in the geometry-based point cloud compression coding (G-PCC) encoder framework, the octree-based geometry codec is more commonly used. In the octree coding framework, when encoding the sub-nodes to be encoded, different encoding states usually share the same encoder group. However, in some cases, different types of encoding states may overlap. If the same encoder group is used for different encoding states at this time, the boundaries of the states may be blurred, which in turn causes the encoder to be unable to accurately distinguish the encoding states, resulting in reduced encoding accuracy.

[0073] Based on this, the embodiments of the present application provide a point cloud data encoding and decoding method, apparatus, computer equipment and readable storage medium, which can improve the accuracy of encoding the sub-nodes to be encoded of the point cloud data.

[0074] The point cloud data encoding and decoding method, apparatus, computer equipment and readable storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the point cloud data encoding and decoding system in the embodiments of the present application is described.

[0075] Please refer to Figure 1 In some implementations, the point cloud data encoding and decoding system includes a terminal 11 and a server 12 .

[0076] Exemplarily, the terminal 11 can be a computing device, such as a smart phone, a tablet computer, a personal computer or a dedicated device. Any device used to capture and process point cloud data can be used as the terminal 11. Exemplarily, in the indoor underground emergency scene three-dimensional modeling method based on mobile phone crowdsourcing imaging terminal, data generation and processing are completed on the terminal 11, and then the results are sent to the server 12 for display and measurement application. In some embodiments, the terminal 11 can encode the sub-nodes to be encoded in the point cloud data to obtain target encoded data.

[0077] Exemplarily, the server end 12 may be a high-performance computing server or a cloud computing platform, which is responsible for tasks such as data storage, decoding, analysis, and application deployment. The server end 12 may process and store point cloud data. For example, encoding of large-scale point cloud data is also completed on the server end 12. In some embodiments, the server end 12 may receive target coded data transmitted from the terminal 11, and decode the target coded data to obtain node placeholder information corresponding to the target coded data.

[0078] The point cloud data encoding method in the embodiment of the present application can be illustrated by the following embodiment.

[0079] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first. Moreover, the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or separate consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or separate consent, the necessary user-related data for enabling the normal operation of the embodiment of the present application will be obtained.

[0080] In the embodiment of the present application, the point cloud data encoding device will be described from the perspective of the point cloud data encoding device, which can be integrated into a computer device. Figure 2 , Figure 2This is a flowchart of the step of the point cloud data encoding method provided in the embodiment of the present application. In the embodiment of the present application, the point cloud data encoding device is specifically integrated on a terminal or a server as an example. When the processor on the terminal or the server executes the program instructions corresponding to the point cloud data encoding method, the specific process is as follows:

[0081] Step 101: Obtain the sub-nodes to be encoded in the point cloud data.

[0082] In some implementations, since point cloud data is often very large, direct transmission may result in high storage space requirements, long transmission time, and low processing efficiency. Therefore, in order to facilitate transmission, the sub-nodes to be encoded in the point cloud data can be obtained, and the placeholder information of the sub-nodes to be encoded can be encoded to effectively reduce the storage space of the point cloud data and improve the transmission efficiency of the point cloud data.

[0083] Point cloud data can be a collection of multiple points in three-dimensional space. Each point cloud data contains coordinate information (such as x, y, z) and possible other attribute information. The specific coordinate information and attribute information can be collected by equipment such as laser radar and used in various application fields, such as indoor scene analysis, terrain mapping, architectural planning, industrial production and autonomous driving. Point cloud data is processed and compressed during the encoding process to reduce the demand for storage space or transmission bandwidth.

[0084] The sub-node to be encoded may be a node that needs to be encoded in the point cloud data.

[0085] Exemplarily, a quadtree or binary tree partitioning method can be used to obtain several sub-nodes to be encoded. Taking octree partitioning as an example, before performing octree partitioning on the point cloud data, it is necessary to first perform coordinate transformation on the geometric information of the point cloud data so that all the point cloud data are contained in a bounding box. Then quantization is performed. This step of quantization mainly plays a role in scaling. Due to quantization rounding, the geometric information of some points is the same. Whether to remove duplicate points is determined based on parameters. The process of quantization and removal of duplicate points is also called voxelization. Thus, multiple sub-nodes to be encoded can be obtained. The specific process of coordinate transformation and voxelization will not be described in detail here.

[0086] In some implementations, the sub-node to be encoded may also be obtained based on other methods, which are not specifically limited here.

[0087] Through the above method, the sub-node to be encoded in the point cloud data can be identified, so as to obtain the predicted encoding state of the sub-node to be encoded later.

[0088] Step 102, obtaining the predicted coding state of the to-be-coded subnode; wherein the predicted coding state includes an inter-frame coding state and an intra-frame coding state.

[0089] In some embodiments, in order to determine the predicted coding state of the sub-node to be encoded, so as to subsequently determine the corresponding first context probability model based on the predicted coding state, the predicted coding state of the sub-node to be encoded can be obtained by obtaining the enable flag corresponding to the frame to be encoded where the sub-node to be encoded is located, so as to accurately determine whether the frame to be encoded where the sub-node to be encoded is located has inter-frame prediction enabled.

[0090] Specifically, the enable flag corresponding to the frame to be encoded where the sub-node to be encoded is located may be obtained, and based on the enable flag, the prediction encoding state of the sub-node to be encoded may be determined.

[0091] The frame to be encoded may be a frame where the sub-node to be encoded is located. Specifically, the point cloud data may be organized into a series of frames, each of which includes a series of nodes.

[0092] The enable flag can be an indicator to indicate whether inter-frame prediction is enabled for the frame to be encoded. In point cloud data, inter-frame prediction usually refers to using the information of the previous frame to predict the content of the current frame, thereby reducing the amount of data to be encoded. The value of the enable flag (gbh.interPredictionEnabledFlag) can be obtained directly, and can be 0 or 1, where 0 indicates that inter-frame prediction is disabled and 1 indicates that inter-frame prediction is enabled.

[0093] The predictive coding state may be an inter-frame on state of the frame to be coded. The predictive coding state may include an intra-frame coding state and an inter-frame coding state.

[0094] Specifically, when the enable flag corresponding to the frame to be encoded is 1, it indicates that the inter-frame prediction is turned on for the frame to be encoded, and the predicted coding state of the frame to be encoded is the inter-frame coding state; when the enable flag corresponding to the frame to be encoded is 0, it indicates that the inter-frame prediction is turned off for the frame to be encoded, and the predicted coding state of the frame to be encoded is the intra-frame coding state.

[0095] By obtaining the enable flag to determine the predicted coding state of the sub-node to be encoded, it is convenient to subsequently adopt different coding strategies according to different predicted coding states, thereby improving the subsequent coding efficiency and quality.

[0096] Step 103: Determine a first context probability model corresponding to the sub-node to be encoded based on the predicted coding state.

[0097] In some embodiments, in order to adapt to different encoding requirements, the corresponding first context probability model can be determined from the first context probability model group according to the predicted encoding state, so as to dynamically adjust the encoding strategy according to the characteristics of the data, thereby improving the accuracy of encoding the sub-nodes to be encoded of the point cloud data.

[0098] The first context probability model group may be a collection of context probability models for processing and encoding different types of data.

[0099] The first context probability model may be a probability model for encoding binary data, and is used to encode the placeholder information of the sub-node to be encoded.

[0100] It is understandable that intra-frame coding only processes a single frame and is suitable for situations where scenes change dramatically or random access is required, while inter-frame coding uses the similarity between frames for compression, which significantly improves the compression ratio, but also increases the complexity of decoding. Therefore, the corresponding context probability model can be selected according to the predictive coding state of different frames to find a balance between compression efficiency and decoding complexity.

[0101] Furthermore, in an image or video frame, different regions have different amounts of information and degrees of change. For example, the sky and large areas of monochrome background have small changes, so a simple context probability model can be used; while moving objects and areas with rich details require a complex context probability model. Therefore, determining the context probability model based on local sparse information can improve the efficiency of encoding while ensuring the quality of encoding.

[0102] By determining the corresponding context probability model based on the predicted occupancy information, the dividing boundary of the first context probability model corresponding to different information can be clarified, so that the context probability model can effectively distinguish and encode subtle differences in the encoding states between adjacent frames, thereby improving the accuracy of encoding the sub-nodes to be encoded of the point cloud data.

[0103] In some implementations, in order to improve the efficiency and accuracy of coding, local sparse information, predicted placeholder information, and part or all of the information in the predicted coding state of the sub-node to be encoded may be obtained, and the corresponding first context state model may be determined accordingly. For example, step 103 may determine the first context probability model corresponding to the sub-node to be encoded by one of the following implementations:

[0104] (A.1) obtaining local sparse information of the subnode to be encoded; determining a corresponding first context probability model from a first context probability model group based on the predicted coding state and the local sparse information;

[0105] (A.2) or, according to the predicted coding state, predicting the predicted placeholder information of the subnode to be encoded; and determining the corresponding first context probability model from the first context probability model group based on the predicted coding state and the predicted placeholder information;

[0106] (A.3) Or, obtain local sparse information of the subnode to be encoded; predict the predicted placeholder information of the subnode to be encoded according to the predicted coding state; determine the corresponding first context probability model from the first context probability model group based on at least two parameters among the predicted coding state, the local sparse information and the predicted placeholder information.

[0107] The local sparse information may be the point cloud density around the sub-node to be encoded. If the number of occupied adjacent nodes is large, it indicates that the area around the sub-node to be encoded is relatively dense, otherwise it is relatively sparse.

[0108] The predicted placeholder information may be a predicted value of the placeholder state of the to-be-encoded subnode obtained based on the predicted encoding state. The predicted placeholder information may be represented in the form of a binary code (0 or 1), where 1 indicates that the to-be-encoded subnode is occupied by a point, and 0 indicates that the to-be-encoded subnode is not occupied by a point.

[0109] In some embodiments, the local sparse information of the sub-node to be encoded can be obtained by obtaining multiple encoded adjacent nodes preceding the sub-node to be encoded, determining the first placeholder information of each adjacent node, calculating the number of placeholders of the multiple encoded adjacent nodes, and comparing the number of placeholders with a preset placeholder number threshold. When the number of placeholders is greater than or equal to the placeholder number threshold, it can be determined that the local sparse information of the sub-node to be encoded is sparse; when the number of placeholders is less than the placeholder number threshold, it can be determined that the local sparse information of the sub-node to be encoded is non-sparse.

[0110] In some embodiments, the predicted placeholder information of the subnode to be encoded can be obtained by obtaining the frame to be encoded in which the subnode to be encoded is located, and determining at least one reference frame from the encoded adjacent frames in the encoding order, and determining a reference subnode with the same subnode spatial position and the same subnode size as the subnode to be encoded from the reference frame, and predicting it through the second placeholder information of the reference subnode. Specifically, when the second placeholder information is a placeholder, the predicted placeholder information of the subnode to be encoded is also a placeholder; when the second placeholder information is non-placeholder, the predicted placeholder information of the subnode to be encoded is also non-placeholder.

[0111] Specifically, the corresponding first context probability model can be determined from the first context probability model group based on the predicted coding state and the local sparse information, or based on the predicted coding state and the predicted placeholder information, or based on at least two parameters of the predicted coding state, the local sparse information and the predicted placeholder information, or the corresponding first context probability model can be determined only based on the predicted coding state.

[0112] Furthermore, in order to ensure that the boundary between the first context probability model that utilizes inter-frame information and the first context probability model that does not utilize inter-frame information is clearer, in the process of determining the first context probability model, it is necessary to determine it according to the predicted coding state. For local sparse information and predicted placeholder information, it is to further select a more accurate first context probability model for the sub-node to be encoded through effective information, so as to improve the efficiency and accuracy of encoding the placeholder information of the sub-node to be encoded.

[0113] In some embodiments, in order to more efficiently and accurately determine the first context probability model for encoding the placeholder information of the subnode to be encoded, the category of the context state tree of the subnode to be encoded can be first determined, so as to effectively use the context state tree to quickly determine the first context probability model that is most suitable for encoding the placeholder information of the current subnode to be encoded, thereby improving the efficiency and accuracy of encoding. For example, for the above-mentioned cases of determining the first context probability model corresponding to the subnode to be encoded, the method further includes the following steps:

[0114] (B1) determining at least one of the predicted coding state and the local sparse information as the first classification information, and using other information in the predicted coding state and the local sparse information other than the first classification information as the second classification information; or, determining at least one of the predicted coding state and the predicted placeholder information as the first classification information, and using other information in the predicted coding state and the predicted placeholder information other than the first classification information as the second classification information; or, determining at least one of the predicted coding state, the local sparse information, and the predicted placeholder information as the first classification information, and using other information in the predicted coding state, the local sparse information, and the predicted placeholder information other than the first classification information as the second classification information;

[0115] (B2) determining, according to the first classification information, a context state tree category of the context state tree corresponding to the sub-node to be encoded;

[0116] (B3) Mapping the context state tree category and the second classification information in the first context probability model group to determine the corresponding first context probability model.

[0117] Among them, the context state tree can be constructed by the placeholder information of the encoded adjacent nodes adjacent to the child node to be encoded. For example, each adjacent node corresponds to a placeholder information, such as the placeholder information of node B is 101, the placeholder information of node C is 011, and the placeholder information of node D is 110. The placeholder information of the adjacent nodes is combined into a context state tree, and 101, 011, 110 can be obtained. Furthermore, the context state tree can also include the position information of each adjacent node.

[0118] Among them, the context state tree category can be a specific state that reflects the sub-node to be encoded, and the context state tree can include the predicted coding state, local sparse information and predicted placeholder information of the sub-node to be encoded, etc. Exemplarily, the context state tree can be an inter-frame sparse context state tree, a sparse context state tree, an inter-frame context state tree, etc., which is specifically determined according to the selected first classification information.

[0119] The first classification information may be information for determining a context state tree category of a context state tree corresponding to a sub-node to be encoded, and may specifically be used to determine a first context probability model group.

[0120] The second classification information may be information used to determine the first context probability model corresponding to the sub-node to be encoded. The first classification information and the second classification information are selected based on the predicted coding state, the local sparse information and the predicted placeholder information.

[0121] Exemplarily, the context state tree category of the context state tree corresponding to the sub-node to be encoded can be first determined, and the corresponding first context probability model group can be determined based on the category of the context state tree and the second classification information. Then, the sub-node occupancy probability corresponding to the sub-node to be encoded can be determined based on the context state tree corresponding to the sub-node to be encoded. Then, the first context probability model can be determined from the first context probability model group based on the sub-node occupancy probability.

[0122] In some embodiments, the corresponding context state tree category can be first determined by predicting the coding state, predicting the placeholder information, and part or all of the local sparse information, and the corresponding first context probability model group can be determined according to the context state tree category; then, according to the sub-node occupancy probability of the sub-node to be encoded, the first context probability model is further determined from the first context probability model group.

[0123] Furthermore, the prediction coding state includes an intra-frame coding state and an inter-frame coding state; the local sparse information includes sparse and non-sparse; and the prediction placeholder information includes placeholder and non-placeholder.

[0124] Exemplarily, the description is expanded for the case where the corresponding first context probability model is determined from the first context probability model group based on the predicted coding state and the local sparse information. For example, when the first classification information is the predicted coding state and the second classification information is the local sparse information, the corresponding context state tree category (such as the inter-frame coding state tree) can be determined based on the predicted coding state, and the corresponding first context probability model group is determined based on the local sparse information and the context state tree category, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability. When the first classification information is the local sparse information and the second classification information is the predicted coding state, the corresponding context state tree category can be determined based on the local sparse information, and the corresponding first context probability model group is determined based on the predicted coding state and the context state tree category, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability.

[0125] Exemplarily, the description is expanded for the case where the corresponding first context probability model is determined from the first context probability model group based on the predicted coding state and the predicted placeholder information. For example, when the first classification information is the predicted coding state and the second classification information is the predicted placeholder information, the corresponding context state tree category can be determined based on the predicted coding state, and the corresponding first context probability model group can be determined based on the predicted placeholder information and the context state tree, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability. When the first classification information is the predicted placeholder information and the second classification information is the predicted coding state, the corresponding context state tree category can be determined based on the predicted placeholder information, and the first context probability model group can be determined based on the predicted coding state and the context state tree category, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability.

[0126] Exemplarily, for the case where the corresponding first context probability model is determined from the first context probability model group based on at least two parameters in the predicted coding state, local sparse information and predicted placeholder information, the description is expanded. For example, when the first classification information is the predicted coding state and the second classification information is the local sparsity and predicted placeholder information, the corresponding context state tree category can be determined based on the predicted coding state, and the first context probability model group can be determined based on the context state tree category, local sparsity and predicted placeholder information, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability. When the first classification information is the predicted coding state and local sparse information and the second classification information is the predicted placeholder information, the corresponding context state tree category can be determined based on the predicted coding state and the local sparse information, and a context probability model group is determined based on the predicted placeholder information and the context state tree category, and then, according to the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability of the sub-node to be encoded is determined, and the first context probability model is determined from the first context probability model group based on the sub-node occupancy probability. It can be understood that any two of the predicted coding state, local sparse information and predicted placeholder information can be determined as the first category information, and the remaining one can be determined as the second category information; any one of the predicted coding state, local sparse information and predicted placeholder information can be determined as the first category information, and the remaining two can be determined as the second category information; the predicted coding state, local sparse information and predicted placeholder information can all be determined as the first category information, and the corresponding context state tree category can be directly determined and mapped to the specific first context probability model without selecting the second category information; the predicted coding state, local sparse information and predicted placeholder information can all be determined as the second category information, and directly mapped to the specific first context probability model without selecting the first category information; the specific combinations are not listed here one by one, and as long as they do not deviate from the combination conceived by the present application, they can all be used as the technical solution of the present application.

[0127] In some embodiments, when the predicted coding state is the intra-frame coding state, there is no need to predict the predicted placeholder information of the sub-node to be encoded, and the predicted placeholder information is set to 0; when the predicted coding state is the inter-frame coding state, the predicted placeholder information of the sub-node to be encoded is predicted, and the predicted placeholder information may be 0 or 1, and the placeholder information of the sub-node to be encoded with different predicted placeholder information will be mapped to different first context probability models.

[0128] By determining the context state tree category of the sub-node to be encoded, the efficiency of selecting the first context probability model can be improved, thereby improving the efficiency of encoding the occupancy information of the sub-node to be encoded.

[0129] In some embodiments, since the occupancy state of the sub-node to be encoded in the point cloud data is often not completely independent, but is affected by the state of the surrounding nodes, in order to more accurately predict the local sparse information of the sub-node to be encoded, the first occupancy information of the encoded adjacent nodes can be used to predict the local sparse information of the sub-node to be encoded, so as to improve the efficiency of encoding and the quality of reconstruction. For example, in the enumeration of the first context probability model corresponding to the sub-node to be encoded, the "obtaining the local sparse information of the sub-node to be encoded" mentioned in (A.1) and (A.3) may include:

[0130] (C1) determining, in a coding order, a plurality of encoded adjacent nodes that are located in front of the child node to be encoded;

[0131] (C2) determining the number of occupancy places of the plurality of encoded adjacent nodes based on the first occupancy place information of the plurality of encoded adjacent nodes;

[0132] (C3) Compare the number of occupied places with a preset threshold of the number of occupied places to determine the local sparse information of the child node to be encoded.

[0133] The adjacent nodes may be nodes that are spatially adjacent to the sub-node to be encoded. Specifically, they may be nodes that share a common edge or a common face with the sub-node to be encoded. Furthermore, the adjacent nodes may be used to predict the state of the sub-node to be encoded to improve encoding efficiency.

[0134] The first placeholder information may be the occupancy status information of the neighboring nodes that are spatially adjacent to the child node to be encoded. In point cloud data, the occupancy status of a node is usually represented in the form of a binary code (0 or 1), where 1 indicates that the node is occupied by a point and 0 indicates that the node is not occupied by a point. Since the neighboring nodes have been encoded, the first placeholder information of the neighboring nodes can be directly obtained.

[0135] The number of occupied places can be the sum of the occupancy status information of multiple encoded nodes adjacent to the sub-node to be encoded. In point cloud data, the occupancy status of a node is usually represented in the form of a binary code (0 or 1), where 1 indicates that the node is occupied by a point and 0 indicates that the node is not occupied by a point. The number of occupied places is obtained by adding the occupancy status of multiple adjacent nodes, which is used to reflect whether the spatial area around the sub-node to be encoded is sparse.

[0136] The placeholder threshold may be a preset value used to distinguish the local sparse information of the sub-node to be encoded. The placeholder threshold may be set according to actual conditions, for example, it may be set to 1, 2, 3, etc.

[0137] The local sparse information may be the point cloud density around the sub-node to be encoded. If the number of occupied adjacent nodes is large, it indicates that the area around the sub-node to be encoded is relatively dense, otherwise it is relatively sparse.

[0138] For example, starting from the subnode to be encoded, a preset number of adjacent nodes can be selected in the negative direction of x, y, and z adjacent to the subnode to be encoded, that is, in the direction of the node that has been encoded before the subnode to be encoded. Specifically, the preset number can be set according to actual conditions, for example, it can be 12, 15, etc.

[0139] Exemplarily, the number of occupied places may be compared with a preset threshold of the number of occupied places, and the local sparse information of the sub-node to be encoded may be determined according to the comparison result.

[0140] For example, if the subnode to be encoded is adjacent to 12 adjacent nodes, the adjacent nodes have been encoded, so the placeholder information (whether it is occupied by a point) can be directly obtained. Further, the number of placeholders of these 12 adjacent nodes can be calculated. For example, if the placeholder information of these 12 adjacent nodes is 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, respectively, then the number of placeholders is 1+0+0+1+0+1+0+1+0+1+0+0=5.

[0141] Furthermore, if the placeholder threshold is 1, the calculated placeholder number 5 is compared with the placeholder threshold 1. Since 5 is greater than 1, the comparison result is "greater than the threshold", so it can be determined that the local sparse information of the sub-node to be encoded is non-sparse. Non-sparse local sparse information means that the spatial area around the sub-node to be encoded is relatively dense, so a more efficient encoding strategy can be selected during encoding to reduce redundant information.

[0142] Exemplarily, if the first placeholder information represents a large number of placeholders of adjacent nodes, the local sparse information of the sub-node to be encoded is non-sparse; if the first placeholder information represents a small number of placeholders of adjacent nodes, the local sparse information of the sub-node to be encoded is sparse. Specifically, it can be determined by setting a placeholder threshold or a placeholder ratio. For example, the placeholder threshold can be set to 1. When the first placeholder information represents that the number of placeholders of adjacent nodes is greater than 1, the local sparse information of the sub-node to be encoded is determined to be non-sparse, otherwise it is sparse.

[0143] Through the above method, the sub-node to be encoded and multiple encoded adjacent nodes located in front of the sub-node to be encoded can be obtained, and by utilizing the first placeholder information of the encoded adjacent nodes, further by setting a placeholder threshold and comparing the placeholder number with the placeholder threshold, the judgment of local sparse information can be made clearer and more operational, thereby improving the efficiency and accuracy of encoding.

[0144] In some embodiments, in order to facilitate the subsequent use of different coding strategies according to different predicted placeholder information, the placeholder information of the subnode to be encoded can be predicted by the second placeholder information of the reference subnode of at least one reference frame located in the front sequence of the frame to be encoded, so as to improve the coding efficiency and accuracy. For example, in the enumeration of the first context probability model corresponding to the subnode to be encoded, the "predicted placeholder information of the subnode to be encoded is predicted according to the predicted coding state" mentioned in (A.2) and (A.3) includes:

[0145] (D1) obtaining a frame to be encoded where the sub-node to be encoded is located, and determining at least one reference frame from adjacent frames that have been encoded according to the encoding order;

[0146] (D2) determining, from the reference frame, a reference subnode having the same subnode spatial position and subnode size as the subnode to be encoded;

[0147] (D3) Acquire reference placeholder information of the reference child node as second placeholder information, and use the second placeholder information as predicted placeholder information of the child node to be encoded.

[0148] The reference frame may be an adjacent frame that is in the previous order of the frame to be encoded according to the encoding order. The reference frame may be used to predict the occupancy state of the sub-node to be encoded in the current frame to be encoded.

[0149] The subnode spatial position may be the corresponding spatial position of the current subnode to be encoded in the reference frame. For example, if the position of the subnode to be encoded in the frame to be encoded is the upper left corner, then the position in the reference frame is also the position corresponding to the upper left corner.

[0150] The same subnode size indicates that the two nodes have the same occupied space. For example, if the reference subnode and the to-be-encoded subnode have the same subnode size, then the reference subnode and the to-be-encoded subnode have the same occupied space.

[0151] The reference sub-node may be a node having the highest similarity with the current sub-node to be encoded in the reference frame.

[0152] The second placeholder information may be placeholder information of a reference sub-node having the highest similarity with the current sub-node to be encoded in the reference frame.

[0153] It is understandable that the inter-frame coding state may be the state in which the current frame to be coded has inter-frame prediction coding enabled. Since when the prediction coding state is the intra-frame coding state, there is no placeholder information for the sub-node to be coded, therefore, only the placeholder state of the sub-node to be coded in the inter-frame coding state needs to be predicted.

[0154] Specifically, since the movement of objects is continuous between consecutive frames, this means that the sub-node to be encoded in the current frame to be encoded usually also has a corresponding position and state in the previous frame (reference frame). Therefore, the predicted placeholder information of the sub-node to be encoded can be predicted by the second placeholder information of the reference sub-node of the reference frame.

[0155] In some implementations, the reference subnode may be determined based on the position. In this case, the reference subnode may be a node having the same position and the same subnode size as the current subnode to be encoded in the reference frame, and the second placeholder information may be placeholder information of the reference subnode having the same position as the current subnode to be encoded in the reference frame.

[0156] In some embodiments, it may also be assumed that the subnode to be encoded is located in frame F1. In order to predict the placeholder information of the subnode to be encoded in frame F1, a reference frame located in front of frame F1 may be selected. For example, frame F0 may be selected as the reference frame. Furthermore, in reference frame F0, a node with the highest similarity to the subnode to be encoded in frame F1 may be determined as a reference subnode, and second placeholder information of the reference subnode may be obtained, and the second placeholder information may be used as the predicted placeholder information of the subnode to be encoded. For example, if the second placeholder information is 0, then the predicted placeholder information is also 0.

[0157] Exemplarily, the number of reference frames selected can be determined according to actual conditions. For example, according to the order of encoding, the following arrangement can be obtained: adjacent frame 1, adjacent frame 2, adjacent frame 3, adjacent frame 4, frame 1 to be encoded, adjacent frame 5, adjacent frame 6. It can be determined that the adjacent frames located in front of the frame to be encoded are adjacent frame 1, adjacent frame 2, adjacent frame 3, and adjacent frame 4. If the number of selected reference frames is 1, the reference frame can be determined according to the principle of nearest selection, and specifically, adjacent frame 4 can be determined as the reference frame. Similarly, if the number of selected reference frames is 2, adjacent frames 3 and adjacent frames 4 can be determined as reference frames.

[0158] Furthermore, if there are multiple reference frames selected, but the second placeholder information of the reference subnodes corresponding to different reference frames is different, then the second placeholder information with the highest frequency of occurrence can be selected as the predicted placeholder information. For example, if there are 3 reference frames selected, and the corresponding second placeholder information is 1, 1, and 0, then 1 can be used as the predicted placeholder information.

[0159] By predicting the predicted placeholder information of the sub-node to be encoded by using the second placeholder information of the reference sub-node of the reference frame, the state of the current sub-node to be encoded can be predicted and encoded more accurately, thereby improving the efficiency and accuracy of encoding.

[0160] Step 104: Encode the placeholder information of the to-be-encoded subnode by using the first context probability model to obtain target encoded data of the placeholder information.

[0161] In some embodiments, in the geometric coding framework of point cloud data, encoding the subnode to be encoded mainly includes encoding the placeholder information of the subnode to be encoded, also known as the placeholder code. Encoding the placeholder information of the subnode to be encoded can achieve data compression and improve storage and transmission efficiency.

[0162] The target coded data may be data obtained by compressing and encoding the placeholder information of the sub-node to be coded.

[0163] Specifically, the sub-node occupancy probability of the placeholder information of the sub-node to be encoded can be determined based on the context state tree where the sub-node to be encoded is located; then, the specific first context probability model is determined from the first context probability model group through the sub-node occupancy probability, and the placeholder information is encoded according to the first context probability model to obtain the target encoding data of the placeholder information.

[0164] For example, the context state tree category corresponding to the sub-node to be encoded can be determined as an inter-frame non-sparse state based on the predicted coding state and local sparse information, and then the first context probability model group A is determined based on the context state tree category and the node placeholder information (such as the node placeholder information is occupied), and the first context probability model group A includes the first context probability model a1, the first context probability model a2, the first context probability model a3 and the first context probability model a4. Further, if it is determined that the sub-node occupancy probability of the sub-node to be encoded is high, the first context probability model a1 can be determined as the first context probability model for finally encoding the placeholder information of the sub-node to be encoded based on the sub-node occupancy probability, and the placeholder information of the sub-node to be encoded is encoded through the first context probability model a1.

[0165] The subnode occupancy probability may be the probability of the occupancy state of the subnode to be encoded determined based on the context state tree corresponding to the subnode to be encoded. If most of the neighboring nodes of the subnode to be encoded are occupied by points, the occupancy probability of the subnode to be encoded may be high; if most of the neighboring nodes are not occupied by points, the occupancy probability of the subnode to be encoded may be low.

[0166] Exemplarily, it is possible to determine whether each adjacent node has an occupied or unoccupied state based on the context state tree where the sub-node to be encoded is located, and combine the occupied states of all adjacent nodes to form a binary number, and determine the sub-node occupation probability of the sub-node to be encoded based on the distribution information of the binary number. For example, the context state tree can be represented as a binary number 101101.

[0167] By encoding the placeholder information of the sub-node to be encoded using the first context probability model, data compression can be achieved, storage and transmission efficiency can be improved, data processing speed can be accelerated, data representation can be simplified, and the accuracy of data recovery can be improved.

[0168] The embodiment of the present application obtains the sub-node to be encoded in the point cloud data; obtains the predicted coding state of the sub-node to be encoded; wherein the predicted coding state includes the inter-frame coding state and the intra-frame coding state; based on the predicted coding state, determines the first context probability model corresponding to the sub-node to be encoded; and encodes the placeholder information of the sub-node to be encoded through the first context probability model to obtain the target coding data of the placeholder information. In this way, the corresponding first context probability model can be determined according to different predicted coding states to clarify the division boundary of the first context probability model corresponding to different information, so that the context probability model can effectively distinguish and encode the subtle differences in the coding states between adjacent frames, thereby improving the accuracy of encoding the sub-node to be encoded in the point cloud data.

[0169] Please refer to Figure 3 In some implementations, after receiving the target coded data, the decoding end may decode the target coded data as target decoding data to obtain the placeholder information of the sub-node to be decoded. The specific decoding process will be described below.

[0170] In some embodiments, the point cloud data decoding method includes the following steps:

[0171] Step 201: Obtain target decoding data of a to-be-decoded subnode in point cloud data.

[0172] In some implementations, since point cloud data is often very large, direct transmission may result in high storage space requirements, long transmission time, and low processing efficiency. Therefore, in order to facilitate transmission, the sub-nodes to be decoded in the point cloud data can be obtained, and the occupancy information of the sub-nodes to be decoded can be decoded, so as to effectively reduce the storage space of the point cloud data and improve the transmission efficiency of the point cloud data.

[0173] Point cloud data can be a collection of multiple points in three-dimensional space. Each point cloud data contains coordinate information (such as x, y, z) and possible other attribute information. The specific coordinate information and attribute information can be collected by equipment such as laser radar and used in various application fields, such as indoor scene analysis, terrain mapping, architectural planning, industrial production and autonomous driving. Point cloud data is processed and compressed during the decoding process to reduce the demand for storage space or transmission bandwidth.

[0174] The sub-node to be decoded may be a node that needs to be decoded in the point cloud data.

[0175] Among them, the target decoded data is the target coded data obtained after being encoded by the second context probability model. During decoding, the target coded data is used as the target decoded data and is decoded by the selected second context probability model.

[0176] Exemplarily, a quadtree or binary tree partitioning method can be used to obtain several sub-nodes to be decoded. Taking octree partitioning as an example, before performing octree partitioning on the point cloud data, it is necessary to first perform coordinate transformation on the geometric information of the point cloud data so that all the point cloud data are contained in a bounding box. Then quantization is performed. This step of quantization mainly plays a role in scaling. Due to quantization rounding, the geometric information of some points is the same. Whether to remove duplicate points is determined based on parameters. The process of quantization and removal of duplicate points is also called voxelization. Thus, multiple sub-nodes to be decoded can be obtained. The specific process of coordinate transformation and voxelization will not be described in detail here.

[0177] In some implementations, the sub-node to be decoded may also be obtained based on other methods, which are not specifically limited here.

[0178] Through the above method, the sub-node to be decoded in the point cloud data can be identified, so as to subsequently obtain the predicted decoding status of the sub-node to be decoded.

[0179] Step 202, obtaining the predicted decoding state of the to-be-decoded subnode; wherein the predicted decoding state includes an inter-frame decoding state and an intra-frame decoding state.

[0180] In some embodiments, in order to determine the predicted decoding state of the sub-node to be decoded, so as to subsequently determine the corresponding second context probability model based on the predicted decoding state, the predicted decoding state of the sub-node to be decoded can be obtained by obtaining the enable flag corresponding to the frame to be decoded where the sub-node to be decoded is located, so as to accurately determine whether the frame to be decoded where the sub-node to be decoded is located has inter-frame prediction enabled.

[0181] Specifically, the enabling flag corresponding to the frame to be decoded where the sub-node to be decoded is located may be obtained, and based on the enabling flag, the predicted decoding state of the sub-node to be decoded may be determined.

[0182] The frame to be decoded may be a frame where the sub-node to be decoded is located. Specifically, the point cloud data may be organized into a series of frames, each of which includes a series of nodes.

[0183] The enable flag can be an indicator to indicate whether inter-frame prediction is enabled for the frame to be decoded. In point cloud data, inter-frame prediction usually refers to using the information of the previous frame to predict the content of the current frame, thereby reducing the amount of data to be decoded. The value of the enable flag (gbh.interPredictionEnabledFlag) can be obtained directly, and can be 0 or 1, where 0 indicates that inter-frame prediction is disabled and 1 indicates that inter-frame prediction is enabled.

[0184] The prediction decoding state may be an inter-frame on state of a frame to be decoded. The prediction decoding state may include an intra-frame decoding state and an inter-frame decoding state.

[0185] Specifically, when the enable flag corresponding to the frame to be decoded is 1, it indicates that the inter-frame prediction is turned on for the frame to be decoded, and the predicted decoding state of the frame to be decoded is the inter-frame decoding state; when the enable flag corresponding to the frame to be decoded is 0, it indicates that the inter-frame prediction is turned off for the frame to be decoded, and the predicted decoding state of the frame to be decoded is the intra-frame decoding state.

[0186] By obtaining the enabling flag to determine the predicted decoding state of the to-be-decoded subnode, different decoding strategies can be subsequently adopted according to different predicted decoding states, thereby improving the subsequent decoding efficiency and quality.

[0187] Step 203: Determine a second context probability model corresponding to the sub-node to be decoded based on the predicted decoding state.

[0188] In some embodiments, in order to adapt to different decoding requirements, a corresponding second context probability model can be determined from the second context probability model group based on the predicted decoding state, so as to dynamically adjust the decoding strategy according to the characteristics of the data, thereby improving the accuracy of decoding the sub-nodes to be decoded of the point cloud data.

[0189] The second context probability model group may be a collection of context probability models for processing and decoding different types of data.

[0190] The second context probability model may be a probability model for decoding binary data, and is used to decode the placeholder information of the sub-node to be decoded.

[0191] It is understandable that intra-frame decoding only processes a single frame and is suitable for situations where the scene changes drastically or random access is required, while inter-frame decoding uses the similarity between frames for compression, which significantly improves the compression ratio, but also increases the complexity of decoding. Therefore, the corresponding context probability model can be selected according to the predicted decoding state of different frames to find a balance between compression efficiency and decoding complexity.

[0192] Furthermore, in an image or video frame, different regions have different amounts of information and degrees of change. For example, the sky and large areas of monochrome background have small changes, so a simple context probability model can be used; while moving objects and areas with rich details require a complex context probability model. Therefore, determining the context probability model based on local sparse information can improve the decoding efficiency while ensuring the decoding quality.

[0193] By determining the corresponding context probability model based on the predicted occupancy information, the dividing boundary of the second context probability model corresponding to different information can be clarified, so that the context probability model can effectively distinguish the subtle differences in the decoding status between adjacent frames and perform decoding, thereby improving the accuracy of decoding the sub-nodes to be decoded of the point cloud data.

[0194] In some implementations, in order to improve the efficiency and accuracy of decoding, local sparse information, predicted placeholder information, and part or all of the information in the predicted decoding state of the sub-node to be decoded may be obtained, and the corresponding first context state model may be determined accordingly. For example, step 203 may determine the second context probability model corresponding to the sub-node to be decoded by one of the following implementations:

[0195] (E.1) obtaining local sparse information of the subnode to be decoded; determining a corresponding second context probability model from the second context probability model group based on the predicted decoding state and the local sparse information;

[0196] (E.2) Or, according to the predicted decoding state, predict the predicted placeholder information of the child node to be decoded; based on the predicted decoding state and the predicted placeholder information, determine the corresponding second context probability model from the second context probability model group:

[0197] (E.3) Or, obtain local sparse information of the sub-node to be decoded; predict the predicted placeholder information of the sub-node to be decoded according to the predicted decoding state; determine the corresponding second context probability model from the second context probability model group based on at least two parameters among the predicted decoding state, the local sparse information and the predicted placeholder information.

[0198] The local sparse information may be the point cloud density around the sub-node to be decoded. If the number of occupied adjacent nodes is large, it indicates that the area around the sub-node to be decoded is relatively dense, otherwise it is relatively sparse.

[0199] The predicted placeholder information may be a predicted value of the placeholder state of the subnode to be decoded obtained based on the predicted decoding state. The predicted placeholder information may be represented in the form of a binary code (0 or 1), where 1 indicates that the subnode to be decoded is occupied by a point, and 0 indicates that the subnode to be decoded is not occupied by a point.

[0200] In some embodiments, the local sparse information of the sub-node to be decoded can be obtained by obtaining multiple decoded adjacent nodes preceding the sub-node to be decoded, determining the first placeholder information of each adjacent node, calculating the number of placeholders of the multiple decoded adjacent nodes, and comparing the number of placeholders with a preset placeholder number threshold. When the number of placeholders is greater than or equal to the placeholder number threshold, it can be determined that the local sparse information of the sub-node to be decoded is sparse; when the number of placeholders is less than the placeholder number threshold, it can be determined that the local sparse information of the sub-node to be decoded is non-sparse.

[0201] In some embodiments, the predicted placeholder information of the subnode to be decoded can be obtained by obtaining the frame to be decoded in which the subnode to be decoded is located, and determining at least one reference frame from the decoded adjacent frames in the decoding order, and determining a reference subnode with the same subnode spatial position and the same subnode size as the subnode to be decoded from the reference frame, and predicting it through the second placeholder information of the reference subnode. Specifically, when the second placeholder information is a placeholder, the predicted placeholder information of the subnode to be decoded is also a placeholder; when the second placeholder information is non-placeholder, the predicted placeholder information of the subnode to be decoded is also non-placeholder.

[0202] Specifically, the corresponding second context probability model can be determined from the second context probability model group based on the predicted decoding state and the local sparse information, or based on the predicted decoding state and the predicted placeholder information, or based on at least two parameters of the predicted decoding state, the local sparse information and the predicted placeholder information, or the corresponding second context probability model can be determined only based on the predicted decoding state.

[0203] Furthermore, in order to ensure that the boundary between the second context probability model that utilizes inter-frame information and the second context probability model that does not utilize inter-frame information is clearer, in the process of determining the second context probability model, it is necessary to determine it based on the predicted decoding state. For local sparse information and predicted placeholder information, it is to further select a more accurate second context probability model for the sub-node to be decoded through effective information, so as to improve the efficiency and accuracy of decoding the placeholder information of the sub-node to be decoded.

[0204] In some embodiments, in order to more efficiently and accurately determine the second context probability model for decoding the placeholder information of the subnode to be decoded, the category of the context state tree of the subnode to be decoded can be first determined, so as to effectively use the context state tree to quickly determine the second context probability model that is most suitable for decoding the placeholder information of the current subnode to be decoded, thereby improving the efficiency and accuracy of decoding. For example, for the above-mentioned several situations of determining the second context probability model corresponding to the subnode to be decoded, the method further includes the following steps:

[0205] (F1) determining at least one of the predicted decoding state and the local sparse information as first category information, and using other information in the predicted decoding state and the local sparse information other than the first category information as second category information; or, determining at least one of the predicted decoding state and the predicted placeholder information as first category information, and using other information in the predicted decoding state and the predicted placeholder information other than the first category information as second category information; or, determining at least one of the predicted decoding state, the local sparse information, and the predicted placeholder information as first category information, and using other information in the predicted decoding state, the local sparse information, and the predicted placeholder information other than the first category information as second category information;

[0206] (F2) determining, according to the first classification information, a context state tree category of the context state tree corresponding to the child node to be decoded;

[0207] (F3) Mapping the context state tree category and the second classification information in the second context probability model group to determine a corresponding second context probability model.

[0208] The context state tree can be constructed by the placeholder information of the decoded adjacent nodes adjacent to the child node to be decoded. For example, each adjacent node corresponds to a placeholder information, such as the placeholder information of node B is 101, the placeholder information of node C is 011, and the placeholder information of node D is 110. The placeholder information of the adjacent nodes is combined into a context state tree to obtain 101, 011, 110. Furthermore, the context state tree can also include the position information of each adjacent node.

[0209] Among them, the context state tree category can be a specific state that reflects the child node to be decoded, and the context state tree can include the predicted decoding state, local sparse information and predicted placeholder information of the child node to be decoded, etc. Exemplarily, the context state tree can be an inter-frame sparse context state tree, a sparse context state tree, an inter-frame context state tree, etc., which is specifically determined according to the selected first classification information.

[0210] The first classification information may be information for determining a context state tree category of a context state tree corresponding to a sub-node to be decoded, and may be specifically used to determine a second context probability model group.

[0211] The second classification information may be information used to determine a second context probability model corresponding to the sub-node to be decoded. The first classification information and the second classification information are selected based on the predicted decoding state, the local sparse information and the predicted placeholder information.

[0212] Exemplarily, the context state tree category of the context state tree corresponding to the sub-node to be decoded can be first determined, and the corresponding second context probability model group can be determined based on the category of the context state tree and the second classification information. Thereafter, the sub-node occupancy probability corresponding to the sub-node to be decoded can be determined based on the context state tree corresponding to the sub-node to be decoded. Thereafter, the second context probability model can be determined from the second context probability model group based on the sub-node occupancy probability.

[0213] In some embodiments, the corresponding context state tree category can be first determined by predicting the decoding state, predicting the occupancy information, and part or all of the local sparse information, and the corresponding second context probability model group can be determined according to the context state tree category; then, according to the sub-node occupancy probability of the sub-node to be decoded, the second context probability model is further determined from the second context probability model group.

[0214] Furthermore, the predicted decoding state includes an intra-frame decoding state and an inter-frame decoding state; the local sparse information includes sparse and non-sparse; and the predicted placeholder information includes placeholder and non-placeholder.

[0215] Exemplarily, the description is expanded for the case where the corresponding second context probability model is determined from the second context probability model group based on the predicted decoding state and the local sparse information. For example, when the first classification information is the predicted decoding state and the second classification information is the local sparse information, the corresponding context state tree category (such as the inter-frame decoding context state) can be determined based on the predicted decoding state, and the corresponding second context probability model group can be determined based on the local sparse information and the context state tree category. After that, the subnode occupancy probability of the subnode to be decoded is determined according to the context state tree corresponding to the subnode to be decoded, and the second context probability model is determined from the second context probability model group based on the subnode occupancy probability. When the first classification information is the local sparse information and the second classification information is the predicted decoding state, the corresponding context state tree category can be determined based on the local sparse information, and the corresponding second context probability model group can be determined based on the predicted decoding state and the context state tree category. After that, the subnode occupancy probability of the subnode to be decoded is determined according to the context state tree corresponding to the subnode to be decoded, and the second context probability model is determined from the second context probability model group based on the subnode occupancy probability.

[0216] Exemplarily, the case where the corresponding second context probability model is determined from the second context probability model group based on the predicted decoding state and the predicted placeholder information is described in detail. For example, when the first classification information is the predicted decoding state and the second classification information is the predicted placeholder information, the corresponding context state tree category can be determined based on the predicted decoding state, and the corresponding second context probability model group can be determined based on the predicted placeholder information and the context state tree. After that, the subnode occupancy probability of the subnode to be decoded is determined according to the context state tree corresponding to the subnode to be decoded, and the second context probability model is determined from the second context probability model group based on the subnode occupancy probability. When the first classification information is the predicted placeholder information and the second classification information is the predicted decoding state, the corresponding context state tree category can be determined based on the predicted placeholder information, and the second context probability model group can be determined based on the predicted decoding state and the context state tree category. After that, the subnode occupancy probability of the subnode to be decoded is determined according to the context state tree corresponding to the subnode to be decoded, and the second context probability model is determined from the second context probability model group based on the subnode occupancy probability.

[0217] Exemplarily, for the case where the corresponding second context probability model is determined from the second context probability model group based on at least two parameters in the predicted decoding state, local sparse information and predicted placeholder information, the description is expanded. For example, when the first classification information is the predicted decoding state and the second classification information is the local sparsity and predicted placeholder information, the corresponding context state tree category can be determined based on the predicted decoding state, and the second context probability model group can be determined based on the context state tree category, local sparsity and predicted placeholder information, and then, according to the context state tree corresponding to the sub-node to be decoded, the sub-node occupancy probability of the sub-node to be decoded is determined, and the second context probability model is determined from the second context probability model group based on the sub-node occupancy probability. When the first classification information is the predicted decoding state and local sparse information and the second classification information is the predicted placeholder information, the corresponding context state tree category can be determined based on the predicted decoding state and the local sparse information, and a context probability model group is determined based on the predicted placeholder information and the context state tree category, and then, according to the context state tree corresponding to the sub-node to be decoded, the sub-node occupancy probability of the sub-node to be decoded is determined, and the second context probability model is determined from the second context probability model group based on the sub-node occupancy probability. It can be understood that any two of the predicted decoding state, local sparse information and predicted placeholder information can be determined as first category information, and the remaining one can be determined as second category information; any one of the predicted decoding state, local sparse information and predicted placeholder information can be determined as first category information, and the remaining two can be determined as second category information; the predicted decoding state, local sparse information and predicted placeholder information can all be determined as first category information, and the corresponding context state tree category can be directly determined and mapped to a specific second context probability model without selecting the second category information; the predicted decoding state, local sparse information and predicted placeholder information can all be determined as second category information, and directly mapped to a specific second context probability model without selecting the first category information; the specific combinations are not listed here one by one, and as long as they do not deviate from the combination conceived by the present application, they can all be used as the technical solution of the present application.

[0218] In some embodiments, when the predicted decoding state is the intra-frame decoding state, there is no need to predict the predicted placeholder information of the sub-node to be decoded, and the predicted placeholder information is set to 0; when the predicted decoding state is the inter-frame decoding state, the predicted placeholder information of the sub-node to be decoded is predicted, and the predicted placeholder information may be 0 or 1, and the placeholder information of the sub-node to be decoded with different predicted placeholder information will be mapped to different second context probability models.

[0219] By determining the context state tree category of the sub-node to be decoded, the efficiency of selecting the second context probability model can be improved, thereby improving the efficiency of decoding the occupancy information of the sub-node to be decoded.

[0220] In some embodiments, since the occupancy state of the subnode to be decoded in the point cloud data is often not completely independent, but is affected by the state of the surrounding nodes, in order to more accurately predict the local sparse information of the subnode to be decoded, the first occupancy information of the decoded adjacent nodes can be used to predict the local sparse information of the subnode to be decoded, so as to improve the decoding efficiency and the quality of reconstruction. For example, in the enumeration of the second context probability model corresponding to the subnode to be decoded, the "obtaining the local sparse information of the subnode to be decoded" mentioned in (E.1) and (E.3) may include:

[0221] (G1) determining, in decoding order, a plurality of decoded adjacent nodes that are located in front of the child node to be decoded;

[0222] (G2) determining the number of occupancy places of the plurality of decoded adjacent nodes based on the first occupancy place information of the plurality of decoded adjacent nodes;

[0223] (G3) Compare the number of occupied places with a preset threshold number of occupied places to determine the local sparse information of the child node to be decoded.

[0224] The adjacent node may be a node that is spatially adjacent to the sub-node to be decoded. Specifically, it may be a node that shares a common edge or a common face with the sub-node to be decoded. Furthermore, the adjacent node may be used to predict the state of the sub-node to be decoded to improve decoding efficiency.

[0225] The first placeholder information may be the occupancy status information of the neighboring node that is spatially adjacent to the subnode to be decoded. In point cloud data, the occupancy status of a node is usually represented in the form of a binary code (0 or 1), where 1 indicates that the node is occupied by a point and 0 indicates that the node is not occupied by a point. Since the neighboring node has been decoded, the first placeholder information of the neighboring node can be directly obtained.

[0226] The number of occupied places can be the sum of the occupancy status information of multiple decoded nodes adjacent to the sub-node to be decoded. In point cloud data, the occupancy status of a node is usually represented in the form of a binary code (0 or 1), where 1 indicates that the node is occupied by a point and 0 indicates that the node is not occupied by a point. The number of occupied places is obtained by adding the occupancy status of multiple adjacent nodes, which is used to reflect whether the spatial area around the sub-node to be decoded is sparse.

[0227] The placeholder threshold may be a preset value used to distinguish the local sparse information of the sub-node to be decoded. The placeholder threshold may be set according to actual conditions, for example, it may be set to 1, 2, 3, etc.

[0228] The local sparse information may be the point cloud density around the sub-node to be decoded. If the number of occupied adjacent nodes is large, it indicates that the area around the sub-node to be decoded is relatively dense, otherwise it is relatively sparse.

[0229] For example, starting from the subnode to be decoded, a preset number of adjacent nodes can be selected in the negative direction of x, y, and z adjacent to the subnode to be decoded, that is, in the direction of the node that has been decoded before the subnode to be decoded. Specifically, the preset number can be set according to actual conditions, for example, it can be 12, 15, etc.

[0230] Exemplarily, the number of occupied places may be compared with a preset threshold of the number of occupied places, and the local sparse information of the child node to be decoded may be determined according to the comparison result.

[0231] Exemplarily, if the child node to be decoded is adjacent to 12 adjacent nodes, the adjacent nodes have been decoded, so the placeholder information (whether it is occupied by a point) can be directly obtained. Further, the number of placeholders of these 12 adjacent nodes can be calculated. For example, if the placeholder information of these 12 adjacent nodes is 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, respectively, then the number of placeholders is 1+0+0+1+0+1+0+1+0+1+0+0=5.

[0232] Furthermore, if the placeholder threshold is 1, the calculated placeholder number 5 is compared with the placeholder threshold 1. Since 5 is greater than 1, the comparison result is "greater than the threshold", so it can be determined that the local sparse information of the sub-node to be decoded is non-sparse. Non-sparse local sparse information means that the spatial area around the sub-node to be decoded is relatively dense, so a more efficient decoding strategy can be selected during decoding to reduce redundant information.

[0233] Exemplarily, if the first placeholder information represents a large number of placeholders of adjacent nodes, the local sparse information of the subnode to be decoded is non-sparse; if the first placeholder information represents a small number of placeholders of adjacent nodes, the local sparse information of the subnode to be decoded is sparse. Specifically, it can be determined by setting a placeholder threshold or a placeholder ratio. For example, the placeholder threshold can be set to 1. When the first placeholder information represents that the number of placeholders of adjacent nodes is greater than 1, the local sparse information of the subnode to be decoded is determined to be non-sparse, otherwise it is sparse.

[0234] Through the above method, the sub-node to be decoded and multiple decoded adjacent nodes located in front of the sub-node to be decoded can be obtained, and by utilizing the first placeholder information of the decoded adjacent nodes, further by setting a placeholder threshold and comparing the placeholder number with the placeholder threshold, the judgment of local sparse information can be made clearer and more operational, thereby improving the efficiency and accuracy of decoding.

[0235] In some embodiments, in order to facilitate the subsequent use of different decoding strategies according to different predicted placeholder information, the placeholder information of the sub-node to be decoded can be predicted by the second placeholder information of the reference sub-node of at least one reference frame located in the front sequence of the frame to be decoded, so as to improve the decoding efficiency and accuracy. For example, in the enumeration of the second context probability model corresponding to the sub-node to be decoded, the "predicted placeholder information of the sub-node to be decoded is predicted according to the predicted decoding state" mentioned in (E.2) and (E.3) includes:

[0236] (H1) obtaining a frame to be decoded where the subnode to be decoded is located, and determining at least one reference frame from decoded adjacent frames in a decoding order;

[0237] (H2) determining, from the reference frame, a reference subnode having the same subnode spatial position and subnode size as the subnode to be decoded;

[0238] (H3) Acquire reference placeholder information of the reference child node as second placeholder information, and use the second placeholder information as predicted placeholder information of the child node to be decoded.

[0239] The reference frame may be an adjacent frame that is in the previous order of the frame to be decoded according to the decoding order. The reference frame may be used to predict the occupancy state of the sub-node to be decoded in the current frame to be decoded.

[0240] The subnode spatial position may be the corresponding spatial position of the current subnode to be decoded in the reference frame. For example, if the position of the subnode to be decoded in the frame to be decoded is the upper left corner, then the position in the reference frame is also the position corresponding to the upper left corner.

[0241] The same subnode size indicates that the two nodes have the same occupied space. For example, if the reference subnode and the to-be-decoded subnode have the same subnode size, then the reference subnode and the to-be-decoded subnode have the same occupied space.

[0242] The reference sub-node may be a node having the highest similarity with the current sub-node to be decoded in the reference frame.

[0243] The second placeholder information may be placeholder information of a reference sub-node having the highest similarity with the current sub-node to be decoded in the reference frame.

[0244] It is understandable that the inter-frame decoding state may be the state in which the inter-frame prediction decoding is enabled for the current frame to be decoded. Since there is no placeholder information for the sub-node to be decoded when the prediction decoding state is the intra-frame decoding state, it is only necessary to predict the placeholder state of the sub-node to be decoded in the inter-frame decoding state.

[0245] Specifically, since the movement of objects is continuous between consecutive frames, this means that the sub-node to be decoded in the current frame to be decoded usually also has a corresponding position and state in the previous frame (reference frame). Therefore, the predicted placeholder information of the sub-node to be decoded can be predicted through the second placeholder information of the reference sub-node of the reference frame.

[0246] In some implementations, the reference subnode may be determined based on the position. In this case, the reference subnode may be a node having the same position and the same subnode size as the current subnode to be decoded in the reference frame, and the second placeholder information may be placeholder information of the reference subnode having the same position as the current subnode to be decoded in the reference frame.

[0247] In some embodiments, it may also be assumed that the subnode to be decoded is located in frame F1. In order to predict the placeholder information of the subnode to be decoded in frame F1, a reference frame located in front of frame F1 may be selected. For example, frame F0 may be selected as the reference frame. Furthermore, in reference frame F0, a node with the highest similarity to the subnode to be decoded in frame F1 may be determined as a reference subnode, and second placeholder information of the reference subnode may be obtained, and the second placeholder information may be used as the predicted placeholder information of the subnode to be decoded. For example, if the second placeholder information is 0, then the predicted placeholder information is also 0.

[0248] Exemplarily, the number of reference frames selected can be determined according to actual conditions. For example, the following arrangement can be obtained according to the order of decoding: adjacent frame 1, adjacent frame 2, adjacent frame 3, adjacent frame 4, frame 1 to be decoded, adjacent frame 5, adjacent frame 6. It can be determined that the adjacent frames located in front of the frame to be decoded are adjacent frame 1, adjacent frame 2, adjacent frame 3, and adjacent frame 4. If the number of selected reference frames is 1, the reference frame can be determined according to the principle of nearest selection, and specifically, adjacent frame 4 can be determined as the reference frame. Similarly, if the number of selected reference frames is 2, adjacent frames 3 and adjacent frames 4 can be determined as reference frames.

[0249] Furthermore, if there are multiple reference frames selected, but the second placeholder information of the reference subnodes corresponding to different reference frames is different, then the second placeholder information with the highest frequency of occurrence can be selected as the predicted placeholder information. For example, if there are 3 reference frames selected, and the corresponding second placeholder information is 1, 1, and 0, then 1 can be used as the predicted placeholder information.

[0250] By predicting the predicted placeholder information of the subnode to be decoded by using the second placeholder information of the reference subnode of the reference frame, the state of the current subnode to be decoded can be predicted and decoded more accurately, thereby improving decoding efficiency and accuracy.

[0251] Step 204 : Decode the target decoding data of the sub-node to be decoded by using the second context probability model to obtain the placeholder information of the sub-node to be decoded.

[0252] In some implementations, in the geometric decoding framework of point cloud data, decoding the subnode to be decoded mainly includes decoding the placeholder information of the subnode to be decoded, also known as the placeholder code. Decoding the placeholder information of the subnode to be decoded can achieve data compression and improve storage and transmission efficiency.

[0253] The target decoding data may be data obtained by compressing and decoding the placeholder information of the to-be-decoded sub-node.

[0254] Specifically, the sub-node occupancy probability of the placeholder information of the sub-node to be decoded can be determined based on the context state tree where the sub-node to be decoded is located; then, the specific second context probability model is determined from the second context probability model group through the sub-node occupancy probability and the second classification information, and the placeholder information is decoded according to the second context probability model to obtain the target decoding data of the placeholder information.

[0255] For example, the context state tree category corresponding to the sub-node to be decoded can be determined as an inter-frame non-sparse state based on the predicted decoding state and local sparse information, and then the second context probability model group A is determined based on the context state tree category and the node placeholder information (such as the node placeholder information is occupied), and the second context probability model group A includes the second context probability model a1, the second context probability model a2, the second context probability model a3 and the second context probability model a4. Furthermore, if it is determined that the sub-node occupancy probability of the sub-node to be decoded is high, the second context probability model a1 can be determined as the second context probability model for finally decoding the placeholder information of the sub-node to be decoded based on the sub-node occupancy probability, and the placeholder information of the sub-node to be decoded is decoded through the second context probability model a1.

[0256] The subnode occupancy probability may be the probability of the occupancy state of the subnode to be decoded. If most of the neighboring nodes of the subnode to be decoded are occupied by points, the occupancy probability of the subnode to be decoded may be higher; if most of the neighboring nodes are not occupied by points, the occupancy probability of the subnode to be decoded may be lower.

[0257] Exemplarily, it is possible to determine whether each adjacent node has an occupied or unoccupied state based on the context state tree where the child node to be decoded is located, and combine the occupied states of all adjacent nodes to form a binary number, and determine the child node occupation probability of the child node to be decoded based on the distribution information of the binary number. For example, the context state tree can be represented as a binary number 101101.

[0258] By decoding the placeholder information of the to-be-decoded subnode through the second context probability model, data compression can be achieved, storage and transmission efficiency can be improved, data processing speed can be accelerated, data representation can be simplified, and the accuracy of data recovery can be improved.

[0259] The embodiment of the present application obtains the target decoding data of the sub-node to be decoded in the point cloud data; obtains the predicted decoding state of the sub-node to be decoded; wherein the predicted decoding state includes the inter-frame decoding state and the intra-frame decoding state; based on the predicted decoding state, determines the first context probability model corresponding to the sub-node to be decoded; decodes the placeholder information of the sub-node to be decoded through the first context probability model to obtain the target decoding data of the placeholder information. In this way, the corresponding first context probability model can be determined according to different predicted decoding states to clarify the division boundary of the first context probability model corresponding to different information, so that the context probability model can effectively distinguish the subtle differences in the decoding states between adjacent frames and perform decoding, thereby improving the accuracy of decoding the sub-node to be decoded of the point cloud data.

[0260] Please refer to Figure 4 and Figure 5 , Figure 4 The overall process of encoding the placeholder information of the sub-node to be encoded and obtaining the target encoding data of the sub-node to be encoded is as follows: Figure 5 The overall process of decoding the target coded data of the to-be-coded sub-node and obtaining the target placeholder information corresponding to the target coded data.

[0261] Please refer to Figure 4 For example, in the encoding process, the context state tree has the following categories: intra-frame non-sparse context state tree, intra-frame sparse context state tree, inter-frame non-sparse context state tree, inter-frame sparse context state tree, etc. In actual application, the context state tree category can be determined based on any one of local sparse information, predicted placeholder information, and predicted decoding state.

[0262] Specifically, the context state tree category can be determined according to the first classification information, and the first context probability model group can be determined according to the context state tree category and the second classification information. Afterwards, based on the context state tree corresponding to the sub-node to be encoded, the sub-node occupancy probability corresponding to the sub-node to be encoded is determined, and finally, according to the sub-node occupancy probability, the context probability model is determined from the first context probability model group, such as the first context probability model 1. The first classification information and the second classification information are determined based on the predicted coding state, predicted placeholder information and local sparse information of the sub-node to be encoded.

[0263] Please refer to Figure 5For example, in the decoding process, the context state tree has the following categories: intra-frame non-sparse context state tree, intra-frame sparse context state tree, inter-frame non-sparse context state tree, inter-frame sparse context state tree, etc. In actual application, the context state tree category can be determined based on any one of local sparse information, predicted placeholder information, and predicted decoding state.

[0264] Specifically, the context state tree category can be determined according to the first classification information, and the second context probability model group can be determined according to the context state tree category and the second classification information. Afterwards, based on the context state tree corresponding to the sub-node to be decoded, the sub-node occupancy probability corresponding to the sub-node to be decoded is determined, and finally, according to the sub-node occupancy probability, a context probability model is determined from the second context probability model group, such as the second context probability model 1. The first classification information and the second classification information are determined based on the predicted decoding state, predicted placeholder information and local sparse information of the sub-node to be decoded.

[0265] See also Figure 6 The embodiment of the present application further provides a point cloud data encoding device, which can implement the above-mentioned point cloud data encoding method, and the point cloud data encoding device includes:

[0266] A first acquisition module 61 is used to acquire a sub-node to be encoded in the point cloud data;

[0267] The second acquisition module 62 is used to acquire the prediction coding state of the to-be-coded sub-node; wherein the prediction coding state includes the inter-frame coding state and the intra-frame coding state;

[0268] A first determination module 63, used to determine a first context probability model corresponding to the sub-node to be encoded based on the predicted coding state;

[0269] The encoding module 64 is used to encode the placeholder information of the to-be-encoded sub-node by using the first context probability model to obtain target encoding data of the placeholder information.

[0270] The specific implementation of the point cloud data encoding device is basically the same as the specific implementation of the point cloud data encoding method described above, and will not be repeated here. On the premise of meeting the requirements of the embodiment of the present application, the point cloud data encoding device can also be provided with other functional modules to implement the point cloud data encoding method in the above embodiment.

[0271] See also Figure 7 The embodiment of the present application further provides a point cloud data decoding device, which can implement the above-mentioned point cloud data decoding method, and the point cloud data decoding device includes:

[0272] The third acquisition module 71 is used to acquire target decoding data of the sub-node to be decoded in the point cloud data;

[0273] The fourth acquisition module 72 is used to acquire the predicted decoding state of the sub-node to be decoded; wherein the predicted decoding state includes the inter-frame decoding state and the intra-frame decoding state;

[0274] A second determination module 73, configured to determine a first context probability model corresponding to the sub-node to be decoded based on the predicted decoding state;

[0275] The decoding module 74 is used to decode the target decoding data of the sub-node to be decoded by using the first context probability model to obtain the placeholder information of the sub-node to be decoded.

[0276] The specific implementation of the point cloud data decoding device is basically the same as the specific implementation of the point cloud data decoding method described above, and will not be repeated here. On the premise of meeting the requirements of the embodiment of the present application, the point cloud data decoding device can also be provided with other functional modules to implement the point cloud data decoding method in the above embodiment.

[0277] The embodiment of the present application also provides a computer device, the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned point cloud data encoding and decoding method when executing the computer program. The computer device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0278] See also Figure 8 , Figure 8 The hardware structure of a computer device according to another embodiment is shown, and the computer device includes:

[0279] The processor 81 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0280] The memory 82 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 82 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 82, and the processor 81 calls and executes the point cloud data encoding and decoding method of the embodiment of this application;

[0281] Input / output interface 83, used to implement information input and output;

[0282] Communication interface 84, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);

[0283] A bus 85 that transmits information between the various components of the device (e.g., the processor 81, the memory 82, the input / output interface 83, and the communication interface 84);

[0284] The processor 81 , the memory 82 , the input / output interface 83 and the communication interface 84 are connected to each other in communication within the device via a bus 85 .

[0285] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned point cloud data encoding and decoding method is implemented.

[0286] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0287] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0288] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0289] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0290] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0291] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units 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.

[0292] It should be understood that in the present application, "at least one (item)" and "several" refer to one or more, and "plurality" refers to 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 previous and following associated objects 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.

[0293] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0294] The units described above 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.

[0295] 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. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0296] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0297] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A point cloud data encoding method, It is characterized in that The method comprises: Get the sub-nodes to be encoded in the point cloud data; Acquire the predicted coding state of the to-be-coded subnode; wherein the predicted coding state includes an inter-frame coding state and an intra-frame coding state; Based on the predicted coding state, determining a first context probability model corresponding to the sub-node to be encoded; The placeholder information of the to-be-encoded child node is encoded using the first context probability model to obtain target encoding data of the placeholder information.

2. The point cloud data encoding method according to claim 1, It is characterized in that The determining, based on the predicted coding state, a first context probability model corresponding to the to-be-encoded subnode includes: Acquire local sparse information of the to-be-encoded subnode; determine a corresponding first context probability model from a first context probability model group based on the predicted coding state and the local sparse information; Or, according to the predicted coding state, predict the predicted placeholder information of the subnode to be encoded; based on the predicted coding state and the predicted placeholder information, determine the corresponding first context probability model from the first context probability model group: Or, obtain local sparse information of the sub-node to be encoded; predict the predicted placeholder information of the sub-node to be encoded according to the predicted coding state; determine the corresponding first context probability model from the first context probability model group based on the predicted coding state, the local sparse information and at least two parameters in the predicted placeholder information.

3. The point cloud data encoding method according to claim 2, It is characterized in that The method further comprises: Determine at least one of the predicted coding state and the local sparse information as first classification information, and use other information other than the first classification information in the predicted coding state and the local sparse information as second classification information; or, determine at least one of the predicted coding state and the predicted placeholder information as first classification information, and use other information other than the first classification information in the predicted coding state and the predicted placeholder information as second classification information; or, determine at least one of the predicted coding state, the local sparse information, and the predicted placeholder information as first classification information, and use other information other than the first classification information in the predicted coding state, the local sparse information, and the predicted placeholder information as second classification information; Determine, according to the first classification information, a context state tree category of the context state tree corresponding to the sub-node to be encoded; The context state tree category and the second classification information are mapped in the first context probability model group to determine a corresponding first context probability model.

4. The point cloud data encoding method according to claim 2, It is characterized in that The obtaining of the local sparse information of the to-be-encoded sub-node includes: Determine, in coding order, a plurality of encoded adjacent nodes that are located in front of the subnode to be encoded; Determine the number of occupancy of the plurality of encoded adjacent nodes based on the first occupancy information of the plurality of encoded adjacent nodes; The occupied number is compared with a preset occupied number threshold to determine the local sparse information of the sub-node to be encoded.

5. The point cloud data encoding method according to claim 2, It is characterized in that The predicting and obtaining the predicted placeholder information of the to-be-encoded subnode according to the predicted encoding state includes: Acquire the frame to be encoded where the sub-node to be encoded is located, and determine at least one reference frame from the encoded adjacent frames according to the encoding order; Determine, from the reference frame, a reference subnode having the same subnode spatial position and the same subnode size as the subnode to be encoded; Reference placeholder information of the reference subnode is obtained as second placeholder information, and the second placeholder information is used as predicted placeholder information of the subnode to be encoded.

6. A point cloud data decoding method, It is characterized in that The method comprises: Obtain target decoding data of the subnode to be decoded in the point cloud data; Acquire the predicted decoding state of the to-be-decoded subnode; wherein the predicted decoding state includes an inter-frame decoding state and an intra-frame decoding state; Based on the predicted decoding state, determining a second context probability model corresponding to the subnode to be decoded; The target decoding data of the sub-node to be decoded is decoded by using the second context probability model to obtain the placeholder information of the sub-node to be decoded.

7. The point cloud data decoding method according to claim 6, It is characterized in that The determining, based on the predicted decoding state, a second context probability model corresponding to the sub-node to be decoded includes: Acquire the local sparse information of the subnode to be decoded; determine the corresponding second context probability model from the second context probability model group based on the predicted decoding state and the local sparse information; Or, according to the predicted decoding state, predict the predicted placeholder information of the subnode to be decoded; based on the predicted decoding state and the predicted placeholder information, determine the corresponding second context probability model from the second context probability model group: Or, obtain local sparse information of the sub-node to be decoded; predict the predicted placeholder information of the sub-node to be decoded according to the predicted decoding state; determine the corresponding second context probability model from the second context probability model group based on the predicted decoding state, the local sparse information and at least two parameters in the predicted placeholder information.

8. The point cloud data decoding method according to claim 7, It is characterized in that The method further comprises: Determine at least one of the predicted decoding state and the local sparse information as first classification information, and use other information in the predicted decoding state and the local sparse information other than the first classification information as second classification information; or, determine at least one of the predicted decoding state and the predicted placeholder information as first classification information, and use other information in the predicted decoding state and the predicted placeholder information other than the first classification information as second classification information; or, determine at least one of the predicted decoding state, the local sparse information, and the predicted placeholder information as first classification information, and use other information in the predicted decoding state, the local sparse information, and the predicted placeholder information other than the first classification information as second classification information; Determine, according to the first classification information, a context state tree category of the context state tree corresponding to the sub-node to be decoded; The context state tree category and the second classification information are mapped in the second context probability model group to determine a corresponding second context probability model.

9. The point cloud data decoding method according to claim 7, It is characterized in that The obtaining of the local sparse information of the to-be-decoded subnode includes: Determine, in decoding order, a plurality of decoded adjacent nodes that are located in front of the child node to be decoded; Determine the number of occupancy places of the plurality of decoded adjacent nodes based on the first occupancy place information of the plurality of decoded adjacent nodes; The occupied number is compared with a preset occupied number threshold to determine the local sparse information of the sub-node to be decoded.

10. The point cloud data decoding method according to claim 7, It is characterized in that The predicting, according to the predicted decoding state, to obtain the predicted placeholder information of the to-be-decoded subnode includes: Acquire the frame to be decoded where the subnode to be decoded is located, and determine at least one reference frame from decoded adjacent frames in a decoding order; Determine, from the reference frame, a reference subnode having the same subnode spatial position and the same subnode size as the subnode to be decoded; Reference placeholder information of the reference subnode is acquired as second placeholder information, and the second placeholder information is used as predicted placeholder information of the subnode to be decoded.

11. A point cloud data encoding device, It is characterized in that The device comprises: The first acquisition module is used to acquire the sub-nodes to be encoded in the point cloud data; A second acquisition module, used to acquire the predicted coding state of the to-be-coded sub-node; wherein the predicted coding state includes an inter-frame coding state and an intra-frame coding state; A first determination module, used to determine a first context probability model corresponding to the sub-node to be encoded based on the predicted coding state; An encoding module is used to encode the placeholder information of the to-be-encoded sub-node by using the first context probability model to obtain target encoding data of the placeholder information.

12. A point cloud data decoding device, It is characterized in that The device comprises: The third acquisition module is used to acquire target decoding data of the sub-node to be decoded in the point cloud data; A fourth acquisition module, used to acquire the predicted decoding state of the to-be-decoded subnode; wherein the predicted decoding state includes an inter-frame decoding state and an intra-frame decoding state; A second determination module, used to determine a second context probability model corresponding to the sub-node to be decoded based on the predicted decoding state; A decoding module is used to decode the target decoding data of the sub-node to be decoded through the second context probability model to obtain the placeholder information of the sub-node to be decoded.

13. A computer device, It is characterized in that The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the point cloud data encoding method described in any one of claims 1 to 5, or the point cloud data decoding method described in any one of claims 6 to 10 when executing the computer program.

14. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, it implements the point cloud data encoding method described in any one of claims 1 to 5, or the point cloud data decoding method described in any one of claims 6 to 10.

Citation Information

Patent Citations

  • Point cloud geometrical information inter-frame encoding and decoding method

    CN112565764A

  • Point cloud geometrical information encoding and decoding method

    CN112565795A

  • Point cloud geometric inter-frame prediction method based on block motion estimation and motion compensation

    CN114095735A

  • Coding processing method and decoding processing method for geometric information of point cloud and related equipment

    CN115471627A

  • Three-dimensional data encoding method, three-dimensional data decoding method, three-dimensional data encoding device, and three-dimensional data decoding device

    CN117157672A

Cited By

  • Inter-frame prediction-based encoding method and apparatus and inter-frame prediction-based decoding method and apparatus, and chip and storage medium

    WO2026011579A1