Point cloud data reconstruction method, device, equipment and storage medium

By downsampling point cloud data and training pattern prediction models, using neighbor occupancy information and upsampling patterns, the problem of information loss in point cloud reconstruction is solved, data accuracy and reconstruction quality are improved, and the risk of visual distortion is reduced. .

CN118429548BActive Publication Date: 2024-09-10PENG CHENG LAB
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the process of point cloud data reconstruction in the existing technology, downsampling leads to information loss, poor quality of reconstructed data, and prone to visual distortion. Especially when resources are limited, the size of the lookup table is limited, making it difficult to restore the detailed information of the original point cloud.

Method used

By downsampling the point cloud to be processed, the downsampled point cloud is obtained, the sampling mode pair of each sample point is obtained, including neighbor occupancy information and upsampling mode, the mode prediction model is trained, and the upsampling mode is predicted to reconstruct the target point cloud. Reduce downsampling distortion.

Benefits of technology

It improves the accuracy of point cloud reconstruction data, reduces the risk of visual distortion, enhances the quality of reconstructed data, reduces or even removes downsampling distortion, and improves the accuracy of point cloud reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118429548B
    Figure CN118429548B
Patent Text Reader

Abstract

The embodiments of the present application provide a point cloud data reconstruction method, device, equipment and storage medium, which relate to the field of data processing technology. The method downsamples the point cloud to be processed to obtain a re-downsampled point cloud, obtains the sampling pattern of each sample point in the re-downsampled point cloud to train a pattern prediction model, obtains the occupancy information to be processed corresponding to the point cloud to be processed, inputs the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction to obtain an upsampling prediction pattern, and reconstructs the point cloud to be processed based on the upsampling prediction pattern to obtain a target point cloud. The pattern prediction model is trained using the neighbor occupancy information and upsampling pattern in the downsampling process of the point cloud to be processed. The pattern prediction model is used to predict the upsampling pattern of the point cloud to be processed. When the point cloud is reconstructed in combination with the upsampling pattern, the purpose of reducing or even removing the downsampling distortion is achieved, thereby enhancing the quality of the point cloud reconstruction data and improving the accuracy of the reconstructed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to point cloud data reconstruction methods, devices, equipment and storage media. Background Art

[0002] Point cloud is a collection of points in three-dimensional space without a specific connection relationship. It is usually obtained by 3D scanning equipment and represents the surface of a solid with the coordinates of each point. Point cloud usually contains a large number of points, which has many difficulties in data storage and transmission.

[0003] The related art uses point cloud compression to reduce the number of points in the original point cloud that needs to be stored and transmitted, and upsamples the compressed point cloud data at the decoding end to restore the original point cloud. The related art uses a pre-built lookup table to upsample the point cloud data. When resources are limited, the size of the lookup table is limited, and it is difficult to obtain more information during the upsampling process, resulting in the loss of some detail information during the point cloud reconstruction process, poor quality of the reconstructed data, and easy visual distortion. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a point cloud data reconstruction method, device, equipment and storage medium to improve the data accuracy of point cloud reconstruction and reduce the risk of visual distortion.

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

[0006] Downsampling the point cloud to be processed to obtain a downsampled point cloud, and obtaining a sampling mode pair for each sample point in the downsampled point cloud, wherein the sampling mode pair includes: neighbor occupancy information and an upsampling mode, wherein the upsampling mode is used to indicate a mapping relationship between each point in the downsampled point cloud and each point in the point cloud to be processed;

[0007] Training an initial pattern prediction model based on a plurality of the sampling patterns to obtain the trained pattern prediction model;

[0008] Obtaining the occupancy information to be processed corresponding to the point cloud to be processed, inputting the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction, and obtaining the upsampling prediction pattern corresponding to the point cloud to be processed;

[0009] The point cloud to be processed is reconstructed based on the upsampling prediction mode to obtain a target point cloud.

[0010] In some embodiments, obtaining neighbor occupancy information of each sample point in the re-downsampled point cloud includes:

[0011] Acquire three-dimensional coordinate data of each sample point in the downsampled point cloud;

[0012] Selecting a coordinate value corresponding to at least one target coordinate axis from the three-dimensional coordinate data;

[0013] The sample points are taken as first calculation points one by one, a preset number of points with coordinate values ​​within a preset distance threshold are selected as a neighbor set of the calculation point, and corresponding neighbor placeholder information is obtained according to the neighbor set.

[0014] In some embodiments, obtaining corresponding neighbor placeholder information according to the neighbor set includes:

[0015] Selecting points in the neighbor set one by one as second calculation points;

[0016] When the second calculated point is located in the re-downsampled point cloud, the placeholder indicator of the second calculated point is one, otherwise it is zero;

[0017] The neighbor placeholder information is obtained according to the placeholder indicator of each second calculation point.

[0018] In some embodiments, reconstructing the point cloud to be processed based on the upsampling prediction mode to obtain a target point cloud includes:

[0019] Obtaining an upsampling mode sequence value corresponding to each to-be-processed point in the to-be-processed point cloud in the upsampling prediction mode;

[0020] Upsampling is performed according to the upsampling mode sequence value and the point to be processed to obtain a corresponding predicted sub-point cloud;

[0021] The target point cloud is obtained based on at least one corresponding predicted sub-point cloud.

[0022] In some embodiments, performing upsampling according to the upsampling mode sequence value and the point to be processed to obtain a corresponding predicted sub-point cloud includes:

[0023] Obtaining a point cloud computing formula corresponding to each mode value in the up-sampled mode sequence value;

[0024] Selecting the point cloud computing formula with the mode value of 1, substituting the three-dimensional coordinate data of the point to be processed into the point cloud computing formula for calculation to obtain a reconstructed point;

[0025] The predicted sub-point cloud corresponding to the sample point is obtained according to the reconstructed point.

[0026] In some embodiments, before obtaining the mode calculation formula corresponding to each mode value in the up-sampling mode sequence value, the method further includes:

[0027] Generate corresponding point cloud translation rules for eight different downsampling methods;

[0028] The point cloud computing formula is generated according to the point cloud translation rule.

[0029] In some embodiments, obtaining the target point cloud based on the corresponding at least one predicted sub-point cloud includes:

[0030] Obtaining a first predicted point cloud based on the corresponding at least one predicted sub-point cloud;

[0031] If the scale of the first predicted point cloud is inconsistent with the scale of the target point cloud, an upsampling mode prediction process of the mode prediction model is performed once, an updated upsampling mode of the first predicted point cloud is obtained, and the updated upsampling mode is used to reconstruct the point cloud of the first predicted point cloud to obtain a second predicted point cloud;

[0032] If the scale of the second predicted point cloud is consistent with the scale of the target point cloud, the second predicted point cloud is used as the target point cloud; otherwise, the second predicted point cloud is scaled up to obtain the target point cloud.

[0033] In some embodiments, the pattern prediction model is a multi-layer perceptron, which includes an input layer, a hidden layer, and an output layer in sequence. The training of the initial pattern prediction model based on the plurality of sampling patterns to obtain the trained pattern prediction model includes:

[0034] Obtaining a training sample based on the sampling pattern pair corresponding to each of the sample points;

[0035] Inputting the neighbor occupancy data into the mode prediction model, performing data prediction via the input layer, the hidden layer and the output layer, and obtaining a predicted upsampling mode;

[0036] A loss value is calculated based on the predicted upsampling mode and the upsampling mode, and a model weight of the mode prediction model is adjusted according to the loss value until a trained mode prediction model is obtained.

[0037] In some embodiments, obtaining a training sample based on the sampling pattern pair corresponding to each sample point includes:

[0038] Down-sampling the point cloud to be processed according to a plurality of different down-sampling methods to obtain a plurality of sampled point cloud data;

[0039] Acquire a sampling pattern pair corresponding to the sampling point cloud data as an enhancement pattern pair;

[0040] The sampling pattern pair and the enhancement pattern pair are used as the training samples.

[0041] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a point cloud data reconstruction device, comprising:

[0042] Downsampling module: used to downsample the point cloud to be processed to obtain a further downsampled point cloud, and obtain a sampling mode pair for each sample point in the further downsampled point cloud, wherein the sampling mode pair includes: neighbor occupancy information and an upsampling mode, wherein the upsampling mode is used to indicate a mapping relationship between each point in the further downsampled point cloud and each point in the point cloud to be processed;

[0043] Training module: used for training an initial pattern prediction model based on a plurality of sampling patterns to obtain the trained pattern prediction model;

[0044] Prediction module: used for obtaining the occupancy information to be processed corresponding to the point cloud to be processed, inputting the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction, and obtaining the upsampling prediction pattern corresponding to the point cloud to be processed;

[0045] Upsampling module: used to reconstruct the point cloud to be processed based on the upsampling prediction mode to obtain the target point cloud.

[0046] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0047] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a storage medium, which is a storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0048] The point cloud data reconstruction method, device, equipment and storage medium proposed in the embodiments of the present application obtain a re-downsampled point cloud by downsampling the point cloud to be processed, and obtain a sampling pattern pair for each sample point in the re-downsampled point cloud, the sampling pattern pair including: neighbor occupancy information and upsampling pattern. Then, the initial pattern prediction model is trained based on multiple sampling pattern pairs to obtain a trained pattern prediction model, and then the occupancy information to be processed corresponding to the point cloud to be processed is obtained, and the occupancy information to be processed is input into the pattern prediction model for upsampling pattern prediction to obtain the upsampling prediction pattern corresponding to the point cloud to be processed. Finally, the point cloud to be processed is reconstructed based on the upsampling prediction pattern to obtain the target point cloud. In the embodiments of the present application, the neighbor occupancy information and upsampling pattern in the downsampling process of the point cloud to be processed are used to train a pattern prediction model suitable for the point cloud to be processed. Then, this pattern prediction model is used to predict the upsampling pattern of the point cloud to be processed. When reconstructing point clouds, the upsampling mode is combined to simulate the target point cloud to obtain the downsampling process of the point cloud to be processed, so as to reduce or even remove the downsampling distortion, thereby enhancing the quality of point cloud reconstruction data and improving the accuracy of reconstructed data. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a schematic diagram of point cloud reconstruction provided in the related technology.

[0050] Figure 2 It is a flowchart of the point cloud data reconstruction method provided in an embodiment of the present application.

[0051] Figure 3 This is a flowchart of obtaining neighbor occupancy information of each sample point in a downsampled point cloud provided by an embodiment of the present application.

[0052] Figure 4 This is a flowchart of obtaining corresponding neighbor placeholder information according to a neighbor set provided in an embodiment of the present application.

[0053] Figure 5 It is a schematic diagram of the pattern prediction model provided in the embodiment of the present application.

[0054] Figure 6 It is a flowchart of an embodiment of the present application for training an initial pattern prediction model based on multiple sampling patterns to obtain a trained pattern prediction model.

[0055] Figure 7 It is a schematic diagram of the training results provided in the embodiment of the present application.

[0056] Figure 8 It is an overall flow chart of the point cloud data reconstruction method provided in an embodiment of the present application.

[0057] Fig. 9This is a structural block diagram of a point cloud data reconstruction device provided in yet another embodiment of the present application.

[0058] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0059] 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.

[0060] It should be noted that although the functional modules are divided in the device schematic 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.

[0061] 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.

[0062] In recent years, with the widespread use of 3D sensors (such as 3D scanners, LiDARs, and depth cameras, etc.), it has become more convenient to obtain 3D data. These data contain rich geometric information (such as shape, size, and position) and related attributes (such as color and reflectivity, etc.). Compared with 2D data, 3D data can better help machines understand the real world environment and provide people with an immersive visual experience. Point cloud is one of the common formats for representing 3D data. It is a collection of points in 3D space without a specific connection relationship. Each point has spatial coordinates and attribute information such as color and reflectivity. The coordinates of each point are used to represent the surface of the entity.

[0063] Point clouds usually contain a large number of points, which poses many difficulties in data storage and transmission. The related art uses point cloud compression to reduce the number of points in the original point cloud that needs to be stored and transmitted, and upsamples the compressed point cloud data at the decoding end to restore the original point cloud. When reconstructing point clouds, the related art uses three methods. One is to directly enlarge the scale, which has a low reconstruction accuracy. Figure 1 , Figure 1 It is a schematic diagram of point cloud reconstruction provided in the related technology. Figure 1On the left is the voxelized representation of the subset, where the grid-filled squares and white-filled squares correspond to points and no points, respectively; in the middle are the points obtained after 2x downsampling; on the right is the subset reconstructed after scale enlargement and contains only one point, where the black-filled squares represent newly added erroneous points, and the white-filled squares with black edges represent points missed by the reconstruction. Figure 1 Four different situations are shown: situation (a), situation (b), situation (c) and situation (d). In situation (a), the point cloud after downsampling contains only one point in the upper right corner, and after scaling up, it is basically the same as the original point cloud. In situation (b), the point cloud after downsampling contains only one point that is not in the upper right corner, and after scaling up, there are new points and missing points. In situation (c), the point cloud after downsampling contains multiple points, including the point in the upper right corner, and after scaling up, there are missing points. In situation (d), the point cloud after downsampling contains multiple points, but does not include the point in the upper right corner, and after scaling up, there are new points and missing points. It can be seen that in the related art, only situation (a) will not introduce distortion and completely restore the information of the original point cloud when scaling is directly performed. Other situations will introduce distortion due to the addition of erroneous points or the omission of correct points, and cannot be completely restored.

[0064] Secondly, considering that downsampling is performed during the compression of point clouds, which will introduce the problem of missing information, a pre-constructed lookup table is used to reduce the defects caused by downsampling, and the point cloud data is upsampled based on the adjacent voxel information provided in the lookup table. However, the overhead of the constructed lookup table grows exponentially with the number of adjacent voxels considered. When resources are limited, the size of the lookup table is limited, which limits the maximum number of adjacent voxels that can be considered, making it difficult for the upsampling process to obtain more information, causing the point cloud reconstruction process to lose some detail information, the quality of the reconstructed data is poor, and visual distortion is prone to occur. The third is to use network models for point cloud reconstruction, but these network models are not lightweight models. They are trained on large point cloud datasets, have high computational costs, and cannot be adapted according to the content of the sample point elements, so the accuracy of the point cloud reconstruction results is limited.

[0065] Based on this, the embodiments of the present application provide a point cloud data reconstruction method, apparatus, device and storage medium, which utilizes the neighbor occupancy information and upsampling mode in the downsampling process of the point cloud to be processed to train a pattern prediction model suitable for the point cloud to be processed. Then, this pattern prediction model is used to predict the upsampling mode of the point cloud to be processed. When reconstructing the point cloud, the downsampling process of the point cloud to be processed is obtained by simulating the target point cloud in combination with the upsampling mode, so as to reduce or even remove the downsampling distortion, thereby enhancing the quality of the point cloud reconstruction data and improving the accuracy of the reconstructed data.

[0066] The embodiments of the present application provide a point cloud data reconstruction method, apparatus, device and storage medium, which are specifically illustrated by the following embodiments. First, the point cloud data reconstruction method in the embodiments of the present application is described.

[0067] The point cloud data reconstruction method provided in the embodiment of the present application relates to the field of data processing technology. The point cloud data reconstruction method provided in the embodiment of the present application can be applied to a terminal, can be applied to a server, and can also be a computer program running in a terminal or a server. For example, a computer program can be a native program or software module in an operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as a client that supports point cloud data reconstruction, or it can be a small program, that is, a program that only needs to be downloaded to a browser environment to run; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plug-in. Among them, the terminal communicates with the server through a network. The point cloud data reconstruction method can be executed by a terminal or a server, or by a terminal and a server in collaboration.

[0068] In some embodiments, the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, or a smart watch. In addition, the terminal may also be an intelligent vehicle-mounted device. The intelligent vehicle-mounted device applies the point cloud data reconstruction method of this embodiment to provide related services to enhance the driving experience. The server may be an independent server, or it may be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms; it may also be a service node in a blockchain system, and each service node in the blockchain system forms a peer-to-peer (P2P, Peer To Peer, P2P) network. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. The terminal and the server may be connected via Bluetooth, Universal Serial Bus (USB) or network communication connection methods, which are not limited in this embodiment.

[0069] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0070] The point cloud data reconstruction method in the embodiment of the present application is described below.

[0071] Figure 2 is an optional flowchart of the point cloud data reconstruction method provided in an embodiment of the present application. Figure 2 The method may include but is not limited to steps 110 to 140. It can also be understood that this embodiment Figure 2 The order of step 110 to step 140 is not specifically limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0072] Step 110: down-sample the point cloud to be processed to obtain a down-sampled point cloud, and obtain a sampling mode pair for each sample point in the down-sampled point cloud.

[0073] In one embodiment, assuming that the original point cloud Compress the point cloud to obtain the point cloud to be processed The purpose of the embodiment of the present application is to process the point cloud according to Perform point cloud reconstruction to obtain the target point cloud , where the target point cloud With the original point cloud The closer they are, the higher the data accuracy of the point cloud reconstruction is and the lower the possibility of downsampling distortion is.

[0074] In one embodiment, the point cloud to be processed It is expressed as: , which includes N points to be processed, and the three-dimensional coordinates of the i-th point to be processed are . Due to the point cloud to be processed The point cloud has been obtained after downsampling, so the point cloud is processed again Downsample to get a downsampled point cloud .

[0075] In one embodiment, the downsampling is double downsampling, that is, the coordinates of each point to be processed in the point cloud to be processed are divided by 2, and then rounded to the nearest integer to obtain the downsampled points, and then the points are deduplicated to obtain sample points, and these sample points constitute the downsampled point cloud. , expressed as:

[0076]

[0077] in, Indicates the removal of duplicate points, and M indicates the re-sampling of the point cloud The number of sample points in Represents the three-dimensional coordinate data of the j-th sample point.

[0078] For example, the point cloud to be processed is represented as:

[0079] , downsample it twice, and get the downsampled point cloud is {(1,1,1),(1,1,2),(1,2,1)}.

[0080] In one embodiment, the sampling mode pair includes: neighbor occupancy information and an upsampling mode, wherein the upsampling mode is used to indicate a mapping relationship between each point in the downsampled point cloud and each point in the point cloud to be processed. The calculation methods of the neighbor occupancy information and the upsampling mode are respectively introduced below.

[0081] First, the calculation process of neighbor occupancy information is described.

[0082] In one embodiment, referring to Figure 3 , Figure 3 This is a flowchart of obtaining neighbor occupancy information of each sample point in the re-downsampled point cloud provided by an embodiment of the present application, specifically including:

[0083] Step 310: Obtain the three-dimensional coordinate data of each sample point in the downsampled point cloud.

[0084] Among them, the downsampled point cloud The jth sample point in is represented as , the corresponding three-dimensional coordinate data is expressed as: .

[0085] Step 320: Select a coordinate value corresponding to at least one target coordinate axis from the three-dimensional coordinate data.

[0086] In one embodiment, the coordinate axes are the x-axis, the y-axis, and the z-axis, and one or more of them can be randomly selected as the target coordinate axis. The following takes the y-axis as the target coordinate axis as an example for explanation. The corresponding coordinate value is .

[0087] Step 330: taking the sample points one by one as the first calculation points, selecting a preset number of points whose coordinate values ​​are within a preset distance threshold as the neighbor set of the calculation points, and obtaining corresponding neighbor placeholder information according to the neighbor set.

[0088] In one embodiment, for the down-sampled point cloud Each sample point in the calculation needs to calculate the corresponding neighbor occupancy information, and the sample points can be used as the first calculation point for calculation one by one.

[0089] Assume that the jth sample point is the first calculation point. At this time, the preset distance threshold can be set to 1, and the preset number is set to 2. At this time, the neighbor set contains only two points with a relative distance from the y-axis and a relative distance of 1. The neighbor set is expressed as:

[0090]

[0091] in, Represents the neighbor set of the j-th sample point. It can be understood that the above preset distance threshold and preset number can be set according to actual needs.

[0092] Next, the corresponding neighbor occupancy information is obtained according to the neighbor set. Figure 4 , Figure 4 This is a flowchart of obtaining corresponding neighbor placeholder information according to a neighbor set provided by an embodiment of the present application, which specifically includes:

[0093] Step 410: Select points in the neighbor set one by one as second calculation points.

[0094] Step 420: When the second calculation point is located in the downsampled point cloud, the placeholder indicator of the second calculation point is one, otherwise it is zero.

[0095] Step 430: Obtain neighbor placeholder information according to the placeholder indicator of each second calculation point.

[0096] In one embodiment, the neighbor set includes two points, and the two points are respectively used as second calculation points, and the placeholder indicator of the second calculation point is determined according to the following relationship.

[0097]

[0098] in, is an indicator function, whose value is 1 if the event is true, and 0 otherwise. Represents a neighbor set That is, if the second calculated point is the downsampled point cloud The point in is 1, otherwise is 0.

[0099] For example, the above downsampled point cloud is {(1,1,1),(1,1,2),(1,2,1)}, which includes 3 sample points, so j=1, 2, 3. Each sample point has its own corresponding neighbor set, which is expressed as , and Taking the first sample point as an example, its neighbor set is {(1,0,1),(1,2,1)}, so its neighbor occupancy information is expressed as:

[0100]

[0101] According to the above process, the neighbor occupancy information of each sample point is obtained, which is expressed as:

[0102]

[0103] Next, the detailed process of obtaining the upsampling mode of each sample point in the downsampled point cloud according to the embodiment of the present application is described.

[0104] First, downsample the point cloud There are M=3 sample points in the point cloud to be processed. It can be divided into 3 sub-point clouds, each of which includes at least one to-be-processed point and at most 8 to-be-processed points. All the to-be-processed points in the same sub-point cloud correspond to the same sample point after downsampling.

[0105] Sub-point cloud It is expressed as:

[0106]

[0107] For example, the point cloud to be processed is represented as:

[0108] , which can be divided into 3 sub-point clouds , respectively:

[0109] ={(1,1,1),(1,2,1)}

[0110] ={(1,1,4),(1,1,3),(1,2,3),(1,2,4)}

[0111] ={(1,4,1),(1,3,1)}

[0112] For the two points to be processed in sub-point cloud V1, the two-fold downsampling results are (1,1,1). For the four points to be processed in sub-point cloud V2, the two-fold downsampling results are (1,1,2). For the two points to be processed in sub-point cloud V3, the two-fold downsampling results are (1,2,1).

[0113] It can be seen that the point cloud is downsampled , and the point cloud to be processed Sub-point cloud There is a one-to-one or one-to-many mapping relationship between them. In the embodiment of the present application, this mapping relationship is called an upsampling mode. That is, the upsampling mode is used to indicate the mapping relationship between each point in the downsampled point cloud and each point in the point cloud to be processed.

[0114] Since eight situations will occur when the point cloud data is downsampled twice and translation is added, the embodiment of the present application generates corresponding point cloud translation rules for the eight different downsampling methods, and then generates a point cloud computing formula corresponding to each downsampling method based on the point cloud translation rules.

[0115] In one embodiment, the point cloud computing formula is expressed as:

[0116]

[0117] in, Next, query Is it a sub-point cloud? To determine the point Corresponding upsampling mode :

[0118]

[0119] in, is an indicator function whose value is 1 if the event is true and 0 otherwise.

[0120] In one embodiment, these three parameters are integers of 0 or 1, and when they are arranged and combined, 8 arrangements can be obtained, and each arrangement corresponds to a point cloud translation rule.

[0121] when When , the point cloud translation rule is: no translation, and the corresponding point cloud computing formula is:

[0122]

[0123] when When , the point cloud translation rule is: move 1 in the opposite direction along the z-axis. At this time, the corresponding point cloud computing formula is:

[0124]

[0125] when When , the point cloud translation rule is: move 1 in the opposite direction along the y-axis. At this time, the corresponding point cloud computing formula is:

[0126]

[0127] when When , the point cloud translation rule is: first move 1 in the opposite direction of the y-axis, then move 1 in the opposite direction of the z-axis. At this time, the corresponding point cloud computing formula is:

[0128]

[0129] when When , the point cloud translation rule is: move 1 in the opposite direction of the x-axis. At this time, the corresponding point cloud computing formula is:

[0130]

[0131] when When , the point cloud translation rule is: first move 1 in the opposite direction of the x-axis, then move 1 in the opposite direction of the z-axis. At this time, the corresponding point cloud computing formula is:

[0132]

[0133] when When , the point cloud translation rule is: first move 1 in the opposite direction of the x-axis, then move 1 in the opposite direction of the y-axis. At this time, the corresponding point cloud computing formula is:

[0134]

[0135] when When , the point cloud translation rule is: first move 1 in the opposite direction of the x-axis, then move 1 in the opposite direction of the y-axis, and then move 1 in the opposite direction of the z-axis. The corresponding point cloud computing formula is:

[0136]

[0137] Therefore, we can obtain the downsampled point cloud by following the calculation method of the upsampling mode and the point cloud computing formula. The upsampling mode corresponding to each sample point in .

[0138] It can be understood that the upsampling mode is a sequence of 8 values, each value is 0 or 1.

[0139] For example, the first sample point is , and its corresponding upsampling mode is recorded as , first calculate:

[0140]

[0141]

[0142] When j=1, ={(1,1,1),(1,2,1)}, then:

[0143]

[0144]

[0145] It can be seen that only and Located in sub-point cloud Therefore, the upsampling mode is [0,0,0,0,0,1,0,1], and so on. The upsampling pattern of the three sample points is expressed as:

[0146] =[[0,0,0,0,0,1,0,1],[0,0,0,0,1,1,1,1],[0,0,0,0,0,1,0,1]]

[0147] It is understandable that, when downsampling the point cloud to be processed, the point information before downsampling corresponding to each point in the downsampled point cloud can be recorded, and the corresponding upsampling mode can be obtained through the recorded information. .

[0148] After obtaining the neighbor occupancy information and upsampling mode, for each sample point, the corresponding neighbor occupancy information and upsampling mode form a sampling mode pair, and there are M sampling mode pairs in total. For example:

[0149]

[0150] Step 120: Train an initial pattern prediction model based on multiple sampling patterns to obtain a trained pattern prediction model.

[0151] In one embodiment, referring to Figure 5 , Figure 5It is a schematic diagram of the pattern prediction model provided in an embodiment of the present application. The pattern prediction model is a multi-layer perceptron, which includes an input layer, a hidden layer and an output layer in sequence, wherein the pattern prediction model only includes one hidden layer, has a simple structure, and is a lightweight model. The input dimension of the pattern prediction model is the length of the vector, and the output dimension is 8, that is, the occupancy of the eight sub-nodes of the considered point contained in the upsampling pattern, and the number of neurons in the hidden layer is set to a very small positive integer, such as 32. The hidden layer is followed by a nonlinear activation function to provide nonlinear fitting capabilities and high-frequency information of the learning data, and the output layer is followed by another nonlinear activation function to constrain the output value range to [0,1]. Under such a design, in an embodiment of the present application Network parameters It contains only hundreds or thousands of parameters, which is a very lightweight network compared to those networks with millions of parameters.

[0152] When modeling the pattern prediction model, the embodiment of the present application takes into account that the point cloud geometry often has geometric similarities, that is, when the neighbor occupancy of the point is the same, its upsampling mode (or child node occupancy) is often the same. Therefore, using the point information as the input of the pattern prediction model can greatly simplify the model, reduce the complexity of the model, and speed up the calculation.

[0153] In one embodiment, referring to Figure 6 , Figure 6 It is a flowchart of training an initial pattern prediction model based on multiple sampling patterns to obtain a trained pattern prediction model provided by an embodiment of the present application, which specifically includes:

[0154] Step 610: Obtain training samples based on the sampling pattern pair corresponding to each sample point.

[0155] In one embodiment, the sampling pattern pairs are used to expand the data of the point cloud to be processed, specifically: the point cloud to be processed is downsampled according to a plurality of different downsampling methods to obtain a plurality of sampling point cloud data, the sampling pattern pairs corresponding to the sampling point cloud data are obtained as enhanced pattern pairs, and the sampling pattern pairs and the enhanced pattern pairs are used as training samples.

[0156] For example , corresponding to the above eight point cloud translation rules, after translating the point cloud to be processed, down-sampling is performed to obtain eight sets of sampled point cloud data, which are expressed as:

[0157] (0,0,0) is downsampled by 2 times: {(1,1,1),(1,1,2),(1,2,1)};

[0158] The result of downsampling (0,0,1) by two times is: {(1,1,1),(1,1,2),(1,2,1),(1,1,3)};

[0159] The result of downsampling (0,1,0) by two times is: {(1,1,1),(1,2,1),(1,1,2),(1,3,1),(1,2,2)};

[0160] The result of downsampling (1,0,0) by two times is: {(1,1,1),(1,1,2),(1,2,1)};

[0161] The result of downsampling (0,1,1) by a factor of two is:

[0162] {(1,1,1),(1,2,1),(1,1,3),(1,3,1),(1,1,2),(1,2,2),(1,2,3)};

[0163] Downsampling (1,0,1) by two times yields {(1,1,1),(1,1,3),(1,2,1),(1,1,2),(1,2,3)};

[0164] The result of downsampling (1,1,0) by two times is {(1,1,1),(1,2,1),(1,1,2),(1,3,1),(1,2,2)};

[0165] The result of downsampling (1,1,1) by a factor of two is:

[0166] {(1,1,1),(1,2,1),(1,1,3),(1,3,1),(1,1,2),(1,2,2),(1,2,3)}.

[0167] in, (0,1,1) means moving 1 unit along the y-axis and 1 unit along the z-axis. (1,0,0) means moving 1 unit along the x-axis, and so on.

[0168] The enhanced pattern pair corresponding to the sampled point cloud data is obtained in the above manner, wherein the enhanced pattern pair includes the neighbor occupancy information and upsampling pattern of the sample point obtained after the point cloud sample data is downsampled. Next, the sampled pattern pair and the enhanced pattern pair are combined as training samples to perform overfitting training on the pattern prediction model.

[0169] Step 620: Input the neighbor occupancy data into the pattern prediction model, perform data prediction via the input layer, hidden layer, and output layer, and obtain a predicted upsampling pattern.

[0170] Step 630: Calculate the loss value based on the predicted upsampling mode and the upsampling mode, and adjust the model weight of the mode prediction model according to the loss value until a trained mode prediction model is obtained.

[0171] In one embodiment, the loss function is a binary cross entropy BCE loss function, which is expressed as:

[0172]

[0173] in, The weight of the model is The predicted upsampling mode obtained when .

[0174] for example, For a point cloud of 4 points, the corresponding upsampling mode is expressed as:

[0175] [[1,0,1,1,0,0,1,0],[0,1,1,0,1,1,1,0],[1,0,0,1,0,0,0,1],[1,1,1,1,1,1,1,1,1]]

[0176] The predicted upsampling mode is expressed as:

[0177] [[0.0010, 0.3430, 0.4660, 0.2430, 0.1790, 0.5820, 0.6460,0.2610],

[0178] [0.4830, 0.4200, 0.7400, 0.8220, 0.0640, 0.4700, 0.0450, 0.2630],

[0179] [0.7830, 0.3800, 0.7870, 0.9100, 0.8780, 0.1370, 0.3960, 0.0300],

[0180] [0.4850, 0.6340, 0.6500, 0.1340, 0.1400, 0.0660, 0.8280, 0.7300]]

[0181] The loss value obtained above is 1.2254, and then adjustments are made based on this loss value until the trained pattern prediction model is obtained. It is understandable that when the training sample has data expansion, it becomes 8 times the original data volume, then There are 8 sampling pattern pairs, each of which belongs to 8 binary classification problems, and no examples are listed here.

[0182] In one embodiment, referring to Figure 7 , Figure 7 This is a schematic diagram of the training results provided by the embodiment of the present application. The G-PCC software MPEG-PCC-TMC13v20.0 based on the octree in the embodiment of the present application is a lossless encoder for the point cloud to be processed. The test was conducted on the MPEGCat1 (Solid) dataset, using the Adam optimizer, the learning rate was set to 0.001, the batch size was set to 2048 (points), and the total number of training rounds was 150. The point cloud quality was used as the result. Figure 7 It can be seen that the gain of the point cloud data reconstruction method proposed in the embodiment of the present application is compared with the gain of G-PCC (octree) in the related technology. The gain of the embodiment of the present application significantly improves the quality of the decoded point cloud. The average gain without data expansion is 9.54dB, and the average gain with data expansion (that is, the above-mentioned enhancement mode pair) is 9.67dB. The gain in most related technologies is about 9.4dB. This shows the effectiveness of the point cloud data reconstruction method in the embodiment of the present application.

[0183] In one embodiment, offline learning and online fine-tuning can be combined to further improve performance. During the offline training phase, a lightweight pattern prediction model is trained using a large-scale dataset so that it can accurately predict the upsampling pattern of each point in the point cloud. During the online fine-tuning phase, the pre-trained pattern prediction model is fine-tuned with a specific task or dataset (such as the point cloud to be processed) to further improve performance and adaptability. In this way, the rich information of large-scale data can be fully utilized to obtain a good initial model in the offline learning phase, and the pattern prediction model can be fine-tuned according to the specific needs of the point cloud to be processed during the online fine-tuning process to achieve better content adaptability and performance. This method of combining offline learning and online fine-tuning can not only improve the quality and efficiency of point cloud upsampling, but also enhance the versatility and flexibility of the pattern prediction model, so that it can better meet the needs of different scenarios and tasks.

[0184] Step 130: Obtain the occupancy information to be processed corresponding to the point cloud to be processed, input the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction, and obtain the upsampling prediction pattern corresponding to the point cloud to be processed.

[0185] In one embodiment, the point cloud to be processed is downsampled to obtain a re-downsampled point cloud, and then relevant training data is constructed based on the relationship between the point cloud to be processed and the re-downsampled point cloud. Therefore, after the lightweight pattern prediction model is obtained through online training, the geometric similarity of the point cloud across scales can be used to apply the trained pattern prediction model back to the point cloud to be processed for prediction, and its corresponding upsampling prediction pattern can be obtained, and then the geometric upsampling of the point cloud is implemented according to the upsampling prediction pattern to obtain the target point cloud.

[0186] In one embodiment, based on the cross-scale geometric similarity of point clouds, a trained pattern prediction model is used to process the point clouds. The upsampling mode is estimated to obtain the upsampling prediction mode , expressed as:

[0187]

[0188] in, Point cloud to be processed The occupancy information of the neighbor set corresponding to the i-th point.

[0189] Step 140: reconstruct the point cloud to be processed based on the upsampling prediction mode to obtain the target point cloud.

[0190] In one embodiment, the process of performing point cloud reconstruction is opposite to the order of calculating the upsampling mode described above. First, an upsampling mode sequence value corresponding to each point to be processed in the point cloud to be processed in the upsampling prediction mode is obtained, and then upsampling is performed according to the upsampling mode sequence value and the point to be processed to obtain a corresponding predicted sub-point cloud, and a target point cloud is obtained based on at least one corresponding predicted sub-point cloud.

[0191] For example, the point cloud to be processed is {(1,1,1), (1,1,2), (1,2,1)}, which includes 3 points to be processed, and the upsampling prediction mode is: [[0,0,0,0,0,1,0,1], [0,0,0,0,1,1,1,1], [0,0,0,0,0,1,0,1]]. At this time, the upsampling mode sequence value corresponding to the first point to be processed (1,1,1) is [0,0,0,0,0,1,0,1], the upsampling mode sequence value corresponding to the second point to be processed (1,1,2) is [0,0,0,0,1,1,1,1], and the upsampling mode sequence value corresponding to the third point to be processed (1,2,1) is [0,0,0,0,0,1,0,1].

[0192] At this time, upsampling is performed according to the upsampling pattern sequence values ​​and the points to be processed to obtain the corresponding predicted sub-point cloud, specifically including: obtaining the point cloud computing formula corresponding to each pattern value in the upsampling pattern sequence values, selecting the point cloud computing formula with a pattern value of one, substituting the three-dimensional coordinate data of the point to be processed into the point cloud computing formula for calculation to obtain the reconstructed point, and obtaining the predicted sub-point cloud corresponding to the sample point according to the reconstructed point.

[0193] In one embodiment, each value in the upsampling mode sequence value is referred to as a mode value, and the first mode value corresponds to the above The point cloud translation rule corresponds to the point cloud computing formula when the second mode value corresponds to the above The point cloud translation rule corresponds to the point cloud computing formula, and so on.

[0194] For example, for the first point to be processed (1,1,2), its 6th and 8th mode values ​​are 1, and the corresponding point cloud computing formulas are:

[0195]

[0196]

[0197] At this time, the three-dimensional coordinate data of the point to be processed is substituted into the point cloud computing formula for calculation, and two reconstructed points are obtained, namely (1,2,1) and (1,1,1), which constitute the first predicted sub-point cloud.

[0198] According to the above method, the reconstructed points corresponding to the second point to be processed are: (1,1,4), (1,1,3), (1,2,3) and (1,2,4), which constitute the second predicted sub-point cloud. The reconstructed points corresponding to the third point to be processed are (1,4,1) and (1,3,1), which constitute the third predicted sub-point cloud. Finally, all the predicted sub-point clouds are merged to obtain the target point cloud.

[0199] Some point cloud reconstruction models in the related art use training data pairs constructed from downsampled point clouds and original point clouds to train lightweight networks at the encoding end, and then obtain relevant sampling data of the downsampled point clouds. In this way, when upsampling the downsampled point clouds at the decoding end, the parameters of the point cloud reconstruction model must be transmitted as side information. The embodiment of the present application uses the cross-scale geometric similarity of point clouds to obtain an upsampling mode estimate of the point cloud to be processed, which is completely independent of the encoding end and does not require the transmission of any additional bitstream. In other words, if any actual point cloud to be processed is given, its upsampling mode can be predicted, and upsampling can be performed based on this to achieve quality enhancement. However, this point cloud reconstruction model in the related art requires that after a downsampled point cloud is given, it must also be accompanied by network parameters transmitted from the encoding end in order to upsample the point cloud.

[0200] Or, refer to Figure 1 , the related art does not consider the upsampling mode, and can only directly scale up to approximately restore the downsampled point cloud. If it is to be fully restored, all point clouds need to belong to situation (a), which is very rare, so other information needs to be introduced for high-quality restoration. Therefore, the embodiment of the present application combines the upsampling mode to reconstruct the point cloud. With the accurate estimation of the upsampling mode, it is not necessary to directly scale up, but to use it to upsample the point cloud geometry, thereby achieving the purpose of reducing or even removing the downsampling distortion and achieving quality enhancement.

[0201] In one embodiment, if the target point cloud obtained by the above process has a different scale from the original point cloud, the obtained target point cloud is used as the first predicted point cloud and multiple upsampling reconstruction processes are performed.

[0202] In one embodiment, the process of merging all predicted sub-point clouds to obtain a target point cloud specifically includes: obtaining a first predicted point cloud based on at least one corresponding predicted sub-point cloud; if the scale of the first predicted point cloud is inconsistent with the scale of the target point cloud, performing an upsampling pattern prediction process of a pattern prediction model, obtaining an updated upsampling pattern of the first predicted point cloud, reconstructing the point cloud of the first predicted point cloud using the updated upsampling pattern to obtain a second predicted point cloud; if the scale of the second predicted point cloud is consistent with the scale of the target point cloud, using the second predicted point cloud as the target point cloud; otherwise, scaling up the second predicted point cloud to obtain the target point cloud.

[0203] That is to say, if the scale obtained by upsampling the point cloud to be processed for the first time is different from the scale of the original point cloud, it means that the upsampling process needs to be performed. At this time, it can be used as the first predicted point cloud, and the pattern prediction model can be used to predict the upsampling mode of the first predicted point cloud to obtain an updated upsampling mode. According to the above process, the first predicted point cloud is upsampled and reconstructed using the updated upsampling mode to obtain a second predicted point cloud. At this time, if it is judged that the scale of the second predicted point cloud is consistent with the scale of the target point cloud, the second predicted point cloud is used as the target point cloud, otherwise the second predicted point cloud is directly scaled up to obtain the target point cloud. The purpose of scale amplification here is to improve the reconstruction efficiency and reduce error accumulation. It can be understood that the upsampling process can also be iterated multiple times until the reconstructed point cloud finally matches the point cloud scale required by the enhancement process.

[0204] Reference Figure 8 , Figure 8 It is an overall flow chart of the point cloud data reconstruction method provided in an embodiment of the present application. Figure 8 As can be seen from the above, the present embodiment first reads the point cloud to be processed from the storage medium or decodes it through a decoder. At this time, the point cloud to be processed is the data after the original point cloud is downsampled. It contains the geometric information of the original point cloud, but the number of points is reduced for easy storage and transmission. Next, the point cloud to be processed is downsampled twice to obtain the re-downsampled point cloud , and then use the point cloud to be processed And downsample the point cloud The pattern prediction model is overfitted and trained to obtain a trained pattern prediction model, whose model weight is Then use the trained pattern prediction model Processing point cloud The upsampling mode is approximated to obtain the predicted upsampling mode, and upsampling is performed based on the predicted upsampling mode to obtain the target point cloud, thereby achieving point cloud quality enhancement.

[0205] In the embodiment of the present application, the point cloud to be processed is downsampled to obtain a re-downsampled point cloud, and a sampling pattern pair for each sample point in the re-downsampled point cloud is obtained, and the sampling pattern pair includes: neighbor occupancy information and upsampling pattern. Then, the initial pattern prediction model is trained based on multiple sampling pattern pairs to obtain a trained pattern prediction model, and then the occupancy information to be processed corresponding to the point cloud to be processed is obtained, and the occupancy information to be processed is input into the pattern prediction model for upsampling pattern prediction to obtain the upsampling prediction pattern corresponding to the point cloud to be processed. Finally, the point cloud to be processed is reconstructed based on the upsampling prediction pattern to obtain the target point cloud. It is possible to utilize the geometric similarity of point clouds across scales, use the prediction result of the upsampling pattern of the re-downsampled point cloud as an approximate estimate of the upsampling pattern of the point cloud to be processed, and apply it to the point cloud to be processed for upsampling, so as to achieve better point cloud quality and less distortion. In addition, the pattern prediction model is lightweight, and the training data is only generated from the point cloud to be processed, so that efficient and content-adaptive point cloud upsampling can be performed to achieve the purpose of improving the quality of the point cloud.

[0206] In addition, in the related art, when the neighbor point set information cannot be queried in the form of a lookup table, the point is directly scaled up by default instead of upsampling. The embodiment of the present application uses a pattern prediction model to obtain an upsampling pattern of the point cloud to be processed. Taking into account the continuity of the network, when the neighbor occupancy information of the point cloud to be processed does not appear in the set composed of the neighbor occupancy information of all points in the point cloud to be processed, the predicted upsampling pattern will be close to the prediction result corresponding to the element in the set that is close to the neighbor occupancy information. This is usually more accurate than the point cloud data obtained by directly scaling up by two times.

[0207] The present application also provides a point cloud data reconstruction device, which can implement the above point cloud data reconstruction method. Fig. 9 , the device comprises:

[0208] Downsampling module 910: used to downsample the point cloud to be processed to obtain a further downsampled point cloud, and obtain a sampling mode pair for each sample point in the further downsampled point cloud, the sampling mode pair including: neighbor occupancy information and an upsampling mode, the upsampling mode is used to indicate the mapping relationship between each point in the further downsampled point cloud and each point in the point cloud to be processed.

[0209] Training module 920: used to train an initial pattern prediction model based on multiple sampling patterns to obtain a trained pattern prediction model.

[0210] Prediction module 930: used to obtain the occupancy information to be processed corresponding to the point cloud to be processed, input the occupancy information to be processed into the mode prediction model to perform upsampling mode prediction, and obtain the upsampling prediction mode corresponding to the point cloud to be processed.

[0211] Upsampling module 940: used to reconstruct the point cloud to be processed based on the upsampling prediction mode to obtain the target point cloud.

[0212] The specific implementation of the point cloud data reconstruction device of this embodiment is basically the same as the specific implementation of the above-mentioned point cloud data reconstruction method, and will not be repeated here.

[0213] The present application also provides an electronic device, including:

[0214] at least one memory;

[0215] at least one processor;

[0216] at least one program;

[0217] The program is stored in the memory, and the processor executes the at least one program to implement the point cloud data reconstruction method implemented in the present application. The electronic device can be any intelligent terminal including a mobile phone, a tablet computer, a personal digital assistant (PDA), a car computer, etc.

[0218] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0219] The processor 1001 may be implemented by a general-purpose central processing unit (CPU), 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;

[0220] The memory 1002 may 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 1002 may 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 1002, and the processor 1001 calls and executes the point cloud data reconstruction method of the embodiment of this application;

[0221] Input / output interface 1003, used to implement information input and output;

[0222] Communication interface 1004, used to realize communication interaction between the device and other devices, which can be realized through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); and

[0223] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0224] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0225] An embodiment of the present application further provides a storage medium, which is a storage medium storing a computer program, and the computer program implements the above-mentioned point cloud data reconstruction method when executed by a processor.

[0226] As a non-transitory storage medium, the memory can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged 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.

[0227] The point cloud data reconstruction method, device, equipment and storage medium proposed in the embodiments of the present application obtain a re-downsampled point cloud by downsampling the point cloud to be processed, and obtain a sampling pattern pair for each sample point in the re-downsampled point cloud, the sampling pattern pair including: neighbor occupancy information and upsampling pattern. Then, the initial pattern prediction model is trained based on multiple sampling pattern pairs to obtain a trained pattern prediction model, and then the occupancy information to be processed corresponding to the point cloud to be processed is obtained, and the occupancy information to be processed is input into the pattern prediction model for upsampling pattern prediction to obtain the upsampling prediction pattern corresponding to the point cloud to be processed. Finally, the point cloud to be processed is reconstructed based on the upsampling prediction pattern to obtain the target point cloud. In the embodiments of the present application, the neighbor occupancy information and upsampling pattern in the downsampling process of the point cloud to be processed are used to train a pattern prediction model suitable for the point cloud to be processed. Then, this pattern prediction model is used to predict the upsampling pattern of the point cloud to be processed. When reconstructing point clouds, the upsampling mode is combined to simulate the target point cloud to obtain the downsampling process of the point cloud to be processed, so as to reduce or even remove the downsampling distortion, thereby enhancing the quality of point cloud reconstruction data and improving the accuracy of reconstructed data.

[0228] 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.

[0229] 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.

[0230] 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.

[0231] 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.

[0232] 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 that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

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

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

[0235] 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.

[0236] 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.

[0237] 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. 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 (ROM), random access memory (RAM), disk or optical disk and other media that can store programs.

[0238] 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 reconstruction method, characterized in that: include: Downsampling the point cloud to be processed to obtain a downsampled point cloud, and obtaining a sampling mode pair for each sample point in the downsampled point cloud, wherein the sampling mode pair includes: neighbor occupancy information and an upsampling mode, wherein the upsampling mode is used to indicate a mapping relationship between each point in the downsampled point cloud and each point in the point cloud to be processed; Training an initial pattern prediction model based on a plurality of the sampling patterns to obtain the trained pattern prediction model; Obtaining the occupancy information to be processed corresponding to the point cloud to be processed, inputting the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction, and obtaining the upsampling prediction pattern corresponding to the point cloud to be processed; The point cloud to be processed is reconstructed based on the upsampling prediction mode to obtain a target point cloud.

2. The point cloud data reconstruction method according to claim 1, characterized in that: Obtaining neighbor occupancy information of each sample point in the downsampled point cloud, including: Acquire three-dimensional coordinate data of each sample point in the downsampled point cloud; Selecting a coordinate value corresponding to at least one target coordinate axis from the three-dimensional coordinate data; The sample points are taken as first calculation points one by one, a preset number of points with coordinate values ​​within a preset distance threshold are selected as a neighbor set of the calculation point, and corresponding neighbor placeholder information is obtained according to the neighbor set.

3. The point cloud data reconstruction method according to claim 2, characterized in that: The obtaining corresponding neighbor placeholder information according to the neighbor set includes: Selecting points in the neighbor set one by one as second calculation points; When the second calculated point is located in the re-downsampled point cloud, the placeholder indicator of the second calculated point is one, otherwise it is zero; The neighbor placeholder information is obtained according to the placeholder indicator of each second calculation point.

4. The point cloud data reconstruction method according to claim 1, characterized in that: The step of reconstructing the point cloud to be processed based on the upsampling prediction mode to obtain a target point cloud includes: Obtaining an upsampling mode sequence value corresponding to each to-be-processed point in the to-be-processed point cloud in the upsampling prediction mode; Upsampling is performed according to the upsampling mode sequence value and the point to be processed to obtain a corresponding predicted sub-point cloud; The target point cloud is obtained based on at least one corresponding predicted sub-point cloud.

5. The point cloud data reconstruction method according to claim 4, characterized in that: The upsampling is performed according to the upsampling mode sequence value and the point to be processed to obtain a corresponding predicted sub-point cloud, including: Obtaining a point cloud computing formula corresponding to each mode value in the up-sampled mode sequence value; Selecting the point cloud computing formula with the mode value of 1, substituting the three-dimensional coordinate data of the point to be processed into the point cloud computing formula for calculation to obtain a reconstructed point; The predicted sub-point cloud corresponding to the sample point is obtained according to the reconstructed point.

6. The point cloud data reconstruction method according to claim 5, characterized in that: Before obtaining the mode calculation formula corresponding to each mode value in the up-sampling mode sequence value, the method further includes: Generate corresponding point cloud translation rules for eight different downsampling methods; The point cloud computing formula is generated according to the point cloud translation rule.

7. The point cloud data reconstruction method according to claim 4, characterized in that: The obtaining the target point cloud based on the corresponding at least one predicted sub-point cloud comprises: Obtaining a first predicted point cloud based on the corresponding at least one predicted sub-point cloud; If the scale of the first predicted point cloud is inconsistent with the scale of the target point cloud, an upsampling mode prediction process of the mode prediction model is performed once, an updated upsampling mode of the first predicted point cloud is obtained, and the updated upsampling mode is used to reconstruct the point cloud of the first predicted point cloud to obtain a second predicted point cloud; If the scale of the second predicted point cloud is consistent with the scale of the target point cloud, the second predicted point cloud is used as the target point cloud; otherwise, the second predicted point cloud is scaled up to obtain the target point cloud.

8. The point cloud data reconstruction method according to any one of claims 1 to 7, characterized in that: The pattern prediction model is a multi-layer perceptron, which includes an input layer, a hidden layer and an output layer in sequence. The training of the initial pattern prediction model based on the plurality of sampling patterns to obtain the trained pattern prediction model includes: Obtaining a training sample based on the sampling pattern pair corresponding to each of the sample points; Inputting the neighbor occupancy data into the mode prediction model, performing data prediction via the input layer, the hidden layer and the output layer, and obtaining a predicted upsampling mode; A loss value is calculated based on the predicted upsampling mode and the upsampling mode, and a model weight of the mode prediction model is adjusted according to the loss value until a trained mode prediction model is obtained.

9. The point cloud data reconstruction method according to claim 8, characterized in that: The obtaining of training samples based on the sampling pattern pair corresponding to each of the sample points includes: Down-sampling the point cloud to be processed according to a plurality of different down-sampling methods to obtain a plurality of sampled point cloud data; Acquire a sampling pattern pair corresponding to the sampling point cloud data as an enhancement pattern pair; The sampling pattern pair and the enhancement pattern pair are used as the training samples.

10. A point cloud data reconstruction device, characterized in that: include: Downsampling module: used to downsample the point cloud to be processed to obtain a further downsampled point cloud, and obtain a sampling mode pair for each sample point in the further downsampled point cloud, wherein the sampling mode pair includes: neighbor occupancy information and an upsampling mode, wherein the upsampling mode is used to indicate a mapping relationship between each point in the further downsampled point cloud and each point in the point cloud to be processed; Training module: used for training the initial pattern prediction model based on a plurality of the sampling patterns to obtain the trained pattern prediction model; Prediction module: used for obtaining the occupancy information to be processed corresponding to the point cloud to be processed, inputting the occupancy information to be processed into the pattern prediction model to perform upsampling pattern prediction, and obtaining the upsampling prediction pattern corresponding to the point cloud to be processed; Upsampling module: used to reconstruct the point cloud to be processed based on the upsampling prediction mode to obtain the target point cloud.

11. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the point cloud data reconstruction method according to any one of claims 1 to 9 when executing the computer program.

12. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the point cloud data reconstruction method according to any one of claims 1 to 9 is implemented.