Image processing method and device
Through object-centered image processing methods, point cloud data and neural networks are used for panoramic reconstruction, which solves the problem of insufficient three-dimensional state processing in the existing technology and improves the virtual and real fusion effect and object shape and posture estimation in augmented reality technology. accuracy.
Patent Information
- Application Number
- CN202310487822.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2024-10-29
AI Technical Summary
Existing augmented reality technology has insufficient accuracy in processing and understanding the three-dimensional status of surrounding objects in three-dimensional space, resulting in poor virtual and real fusion effects.
An object-centered image processing method is adopted to generate object feature vectors for panoramic reconstruction through feature extraction and neural network processing of point cloud data, including decoupling of semantic and geometric features, combined with Transformer network and attention Mechanism for panoramic segmentation, object shape reconstruction and pose estimation.
It improves the accuracy and details of panoramic reconstruction, enhances the realism of virtual-real interaction, reduces training complexity and efficiency, and achieves accuracy of object shape and posture estimation.
Smart Images

Figure CN118864879A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and more specifically, to an image processing method, an image processing device, an electronic device, and a storage medium for panoramic reconstruction. Background Art
[0002] Augmented reality technology provides users with a real information experience by adding virtual content to the real scene in front of the user. In three-dimensional space, the augmented reality system needs to have high-precision real-time processing and understanding of the three-dimensional state of surrounding objects in order to present a high-quality virtual-real fusion effect to the user. However, the effect presented to users by current augmented reality technology does not meet user expectations. Summary of the invention
[0003] Exemplary embodiments of the present disclosure provide an image processing method and an apparatus thereof, which at least solve the above technical problems and other technical problems not mentioned above, and provide the following beneficial effects.
[0004] According to a first aspect of an exemplary embodiment of the present disclosure, there is provided an image processing method, which may include: acquiring point cloud data of a target scene; performing feature extraction on the point cloud data to obtain a feature map of the point cloud data; generating a feature vector representing each object contained in the target scene based on the feature map; and performing panoramic reconstruction of the target scene based on the feature vector of each object.
[0005] Optionally, the feature vector of each object includes semantic features related to the semantics of the object and geometric features related to the geometry of the object.
[0006] Optionally, generating a feature vector representing each object contained in the target scene based on the feature map includes: obtaining an initial feature vector for each object, the initial feature vector including semantically related initial semantic features of the object and geometrically related initial geometric features of the object; using a neural network to process the feature map and the initial feature vector of each object to obtain a feature vector for each object.
[0007] Optionally, the neural network is a Transformer network, the Transformer network includes at least one sub-neural network, each sub-neural network includes at least a cross-attention layer, a self-attention layer and a feedforward neural network layer.
[0008] Optionally, based on the feature vector of each object, panoramic reconstruction of the target scene is performed, including: inputting the feature vector of each object into at least one neural network, respectively, to obtain semantic labels, masks, shape-related latent variables and posture information of each object; based on the obtained semantic labels, masks, shape-related latent variables and posture information of each object, panoramic reconstruction of the target scene is performed, wherein the semantic labels are obtained based on the semantic features in the feature vectors.
[0009] Optionally, performing panoramic reconstruction of the target scene includes: obtaining refined posture information as the posture information based on the obtained mask and posture information of each object and the point cloud data, and / or obtaining refined shape-related latent variables as the shape-related latent variables based on the obtained mask and shape-related latent variables of each object and the point cloud data; performing panoramic reconstruction of the target scene based on the obtained semantic label, mask, shape-related latent variable and posture information of each object.
[0010] Optionally, obtaining refined posture information includes: processing the obtained mask and posture information of each object and the point cloud data to obtain posture-related features; obtaining posture-related residual information of each object based on the posture-related features and the feature vector of each object; and obtaining refined posture information based on the posture-related residual information and the posture information of each object.
[0011] Optionally, obtaining refined shape-related latent variables includes: processing the obtained mask and shape-related latent variables of each object and the point cloud data to obtain shape-related features; obtaining shape-related residual information of each object based on the shape-related features and the feature vector of each object; and obtaining refined shape-related latent variables based on the shape-related residual information and the shape-related latent variables of each object.
[0012] Optionally, the method also includes: determining whether the target scene is a new scene; if the target scene is a new scene, saving the feature vector of each object; or if the target scene is a scene associated with a previous scene, using the feature vectors of the objects included in the previous scene to initialize the feature vectors of the corresponding objects in the target scene to obtain the initial feature vectors of the corresponding objects in the target scene.
[0013] Optionally, determining whether the target scene is a new scene includes: outputting information for inquiring whether the target scene is a new scene; if feedback information is received, determining whether the target scene is a new scene based on the feedback information; or if no feedback information is received, determining that the target scene is a new scene.
[0014] Optionally, performing panoramic reconstruction of the target scene includes: using a decoder to decode the latent variables to obtain an object mesh of each object; fusing the semantic label and mask of each object, the object mesh and the posture information to obtain a panoramic view of the target scene.
[0015] According to a second aspect of an exemplary embodiment of the present disclosure, there is provided an image processing method, which may include: acquiring point cloud data of a target scene; performing feature extraction on the point cloud data to obtain a feature map of the point cloud data; generating a feature vector representing each object contained in the target scene based on the feature map; and performing panoramic reconstruction of the target scene based on the feature vector of each object.
[0016] Optionally, the feature vector of each object includes a first feature related to the shape of the object and a second feature related to the posture of the object.
[0017] Optionally, generating a feature vector representing each object contained in the target scene based on the feature map includes: obtaining an initial feature vector for each object, the initial feature vector including a first initial feature related to the shape of the object and a second initial feature related to the posture of the object; using an attention network to process the feature map and the initial feature vector of each object to obtain a feature vector for each object.
[0018] Optionally, an attention network is used to process the feature map and the initial feature vector of each object to obtain a feature vector of each object, including: using a first attention network in the attention network to process the feature map and the initial feature vector of each object to obtain a decoupled feature vector of each object; and using a second attention network in the attention network to apply a self-attention mechanism to the decoupled feature vector of each object to obtain a feature vector of each object.
[0019] Optionally, based on the feature vector of each object, panoramic reconstruction of the target scene is performed, including: inputting the feature vectors into a first neural network for object shape reconstruction, a second neural network for object pose estimation, and a third neural network for panoramic segmentation, respectively; and performing panoramic reconstruction of the target scene according to an output of the first neural network, an output of the second neural network, and an output of the third neural network.
[0020] Optionally, the feature vectors are respectively input into a first neural network for object shape reconstruction, a second neural network for object posture estimation, and a third neural network for panoramic segmentation, including: using the first neural network to process the first feature in the feature vector of each object to obtain a latent variable related to the shape of each object; using the second neural network to process the second feature in the feature vector of each object to obtain the posture information of each object; and using the third neural network to process the first feature and the second feature in the feature vector of each object to obtain a semantic label and a mask of each object.
[0021] Optionally, the first neural network is trained in the following manner: obtaining training samples, the training samples including point cloud data of multiple scenes; obtaining a feature vector of a target object in the scene based on the point cloud data of the scene; processing the feature vector of the target object using a neural network to obtain a first latent variable related to the shape of the target object; constructing a loss function based on the first latent variable, a second latent variable obtained based on the input point cloud data corresponding to the target object, and a third latent variable obtained based on the object mesh corresponding to the target object; and training the neural network by minimizing the loss calculated by the loss function to obtain the first neural network.
[0022] Optionally, the second latent variable and the third latent variable are obtained by respectively processing the input point cloud data and the object network through an encoder.
[0023] Optionally, performing panoramic reconstruction of the target scene includes: obtaining refined posture information as the posture information based on the obtained mask and posture information of each object and the point cloud data, and / or obtaining refined shape-related latent variables as the shape-related latent variables based on the obtained mask and shape-related latent variables of each object and the point cloud data; performing panoramic reconstruction of the target scene based on the obtained semantic label, mask, shape-related latent variable and posture information of each object.
[0024] Optionally, obtaining refined posture information includes: processing the obtained mask and posture information of each object and the point cloud data to obtain posture-related features; obtaining posture-related residual information of each object based on the posture-related features and the feature vector of each object; and obtaining refined posture information based on the posture-related residual information and the posture information of each object.
[0025] Optionally, obtaining refined shape-related latent variables includes: processing the obtained mask and shape-related latent variables of each object and the point cloud data to obtain shape-related features; obtaining shape-related residual information of each object based on the shape-related features and the feature vector of each object; and obtaining refined shape-related latent variables based on the shape-related residual information and the shape-related latent variables of each object.
[0026] Optionally, the method also includes: determining whether the target scene is a new scene; if the target scene is a new scene, saving the feature vector of each object; or if the target scene is a scene associated with a previous scene, using the feature vectors of the objects included in the previous scene to initialize the feature vectors of the corresponding objects in the target scene to obtain the initial feature vectors of the corresponding objects in the target scene.
[0027] Optionally, determining whether the target scene is a new scene includes: outputting information for inquiring whether the target scene is a new scene; if feedback information is received, determining whether the target scene is a new scene based on the feedback information; or if no feedback information is received, determining that the target scene is a new scene.
[0028] Optionally, performing panoramic reconstruction of the target scene includes: using a decoder to decode the latent variables to obtain an object mesh of each object; fusing the semantic label and mask of each object, the object mesh and the posture information to obtain a panoramic view of the target scene.
[0029] According to a third aspect of an exemplary embodiment of the present disclosure, an electronic device is provided, which may include: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, prompt the at least one processor to execute the image processing method as described above.
[0030] According to a fourth aspect of an exemplary embodiment of the present disclosure, there is provided a computer-readable storage medium storing instructions, which, when executed by at least one processor, prompts the at least one processor to perform the image processing method as described above.
[0031] According to a fifth aspect of an exemplary embodiment of the present disclosure, a computer program product is provided, wherein instructions in the computer program product are executed by at least one processor in an electronic device to perform the image processing method as described above.
[0032] The present disclosure proposes a one-stage model for scene panoramic reconstruction, which utilizes an object-centered representation vector to perform panoramic reconstruction of a target scene (such as panoramic segmentation, object shape reconstruction, and object pose estimation), avoiding the training complexity and efficiency of existing two-stage models (for example, segmentation or detection followed by reconstruction), and improving the panoramic reconstruction effect.
[0033] According to the embodiments of the present disclosure, the present disclosure can decouple the object-centric representation vector into shape-related features and posture-related features, so that the object shape reconstruction result can contain more details and the object posture estimation result is more accurate.
[0034] According to an embodiment of the present disclosure, when training a neural network that performs object shape reconstruction, the input object point cloud shape is used to supervise the object shape predicted by the neural network, so that the reconstructed object mesh is more consistent with the input point cloud, thereby improving the panoramic reconstruction effect.
[0035] According to the embodiments of the present disclosure, the present disclosure can decouple the object-centric representation vector into semantic-related features and geometric-related features, so that the shape reconstruction result has more details and the posture estimation result is more accurate.
[0036] According to an embodiment of the present disclosure, the present disclosure provides a neural network for perceiving the posture of an object, which further refines the posture information of the object so that the posture estimation result is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] These and / or other aspects and advantages of the present disclosure will become clear and more easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0038] Figure 1 is a flowchart of an image processing method according to an exemplary embodiment of the present disclosure;
[0039] Figure 2 is an architectural diagram of an image processing model according to an exemplary embodiment of the present disclosure;
[0040] Figure 3 is a schematic diagram of a slot attention competition mechanism according to an exemplary embodiment of the present disclosure;
[0041] Figure 4is a first example of a slot attention model according to an exemplary embodiment of the present disclosure;
[0042] Figure 5 is a second example of a slot attention model according to an exemplary embodiment of the present disclosure;
[0043] Figure 6 is a schematic diagram of panoramic reconstruction using decoupled slots according to an exemplary embodiment of the present disclosure;
[0044] Figure 7 is a schematic diagram of applying an image processing model to an augmented reality device according to an exemplary embodiment of the present disclosure;
[0045] Figure 8 is a schematic diagram of training a first neural network according to an exemplary embodiment of the present disclosure;
[0046] Fig. 9 is a flowchart of an image processing method according to another exemplary embodiment of the present disclosure;
[0047] Fig.10 is a flowchart of image processing according to an exemplary embodiment of the present disclosure;
[0048] Fig.11 is an architectural diagram of an image processing model according to another exemplary embodiment of the present disclosure;
[0049] Fig.12 is a flowchart of an image processing method according to yet another exemplary embodiment of the present disclosure;
[0050] Fig.13 is a schematic diagram of refined posture information according to an exemplary embodiment of the present disclosure;
[0051] Fig.14 is a structural schematic diagram of an image processing device according to a hardware operating environment of an exemplary embodiment of the present disclosure;
[0052] Fig.15 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0054] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the exemplary embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0055] The terms and words used in the following description and claims are not limited to the bibliographical meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it should be clear to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and is not intended to limit the purpose of the present disclosure as defined by the claims and their equivalents.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 interchanged where appropriate, so that the exemplary embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0057] In the related art for panoramic reconstruction, a decoupled instance mesh reconstruction framework for efficient point cloud scene understanding is proposed, which uses a segmentation-based backbone network to reduce the prediction of false positive objects. Specifically, based on accurate suggestions, the mesh-aware latent variable space is used to decouple the processes of shape completion and mesh generation, eliminating the ambiguity caused by incomplete point clouds. In addition, by accessing the Computer Aided Design (CAD) model library at test time, it can also be used to improve the reconstruction quality by performing mesh retrieval without additional training. However, this method can only obtain semantic reconstruction results of certain objects in the scene, but not reconstruction results of room structures, such as walls and floors. Such reconstruction results are not sufficient to support use in practical augmented reality applications. Moreover, this method does not limit the similarity between the latent code of the mesh-aware shape and the original input point cloud, and the lack of such input consistent losses usually leads to obvious differences between the reconstructed mesh and the original point cloud.
[0058] In addition, a new end-to-end method is proposed, which retrieves 3D CAD models from a shape database and aligns them to a single input image. This enables 3D perception of the observed scene from 2D RGB observations - represented by a lightweight, compact, and clean CAD. The core of the method is a differentiable alignment optimization based on 2D-3D dense object correspondences. Therefore, the method can provide robust CAD alignment while learning CAD models with geometric similarity to the retrieved ones by leveraging 2D-3D correspondences. A network for point scene understanding based on semantic instance reconstruction is also proposed, which jointly detects and reconstructs dense object surfaces directly from raw point clouds. The network exploits the sparsity of point cloud data and focuses on predicting shapes with high objectness, rather than representing the scene with a regular grid. With this design, instance reconstruction is decoupled into global object localization and local shape prediction. It not only alleviates the difficulty of learning 2D manifold surfaces from sparse 3D space, but the point cloud in each object proposal conveys shape details that support implicit function learning to reconstruct any high-resolution surface.
[0059] The above methods are two-stage methods (e.g., segmentation or detection followed by reconstruction) and require post-processing (e.g., non-maximum suppression of instance segmentation results). When training a neural network in a two-stage method, it is very cumbersome to adjust the hyperparameters, and it is difficult to achieve optimality in each stage at the same time, and these methods all require additional post-processing.
[0060] Based on the above problems, the present disclosure proposes a system and method for panoramic reconstruction of indoor scenes with an object as the center. The system and method can be implemented by a one-stage model for panoramic reconstruction of the scene, which uses an object-centered representation vector to simultaneously perform panoramic segmentation, object reconstruction, and pose estimation tasks. Moreover, this model can be applied to augmented reality devices to improve the virtual-reality interaction effect in augmented reality applications.
[0061] Hereinafter, according to various embodiments of the present disclosure, the method and apparatus of the present disclosure will be described in detail with reference to the accompanying drawings.
[0062] Figure 1 1 is a flowchart of an image processing method according to an exemplary embodiment of the present disclosure. The image processing method of the present disclosure can be performed on an electronic device having an image processing function. The electronic device can be, for example, a smart phone, a tablet computer, a portable computer, a desktop computer, etc.
[0063] In step S11, the point cloud data of the target scene is obtained. For example, a 3D scanning device (such as a laser radar (2D / 3D), RGB binocular, 3D structured light camera, time-of-flight camera) can be used to scan various objects in a scene, measure a large number of point information on the surface of each object, and then output the point cloud data using a certain data file to obtain the point cloud data of the scene. Each point in the point cloud data contains rich information, such as three-dimensional coordinates X, Y, Z, color, classification value, intensity value, time, etc. The real world can be restored through high-precision point cloud data. For example, when scanning an indoor scene, objects such as tables, chairs, and cups in the indoor scene can be collected, and room structures such as walls and floors can also be collected.
[0064] In step S12, feature extraction is performed on the point cloud data to obtain a feature map of the point cloud data. A general neural network for processing 3D point cloud data can be used to extract the feature map of the point cloud data. For example, a sparse 3D U-NET or a dynamic graph convolutional neural network (Dynamic Graph CNN, DGCNN) can be used to extract features from the point cloud data to obtain a feature map of the point cloud data. The above examples are only exemplary, and the present disclosure is not limited thereto.
[0065] In step S13, a feature vector representing each object included in the target scene is generated based on the feature map. In the present disclosure, the feature vector of an object refers to a representation centered on the object, for example, a feature vector used to represent the object. For example, the feature vector of an object can be a slot-based slot vector centered on the object. In addition, other object-centered representations can also be used, which are not limited in the present disclosure. Step S13 can be used to represent all objects included in the target scene with object-centered feature vectors.
[0066] Taking the use of slot vectors to represent objects as an example, a slot attention network (for example, a network that maps from a set of N input feature vectors to K output feature vectors called slots, where N can be determined based on the spatial dimension of the extracted features and K can be determined based on the number of instances in the training data scenario) can be used to obtain the slot vectors of each object from the input feature map. For example, the representation of each slot corresponds to an object. Specifically, the slot attention network can apply the slot attention mechanism to the input features. The attention mechanism can calculate the correlation between the input features and the slots. Each slot can obtain input features related to itself, and each input feature should belong to only one slot as much as possible. This process can be iterated T times, and each iteration can make a slot better correspond to only one object.
[0067] Since the original slot attention network is designed for image processing, it cannot be directly applied to point cloud processing and scene panoramic reconstruction tasks. Considering that unlike image processing, when processing point cloud data, the object point cloud can be first converted by the object posture, and the object point cloud can be normalized by the object posture before further processing. Therefore, the present disclosure proposes a decoupled feature vector, which includes a first feature related to the shape of the object and a second feature related to the posture of the object. Taking the slot as an example, the feature of the first half of the slot can be the first feature related to the posture, and the feature of the second half of the slot is the second feature related to the shape. Such a slot can help generate a more detailed reconstructed mesh, which is more suitable for scene panoramic reconstruction than the original slot.
[0068] According to an embodiment of the present disclosure, the feature vector of each object may be a decoupled slot vector, wherein a portion of the decoupled slot vector may include features related to the shape of the object, and another portion of the decoupled slot vector may include features related to the posture of the object. The above decoupled features are only exemplary, and may also be decoupled into different feature spaces, such as color feature space, etc., according to different tasks.
[0069] In the case where the feature vector representing the object is the decoupled feature vector described above, an initial feature vector of each object in the target scene may be obtained, and the initial feature vector may include a first initial feature related to the shape of the object and a second initial feature related to the posture of the object. For example, an attention network may be used to process the feature map of the point cloud data of the target scene and the initial feature vector of each object to obtain a feature vector of each object.
[0070] As an example, when the feature vector of an object is a decoupled slot vector, the initial slot vector of each object can be obtained, a part of the initial slot vector is initialized to represent the shape of the corresponding object and another part of the initial slot vector is initialized to represent the posture of the corresponding object, and the feature map and the initial slot vector of the point cloud data are processed using the attention network disclosed in the present invention to obtain the decoupled slot vectors of each object.
[0071] According to an embodiment of the present disclosure, a first attention network in the attention network can be used to process the feature map and the initial feature vector of each object to obtain a decoupled feature vector of each object; and a second attention network in the attention network can be used to apply a self-attention mechanism to the decoupled feature vector of each object to obtain a feature vector of each object.
[0072] As an example, the first attention network can be a neural network that applies an attention mechanism, and the second attention network can be a neural network that applies a self-attention mechanism. For example, the first attention network can be used to process the feature map and the initial slot vector to obtain the first decoupled slot vector of each object; the second attention network can be used to apply the self-attention mechanism to the first decoupled slot vector of each object to obtain the final decoupled slot vector of each object.
[0073] In step S14, a panoramic reconstruction of the target scene is performed based on the feature vector of each object.
[0074] As an example, the generated feature vectors can be input into a first neural network for object shape reconstruction, a second neural network for object pose estimation, and a third neural network for panoramic segmentation, respectively, and based on the output of the first neural network, the output of the second neural network, and the output of the third neural network, panoramic reconstruction of the target scene is performed.
[0075] For example, a first neural network can be used to process a first feature related to shape in the feature vector of each object to obtain a latent variable related to the shape of each object; a second neural network can be used to process a second feature related to posture in the feature vector of each object to obtain posture information of each object; and a third neural network can be used to obtain a semantic label and mask for each object from the first feature and the second feature. The first neural network, the second neural network, and the third neural network are executed in parallel, avoiding the training complexity and efficiency of the existing two-stage model (for example, segmentation or detection followed by reconstruction), and improving the panoramic reconstruction effect.
[0076] For example, a decoder (e.g., a decoder implemented by a neural network) can be used to decode the shape-related latent variables of each object to obtain an object mesh of each object; the semantic label and mask, object mesh, and posture information of each object are combined to obtain a panoramic view of the target scene.
[0077] According to the embodiments of the present disclosure, the obtained posture information of the object can be further refined to make the posture estimation result more accurate.
[0078] As an example, refined posture information can be obtained based on the obtained mask and posture information of each object and the point cloud data; panoramic reconstruction of the target scene is performed based on the obtained semantic label, mask, shape-related latent variables and refined posture information of each object.
[0079] In refining the posture information, the mask and posture information of each object and the point cloud data can be processed to obtain posture-related features; based on the posture-related features and the feature vector of each object, the posture-related residual information of each object is obtained; based on the posture-related residual information and the posture information of each object, the refined posture information is obtained. Then, the semantic label and mask of each object, the object mesh and the refined posture information are combined to obtain a panoramic view of the target scene. For example, the object mask and posture information predicted by the second neural network and the third neural network are used to obtain the posture-related features of the coordinates of the object through a multi-layer perceptron, and the features are spliced with the feature vector of the object to predict the residual information of the object posture, and then the residual information is added to the predicted posture information as the final posture estimation result.
[0080] According to the embodiments of the present disclosure, the obtained latent variables related to the shape of the object may be further refined to make the shape estimation result more accurate.
[0081] In refining the shape-related latent variables, the masks and shape-related latent variables and point cloud data of each object can be processed to obtain shape-related features; based on the shape-related features and the feature vectors of each object, the shape-related residual information of each object is obtained; based on the shape-related residual information and the shape-related latent variables of each object, the refined shape-related latent variables are obtained.
[0082] For example, using the predicted object mask and shape-related latent variables, the object's coordinates are passed through a multi-layer perceptron to obtain shape-related features, which are concatenated with the object's feature vector to predict the residual information of the object's shape, and then the residual information is added to the predicted shape-related latent variables as the final shape estimation result.
[0083] In the process of refining the prediction results, multiple prediction results (such as shape-related latent variables, masks, and posture information) can be refined at the same time, or one or some prediction results (such as shape-related latent variables, masks, or posture information) can be refined individually. The present disclosure is not limited to the above examples.
[0084] According to an embodiment of the present disclosure, different initialization processes may be performed on the feature vectors of objects included in the target scene depending on whether the target scene is a new scene. Information for inquiring whether the target scene is a new scene may be output (for example, the information may be displayed to the user or a voice containing the information may be issued to the user). If feedback information for the information is received, whether the target scene is a new scene may be determined based on the feedback information. If no feedback information is received, it may be determined that the target scene is a new scene. For example, for an input scan scene point cloud, the user may be asked whether the current scene is a new scene or an update to an old scene. If the user does not provide a valid answer or the answer provided is that the current scene is a new scene, the target scene is determined to be a new scene. If the answer provided by the user is that the current scene is an update to an old scene, the target scene is determined to be a scene associated with a previous scene (such as an update scene to a previous scene).
[0085] When the target scene is a new scene, the feature vector of each of the above objects can be saved; when the target scene is a scene associated with a previous scene, the feature vectors of the objects included in the previous scene can be used to initialize the feature vectors of the corresponding objects in the target scene to obtain the initial feature vectors of the corresponding objects in the target scene. For example, the same objects included in the current scene can be searched from the various objects in the previous scene, and the slot vectors of the searched objects can be used as the initial slot vectors of the corresponding objects in the current scene. For new objects appearing in the current scene, the feature vectors of the new objects can be randomly initialized. In this way, a good initialization can be provided for the panoramic reconstruction process of the subsequent scenes by using fast slot retrieval, so that the user only needs to perform a small amount of scanning in the changed area to update the entire scene.
[0086] According to an embodiment of the present disclosure, in order to improve the consistency between the reconstructed mesh and the input point cloud, the present disclosure considers input consistency loss when training the first neural network. For example, first obtain a training sample, and the training sample may include point cloud data of a specific scene. For example, by scanning a specific object (such as an object or multiple objects) of a scene, the point cloud data of the scene is obtained. Based on the point cloud data of the specific scene, a feature vector of a specific object in the specific scene is obtained. In a similar manner to the above, feature extraction can be performed on the point cloud data, and then the attention mechanism is applied to obtain a feature map of the point cloud data. The feature vector of the specific object is processed using a neural network to obtain a first latent variable related to the shape of the specific object. A loss function is constructed based on the first latent variable, a second latent variable obtained based on the input point cloud data corresponding to the specific object, and a third latent variable obtained based on the object mesh corresponding to the specific object, and the neural network is trained by minimizing the loss calculated by the loss function to obtain the first neural network. The second latent variable is obtained by processing the input point cloud data of the specific object by an encoder, and the third latent variable is obtained by processing the object network of the specific object by an encoder. The second latent variable and the third latent variable can be encoded using the same encoder or different encoders.
[0087] The system and method for panoramic reconstruction of an object-centered indoor scene disclosed in the present invention can realize the recognition, segmentation, three-dimensional pose estimation and panoramic reconstruction of all objects in the scene, and is used to improve the virtual-reality interaction effect in augmented reality applications.
[0088] Figure 2 is an architectural diagram of an image processing model according to an exemplary embodiment of the present disclosure. Figure 2 The image processing model shown may include a feature extraction backbone network, an attention network, and a multi-task multi-layer perceptron.
[0089] Reference Figure 2 After measuring the target scene with a 3D scanning device, point cloud data of each object in the target scene can be obtained. Generally, there will be occlusion when measuring objects in the scene, so the collected point cloud data is incomplete point cloud data.
[0090] The feature extraction backbone network can be used to extract features from the collected point cloud data. For example, sparse 3D U-NET or DGCNN can be used to extract features from the point cloud data.
[0091] The attention network disclosed in the present invention can be used to generate object-centric feature vectors for the extracted features. Taking the slot attention network as an example, in each slot attention iteration, each slot competes for all features of a certain part (an object / object) of the input features (feature map) through a softmax-based attention mechanism. Each slot only encodes an object or an entity in the input point cloud. In this way, the slot vectors of each object can be obtained. Figure 3 As shown in FIG. 1 , in an indoor scene, by applying the slot attention competition mechanism to the feature map of the scene, the slot vector representing each object (such as a table, a cabinet, a stool, etc.) can be obtained.
[0092] After obtaining the slot vectors of each object, the slot vectors can be input into a multi-task multi-layer perceptron. For example, a multi-task multi-layer perceptron (MLP) may include multiple multi-layer perceptrons, such as a first multi-layer perceptron for performing a panoramic segmentation task, a second multi-layer perceptron for performing object shape reconstruction, and a third multi-layer perceptron for performing posture estimation. The first multi-layer perceptron can process the input slot vectors to obtain semantic labels and masks of each object, the second multi-layer perceptron can process the input slot vectors to obtain shape-related latent variables of each object (which may be referred to as shape latent variables), and the third multi-layer perceptron can process the input slot vectors to obtain posture information of each object.
[0093] Figure 2 The networks shown are only exemplary, and the present disclosure may also use other networks to perform the above operations.
[0094] When training the above network, for the mask, a binary cross entropy loss can be used, for the semantic label, a cross entropy loss can be used, for the shape latent variable, a weighted L1 loss can be used, and for the result of posture estimation, a mixture of cross entropy loss and weighted L1 loss can be used. For example, a binary cross entropy loss function can be constructed using the real mask and the predicted mask, a cross entropy loss function can be constructed using the real semantic label and the predicted semantic label, a weighted L1 loss function can be constructed using the real shape latent variable (for example, obtained by processing the real network by an encoder based on a neural network), an input shape latent variable (for example, obtained by processing the input object point cloud by an encoder based on a neural network) and a predicted shape latent variable, and a mixed loss function based on cross entropy loss and weighted L1 loss can be constructed using the real posture and the predicted posture. The network parameters of the above model are trained or updated by minimizing the results of the above-constructed loss function. The above losses are exemplary only, and the present disclosure is not limited thereto.
[0095] For example, when training the image processing model of the present disclosure, the loss L related to the mask can be used. mask , semantically related loss L sem , shape-related loss L shape The loss L related to the posture bbox To train the model, the mask-related loss L mask It can be determined by the binary cross entropy loss and Dice loss, and the posture-related loss L bbox It can be determined by the loss for the attitude center, the loss for the attitude range, and the loss for the attitude angle. The above examples are only exemplary, and the present disclosure is not limited thereto.
[0096] Figure 2 The image processing model shown is a unified single-stage model for adapting models of augmented reality devices by using slot-based object-centric representations and techniques to simultaneously perform panoptic segmentation, object shape reconstruction, and pose estimation. Through the object category-level shape prior learned by the network, masks and semantic labels for segmentation, poses (such as position, orientation), and latent variables representing the shape are simultaneously generated for each object represented by a slot. Such a model not only reduces the complexity of adjusting hyperparameters, but also avoids additional post-processing, and the results output by the model can be used in practical augmented reality applications.
[0097] After obtaining the mask, semantic label, shape latent variable, and posture of each object, the shape latent variable can be reconstructed using shape decoding to obtain the object mesh, and then the panoramic mask, semantic label, posture, and reconstructed mesh are directly combined to obtain the final scene panoramic reconstruction result. Here, in the training phase, the encoder is used to process the input object point cloud and the real object mesh separately, wherein the encoder can take the input object point cloud and the real object mesh as input. Alternatively, different encoders can be used to process the input object point cloud and the real object mesh separately to obtain the input shape latent variable and the real shape latent variable. In the inference phase, only the decoder is used to reconstruct the complete 3D mesh of each object.
[0098] Figure 4 is a first example of a slot attention network according to an exemplary embodiment of the present disclosure.
[0099] Reference Figure 4 After extracting feature maps from point cloud data, the randomly initialized slots and extracted features can be input into the slot attention network, which can be done according to Figure 3In this way, each slot competes for all features of an object / objects in the input features through a softmax-based attention mechanism, and each slot only encodes an object or an entity in the input scene point cloud. After N iterations, each slot can represent the corresponding object. After obtaining the slots of each object, the panoramic segmentation task, object image reconstruction task and pose estimation task can be performed respectively.
[0100] Figure 5 is a second example of a slot attention network according to an exemplary embodiment of the present disclosure.
[0101] In order to obtain more accurate pose estimation and shape reconstruction results, the features in the first half of each slot can be specified as pose-related features, and the features in the second half of each slot can be specified as shape-related features. Figure 5 The slot attention network can decouple the shape feature space and posture feature space in each slot. Figure 5 The slot attention network may include two attention networks. The first attention network may first process the extracted features and the randomly initialized decoupled slots, and then use the second attention network to apply the self-attention mechanism to the output of the first attention network to obtain the decoupled slots of each object. Such decoupled slots can bring more detailed information for shape reconstruction and more accurate pose estimation. After obtaining the decoupled slots of each object, the panoramic segmentation task, object image reconstruction task, and pose estimation task can be performed respectively.
[0102] Figure 5 The decoupling process shown is only exemplary, and supervision signals may be output by multiple tasks, and different supervision tasks may be set according to different decoupling requirements.
[0103] Since the decoupled slot helps generate a more detailed reconstructed mesh, it is more suitable for scene panorama reconstruction compared to the original slot. Figure 6 is a schematic diagram of using decoupled slots for panoramic reconstruction according to an exemplary embodiment of the present disclosure.
[0104] Reference Figure 6 , taking the i-th decoupling slot as an example, the specific form of the multi-task supervision signal used for feature decomposition is explained.
[0105] A first neural network can be used to process shape-related first features (also referred to as shape features) in the decoupled slot to perform object shape reconstruction, a second neural network can be used to process posture-related second features (also referred to as posture features) in the decoupled slot to perform object posture estimation, and a third neural network can be used to process the shape-related first features and posture-related second features in the decoupled slot to perform panoramic segmentation, and then panoramic reconstruction can be performed using the results of each task.
[0106] The present invention can first use slot attention for point cloud processing and then combine it with multi-task learning to perform scene panoramic reconstruction in a unified single-stage network, thereby greatly simplifying the difficulties of training and manually adjusting hyperparameters in existing two-stage methods.
[0107] Figure 7 is a schematic diagram of applying an image processing model to an augmented reality device according to an exemplary embodiment of the present disclosure.
[0108] For the input scanned scene point cloud, the user may be asked whether the current scene is a new scene or an update of the old scene. If the user does not provide a valid answer or the answer provided is that the current scene is a new scene, the scene panoramic reconstruction method disclosed in the present invention may be directly executed.
[0109] After performing a scene panorama reconstruction when the current scene is a new scene, slots for scene update and object tracking can be saved.
[0110] If the user provides an answer that the current scene is an update of the old scene, then a good initialization can be provided for the subsequent scene panorama reconstruction process by using fast slot retrieval. In this way, the user only needs to perform a small number of scans in the changed area to update the entire scene.
[0111] The shape-dependent latent variables predicted by the network need to be decoded by the decoder to produce the reconstructed mesh.
[0112] Next, the panoramic masks, semantic labels, poses, and reconstructed meshes only need to be directly combined to obtain the final scene panoramic reconstruction result.
[0113] Figure 8 is a schematic diagram of training a first neural network according to an exemplary embodiment of the present disclosure.
[0114] Reference Figure 8,In order to improve the consistency between the reconstructed mesh and the input point cloud, when training the first neural network, the corresponding input point cloud of each instance / object is encoded into a shape-related latent variable (e.g., input shape latent variable) through the encoder and the true mesh of each instance / object is encoded into a shape-related latent variable (e.g., true shape latent variable) through the encoder as a supervisory signal and used to calculate a smooth L1 loss with the shape-related latent variable output by the network (e.g., predicted shape latent variable). Figure 8 It is shown that the same neural network-based encoder is used to encode the input object point cloud and the real object mesh. In addition, different neural network-based encoders can also be used to encode the input object point cloud and the real object mesh respectively.
[0115] Figure 8 The network module shown ensures that the shape of the object estimated by the network is consistent with the shape of the input point cloud, and uses the encoder to generate the shape latent variable of the input point cloud as a supervisory signal for the shape-related latent variable output by the network.
[0116] This compatibility is very important for users to use the virtual-reality interaction functions in augmented reality applications, making the reconstructed object mesh more consistent with the input point cloud.
[0117] The method and system disclosed herein can be used in an augmented reality system. When the image of a virtual object in three-dimensional space touches a real object, the real object can be deformed in accordance with the laws of physics in the screen of the augmented reality system, thereby giving the user a more realistic sense of immersion.
[0118] The image processing model disclosed in the present invention has good scalability. In addition to the above-mentioned panoramic segmentation task, object shape reconstruction task and posture estimation task, other auxiliary tasks can be added to achieve more functions.
[0119] Fig. 9 is a flowchart of an image processing method according to another exemplary embodiment of the present disclosure.
[0120] Reference Fig. 9 , in step S21, the point cloud data of the target scene is obtained.
[0121] In step S22, feature extraction is performed on the point cloud data to obtain a feature map of the point cloud data. For example, a sparse 3D U-NET or DGCNN may be used to extract features from the point cloud data to obtain a multi-scale feature map of the point cloud data.
[0122] In step S23, a feature vector representing each object contained in the target scene is generated based on the obtained feature map. Here, the feature vector used to represent the object can be a query vector (also referred to as an SGDQ vector in this article) based on semantic and geometric separation. For example, the feature vector of an object can be decoupled into a semantic feature part related to the semantics of the object and a geometric feature part related to the geometry of the object. Geometric features may include, for example, features related to the shape of the object, features related to the mask of the object, and / or features related to the posture of the object. The above examples are only exemplary and the present disclosure is not limited thereto.
[0123] As an example, an initial feature vector of each object may be obtained, the initial feature vector including initial semantic features related to the semantics of the object and initial geometric features related to the geometry of the object, and then a neural network is used to process the feature map and the initial feature vector of each object to obtain a feature vector of each object. Here, the neural network used to obtain the SGDQ vector of the object may be a Transformer network. For example, the Transformer network may include at least one sub-neural network, each of which includes at least a cross-attention layer, a self-attention layer, and a feedforward neural network layer.
[0124] The Transformer network can be a module that maps from a set of N input feature vectors (such as extracted multi-scale feature maps) to K output feature vectors (e.g., SGDQ vectors). In the attention iteration of each SGDQ vector, each SGDQ vector can obtain all the features of a part (an object or an entity) in the input feature vector through cross-attention and self-attention mechanisms. Each SGDQ vector only encodes an object or an entity in the point cloud of the target scene and is input into the subsequent multi-task multi-layer perceptron.
[0125] For example, the feature vector of each object can be obtained according to the following equation.
[0126]
[0127]
[0128]
[0129] S = Self-attention (S)
[0130] S=FFN(S).
[0131] Among them, C represents the correlation matrix in the attention mechanism, k represents the key in the attention mechanism, M represents the mask-related operation, F represents the multi-scale feature map, q represents the query in the attention mechanism, S represents the SGDQ vector, attn i,j represents the attention coefficient, W represents the weight matrix, v represents the value in the attention mechanism, and D represents the dimension of the multi-scale feature map. represents the operation of the cross-attention layer, S=Self-attention(S) represents the operation of the attention layer, and S=FFN(S) represents the operation of the feedforward neural network layer.
[0132] According to an embodiment of the present disclosure, the first half of the features in each SGDQ vector are semantic features, and the second half of each SGDQ vector are geometric features. The semantic features in the SGDQ vector can be used to perform tasks that are only related to the category but not to the individual, such as object category prediction, and the geometric features can be combined with the semantic features to perform tasks that are related to both the category and the individual, such as posture prediction. This is used as a supervisory signal for feature decoupling. Compared with ordinary Query vectors, the SGDQ vector of the present disclosure is more suitable for scene panoramic reconstruction.
[0133] The present invention uses SGDQ attention for point cloud processing and combines it with multi-task learning to perform scene panoramic reconstruction in a unified single-stage network, thereby greatly simplifying the difficulties of training and manually adjusting hyperparameters in existing two-stage methods.
[0134] In step S24, a panoramic reconstruction of the target scene is performed based on the feature vector of each object.
[0135] As an example, the feature vector of each object can be input into at least one neural network to obtain the semantic label, mask, shape-related latent variable and posture information of each object; based on the obtained semantic label, mask, shape-related latent variable and posture information of each object, panoramic reconstruction of the target scene is performed, wherein the semantic label is obtained based on the semantic features in the feature vector.
[0136] For example, the feature vector of each object can be input into a multi-task multi-layer perceptron, such as the first to fourth multi-layer perceptrons. The first multi-layer perceptron can use the semantic features in the feature vector to predict the semantic label of the object. The second multi-layer perceptron can use the semantic features and geometric features of the feature vector to predict the mask of the object. The third multi-layer perceptron can use the semantic features and geometric features of the feature vector to predict the shape-related latent variables of the object. The fourth multi-layer perceptron can use the semantic features and geometric features of the feature vector to predict the posture information of the object. The above examples are only exemplary, and the present disclosure does not limit the number and structure of multi-layer perceptrons.
[0137] According to another embodiment of the present disclosure, in order to obtain more accurate estimation results, refined posture information can be obtained as the final posture information based on the obtained mask and posture information and point cloud data of each object, and / or refined shape-related latent variables can be obtained as the final shape-related latent variables based on the obtained mask and shape-related latent variables and point cloud data of each object, and then panoramic reconstruction of the target scene is performed based on the obtained semantic label, mask, shape-related latent variable and posture information of each object.
[0138] For example, based on the obtained mask and posture information of each object and the point cloud data, the refined posture information can be obtained, and then based on the obtained semantic label, mask, refined shape-related latent variables and refined posture information of each object, the panoramic reconstruction of the target scene can be performed. The above examples are only exemplary, and the present disclosure can refine multiple prediction results at the same time, or refine one or some prediction results separately.
[0139] When refining the posture information, the mask and posture information of each object and the point cloud data obtained can be processed to obtain posture-related features; based on the posture-related features and the feature vector of each object, the posture-related residual information of each object can be obtained; based on the posture-related residual information and the posture information of each object, the refined posture information can be obtained. For example, a multi-layer perceptron can be used to process the mask and posture information of each object and the point cloud data (such as the coordinate data of the object) to obtain posture-related features (also called posture-aware features). The posture-related features and the feature vector of each object are spliced together to predict the posture-related residual information of each object. For example, a neural network or other methods can be used to predict the posture-related residual information based on the posture-related features and the feature vector of each object. Finally, the predicted residual information is merged with the output posture information as the final posture information.
[0140] When refining the shape-related latent variables, the obtained masks and shape-related latent variables and point cloud data of each object can be processed to obtain shape-related features; based on the shape-related features and the feature vector of each object, the shape-related residual information of each object can be obtained; based on the shape-related residual information and the shape-related latent variables of each object, the refined shape-related latent variables can be obtained. For example, a multi-layer perceptron can be used to process the obtained masks and shape-related latent variables and point cloud data (such as the coordinate data of the object) of each object to obtain shape-related features (also called shape-aware features). The shape-related features are spliced together with the feature vector of each object to predict the shape-related residual information of each object. For example, a neural network or other methods can be used to predict the shape-related residual information based on the shape-related features and the feature vector of each object. Finally, the predicted residual information is merged with the output shape-related latent variables as the final shape-related latent variables.
[0141] Fig.10 is a flowchart of image processing according to an exemplary embodiment of the present disclosure.
[0142] Reference Fig.10 After obtaining point cloud data (such as colored point clouds), sparse U-NET can be used to extract features from the point cloud data to obtain a multi-scale feature map of the point cloud data. At this time, the obtained multi-scale feature map can be used as the Y vector and K vector in the attention mechanism.
[0143] An initial feature vector for representing an object may be obtained, and the initial feature vector may include initial semantic features related to the semantics of the object and initial geometric features related to the geometry of the object. The initial feature vector may be a randomly initialized vector (such as a Q vector in an attention mechanism, for example, an SGDQ vector) and include two parts: semantic features and geometric features.
[0144] The multi-scale feature map and the initial SGDQ vector are input into the Transformer network. For example, the Transformer network can be a multi-layer Transformer decoder, and each layer of the decoder can include at least a cross attention layer, a self-attention layer, and a feed-forward neural network layer. Fig.10Only one decoder layer is shown, but the present disclosure is not limited to this. In the attention iteration of each SGDQ vector, each SGDQ vector can obtain all the features of a certain part (an object or an entity) in the input feature vector through cross-attention and self-attention mechanisms. Each SGDQ vector encodes only one object or one entity in the point cloud data and is input into the subsequent multi-task multi-layer perceptron. For example, the SGDQ vector of each object can be input into multiple multi-layer perceptrons (not shown) to obtain the semantic label (e.g., category), mask, shape-related latent variables and posture information of each object.
[0145] For example, taking the i-th SGDQ vector as an example, similarly refer to Figure 6 (For example, Figure 6 The slot in is replaced by SGDQ), the SGDQ vector includes a semantic feature part and a geometric feature part. The semantic features and geometric features in the SGDQ vector can be processed to perform object shape reconstruction, the semantic features and geometric features in the SGDQ vector can be processed to perform object pose estimation, the semantic features in the SGDQ vector can be processed to perform object category prediction, the semantic features and geometric features in the SGDQ vector can be processed to perform object mask estimation, and then the results of each task can be used to perform panoramic reconstruction.
[0146] After obtaining the posture information, the posture information can be further refined. For example, a posture-related feature extraction network (such as a multi-layer perceptron) can be used to process the mask and posture information of each object and the point cloud data (such as the coordinate data of the object) to obtain posture-related features. The posture-related features are concatenated with the feature vector of each object to predict the posture-related residual information of each object. Finally, the predicted residual information is fused with the output posture information as the final posture information.
[0147] Although Fig.10 Only the posture information is refined, but the present disclosure can also further refine the shape-related latent variables, masks, etc. in a similar manner as described above.
[0148] Finally, based on the obtained semantic labels, masks, shape-related latent variables, and pose information of each object, a panoramic reconstruction of the target scene is performed.
[0149] Fig.11 is an architectural diagram of an image processing model according to another exemplary embodiment of the present disclosure. Fig.11 The image processing model shown may include a feature extraction backbone network, a Transformer network, a multi-task multi-layer perceptron, and a posture-related feature extraction network.
[0150] Reference Fig.11 After measuring the target scene with a 3D scanning device, point cloud data of each object in the target scene can be obtained. Generally, there will be occlusion when measuring objects in the scene, so the collected point cloud data is incomplete point cloud data.
[0151] The feature extraction backbone network can be used to extract features from the collected point cloud data. For example, sparse 3D U-NET or DGCNN can be used to extract features from the point cloud data.
[0152] The Transformer network of the present disclosure can be used to generate object-centric feature vectors for the extracted features. For example, in each SGDQ attention iteration, each SGDQ vector can obtain all the features of a certain part (an object or an entity) of the input feature vector through cross-attention and self-attention mechanisms. Each SGDQ vector only encodes an object or an entity in the point cloud of the target scene and is input into the subsequent multi-task multi-layer perceptron. Similarly, Figure 3 As shown in the figure, in an indoor scene, by applying the attention competition mechanism for SGDQ to the feature map of the scene, the SGDQ vector representing each object (such as a table, a cabinet, a stool, etc.) can be obtained.
[0153] After obtaining the SGDQ vectors of each object, the SGDQ vectors can be input into a multi-task multi-layer perceptron. For example, the multi-task multi-layer perceptron may include multiple multi-layer perceptrons, such as a first multi-layer perceptron for performing a panoramic segmentation task, a second multi-layer perceptron for performing object shape reconstruction, and a third multi-layer perceptron for performing posture estimation. The first multi-layer perceptron can process the input SGDQ vectors to obtain semantic labels and masks of each object, the second multi-layer perceptron can process the input SGDQ vectors to obtain shape-related latent variables of each object (for example, which can be called shape latent variables or latent distributions), and the third multi-layer perceptron can process the input SGDQ vectors to obtain posture information of each object. The number and functions of the above-mentioned multi-layer perceptrons are only exemplary, and the present disclosure is not limited thereto.
[0154] When training the above network, for the mask, a binary cross entropy loss can be used, for the semantic label, a cross entropy loss can be used, for the shape latent variable, a weighted L1 loss can be used, and for the result of posture estimation, a mixture of cross entropy loss and weighted L1 loss can be used. For example, a binary cross entropy loss function can be constructed using the real mask and the predicted mask, a cross entropy loss function can be constructed using the real semantic label and the predicted semantic label, a weighted L1 loss function can be constructed using the real shape latent variable (for example, obtained by processing the real network by an encoder based on a neural network), an input shape latent variable (for example, obtained by processing the input object point cloud by an encoder based on a neural network) and a predicted shape latent variable, and a mixed loss function based on cross entropy loss and weighted L1 loss can be constructed using the real posture and the predicted posture. The network parameters of the above model are trained or updated by minimizing the results of the above-constructed loss function. The above losses are exemplary only, and the present disclosure is not limited thereto.
[0155] In addition, in order to obtain more accurate posture estimation results, a posture-related feature extraction network (such as a multi-layer perceptron) can be used to process the posture information, mask and point cloud data obtained above to obtain posture-related features, which are then concatenated with the feature vector of each object to predict the posture-related residual information of each object. Finally, the predicted residual information is fused with the output posture information as the final posture information.
[0156] Fig.11 The image processing model shown is a unified single-stage model for adapting models of augmented reality devices by using object-centric representations and techniques based on SGDQ to simultaneously perform panoptic segmentation, object shape reconstruction, and pose estimation. Through the object category-level shape prior learned by the network, masks and semantic labels for segmentation, poses (such as position, orientation), and latent variables representing the shape are simultaneously generated for each object represented by SGDQ. Such a model not only reduces the complexity of adjusting hyperparameters, but also avoids additional post-processing, and the results output by the model can be used in practical augmented reality applications.
[0157] After obtaining the mask, semantic label, shape latent variable, and posture of each object, the shape latent variable can be reconstructed using shape decoding to obtain the object mesh, and then the panoramic mask, semantic label, posture, and reconstructed mesh are directly combined to obtain the final scene panoramic reconstruction result. Here, in the training phase, the encoder is used to process the input object point cloud and the real object mesh separately, wherein the encoder can take the input object point cloud and the real object mesh as input. Alternatively, different encoders can be used to process the input object point cloud and the real object mesh separately to obtain the input shape latent variable and the real shape latent variable. In the inference phase, only the decoder is used to reconstruct the complete 3D mesh of each object.
[0158] According to an embodiment of the present disclosure, when the vector representing the object is an SGDQ vector, as Figure 4 As shown in Figure 1, similarly, the extracted feature map and the randomly initialized SGDQ vector can be input into the Transfrom network. Each SGDQ vector only encodes an object or an entity in the input scene point cloud. After N iterations, each SGDQ vector can represent the corresponding object. After obtaining the SGDQ vectors of each object, the panoramic segmentation task, object image reconstruction task and posture estimation task can be performed respectively.
[0159] When training a neural network for SDGQ, you can use the same method as the training method for the slot neural network. For example, refer to Figure 8 , when performing panoramic reconstruction based on the SGDQ vector, Figure 8 The attention network in is replaced by the Transformer network. It should be noted that when referring to Figures 1 to 8 When describing panoramic reconstruction based on SGDQ vector, Figures 1 to 8 The description or neural network for slot in is replaced by the description or neural network for SDGQ.
[0160] Fig.12 is a flowchart of an image processing method according to yet another exemplary embodiment of the present disclosure.
[0161] Reference Fig.12 After extracting the multi-scale feature map of the point cloud data of the target scene (such as L0 features, ..., Lk features, k belongs to [0, K], K is the number of layers of the multi-scale feature map), the multi-scale features and the initial SGDQ vector for representing each object in the target scene can be input into the Transformer network, which may include multiple Transformer decoders. Fig.12Only one Transformer decoder is shown, in which the multi-scale features and SGDQ vectors pass through the mask cross attention layer, the output of the mask cross attention layer is added (Add) and normalized (Norm), and then pass through the self-attention layer, the output of the self-attention layer is added and normalized, and then pass through the feedforward neural network layer. After multiple iterations, the SGDQ vector of each object in the target scene is obtained (where S represents semantic features and G represents geometric features).
[0162] Next, the SGDQ vector of each object can be passed through multiple MLPs to obtain the mask, shape-related latent variables, semantic labels (classifications), and posture information of each object. In the process of obtaining the mask, the feature output by the corresponding MLP can be multiplied with a feature in the multi-scale feature (such as the L0 feature) to obtain a mask of the same dimension. For example, the mask of the object can be obtained according to the following equation.
[0163] M=σ(L0f mask (S))>0.5∈0,1 N×K
[0164] Among them, represents the σ function, f mask (S) represents the output of the MLP corresponding to the mask, and N represents the number of points in the point cloud.
[0165] Fig.13 is a schematic diagram of refined gesture information according to an exemplary embodiment of the present disclosure.
[0166] Reference Fig.13 After obtaining the mask and pose information of each object, the mask can be used to crop the object in the original point cloud data, and then the cropped point cloud data oC is transformed using the pose information (such as angle information), such as applying a rotation angle to convert it into a coordinate system for pose-related feature learning, and the points representing the object in the coordinate system are input into multiple cascaded MLPs to extract pose-related features (e.g., pose-aware features F oc ), and then concatenate the extracted posture perception features with the SDGQ vector to predict the posture-related residual information, and then fuse the residual information with the posture information to obtain the refined posture information.
[0167] Fig.14 4 is a schematic diagram of the structure of an image processing device in the hardware operating environment of an embodiment of the present disclosure. Here, the image processing device 400 can realize the above-mentioned panoramic reproduction function.
[0168] like Fig.14As shown, the image processing device 400 may include: a processing component 401, a communication bus 402, a network interface 403, an input / output interface 404, a memory 405, and a power supply component 406. Among them, the communication bus 402 is used to realize the connection and communication signals between these components. The input / output interface 404 may include a video display (such as a liquid crystal display), a microphone and a speaker, and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.), and optionally, the input / output interface 404 may also include a standard wired interface and a wireless interface. The network interface 403 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity interface). The memory 405 may be a high-speed random access memory or a stable non-volatile memory. The memory 405 may also be a storage device independent of the aforementioned processing component 401. In addition, the image processing device 400 may also include various sensors.
[0169] The input and output interface 404 can obtain point cloud data of the target scene.
[0170] The processing component 401 may perform feature extraction on the point cloud data to obtain a feature map of the point cloud data; generate a feature vector representing each object contained in the target scene based on the feature map; and perform panoramic reconstruction of the target scene based on the feature vector of each object. The feature vector of the object may be an SDGQ vector including semantic features and geometric features, or a slot vector including shape-related features and posture-related features, but the present disclosure is not limited thereto.
[0171] A neural network for implementing the present disclosure may be trained on the image processing apparatus 400 or a trained neural network for implementing the present disclosure may be received from the outside to perform panoramic reconstruction.
[0172] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the image processing device 400, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0173] like Fig.14 As shown, the memory 405 as a storage medium may include an operating system (such as a MAC operating system), a data storage module, a network communication module, a user interface module, programs related to the above-mentioned image processing method and / or training method, and a database.
[0174] exist Fig.14In the image processing device 400 shown, the network interface 403 is mainly used for data communication with external devices / terminals; the input and output interface 404 is mainly used for data interaction with users; the processing component 401 and the memory 405 in the image processing device 400 can be set in the image processing device 400, and the image processing device 400 calls the program for implementing the image processing method of the present disclosure stored in the memory 405 and various APIs provided by the operating system through the processing component 401 to execute the image processing method provided by the embodiment of the present disclosure, etc.
[0175] The processing component 401 may include at least one processor, and the memory 405 stores a computer executable instruction set. When the computer executable instruction set is executed by at least one processor, the image processing method according to the exemplary embodiment of the present disclosure is executed. In addition, the processing component 401 may perform the panoramic reconstruction process described above, etc. However, the above examples are only exemplary, and the present disclosure is not limited thereto.
[0176] As an example, the image processing device 400 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the image processing device 400 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above instructions (or instruction sets) individually or in combination. The image processing device 400 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0177] In the image processing device 400, the processing component 401 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not a limitation, the processing component 401 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0178] The processing component 401 can run instructions or codes stored in the memory, wherein the memory 405 can also store data. Instructions and data can also be sent and received over a network via the network interface 403, wherein the network interface 403 can use any known transmission protocol.
[0179] The memory 405 may be integrated with the processor, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 405 may include a separate device, such as an external disk drive, a storage array, or any other storage device that may be used by a database system. The memory and the processor may be operationally coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the memory.
[0180] According to an exemplary embodiment of the present disclosure, an electronic device may be provided. Fig.15 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. The electronic device 500 may include at least one memory 502 and at least one processor 501. The at least one memory 502 stores a set of computer executable instructions. When the computer executable instruction set is executed by the at least one processor 501, the image processing method according to the exemplary embodiment of the present disclosure is executed.
[0181] The processor 501 may include a central processing unit (CPU), an audio and video processor, a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor, a positioning system. As an example and not a limitation, the processor 501 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0182] The memory 502 as a storage medium may include an operating system (eg, a MAC operating system), a data storage module, a network communication module, a user interface module, and a database.
[0183] The memory 502 may be integrated with the processor 501, for example, RAM or flash memory may be arranged within an integrated circuit microprocessor or the like. In addition, the memory 502 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 502 and the processor 501 may be operationally coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 501 can read files stored in the memory 502.
[0184] In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 500 may be connected to each other via a bus and / or a network.
[0185] As an example, the electronic device 500 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 500 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0186] Those skilled in the art will understand that Fig.15 The structures shown in the drawings do not constitute limitations of the drawings and may include more or less components than shown in the drawings, or combine certain components, or arrange the components differently.
[0187] At least one of the above-mentioned multiple modules can be implemented by an AI model. Functions associated with AI can be executed by a non-volatile memory, a volatile memory, and a processor.
[0188] The processor may include one or more processors. In this case, the one or more processors may be general-purpose processors, such as a central processing unit (CPU), an application processor (AP), etc., a processor used only for graphics (such as a graphics processing unit (GPU), a visual processing unit (VPU) and / or an AI-specific processor (such as a neural processing unit (NPU)).
[0189] One or more processors control the processing of input data according to predefined operating rules or artificial intelligence (AI) models stored in non-volatile memory and volatile memory. The predefined operating rules or artificial intelligence models can be provided by training or learning. Here, providing by learning means that by applying a learning algorithm to multiple learning data, a predefined operating rule or AI model with desired characteristics is formed. Learning can be performed in the device itself that executes AI according to an embodiment, and / or can be implemented by a separate server / device / system.
[0190] A learning algorithm is a method of using multiple learning data to train a predetermined target device (e.g., a robot) to enable, allow, or control the target device to make a determination or prediction. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning.
[0191] The artificial intelligence model can be obtained through training. Here, "obtained through training" means training a basic artificial intelligence model with multiple training data through a training algorithm to obtain a predefined operating rule or artificial intelligence model, which is configured to perform the desired features (or purposes).
[0192] As an example, the artificial intelligence model may include multiple neural network layers. Each of the multiple neural network layers includes multiple weight values, and the neural network calculation is performed by calculating between the calculation result of the previous layer and the multiple weight values. Examples of neural networks include, but are not limited to, convolutional neural networks (CNNs), deep neural networks (DNNs), recurrent neural networks (RNNs), restricted Boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), generative adversarial networks (GANs), and deep Q networks.
[0193] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to perform the image processing method according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0194] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, and instructions in the computer program product may be executed by a processor of a computer device to complete the above-mentioned image processing method.
[0195] The present disclosure proposes an object-centric high-realistic panoramic scene reconstruction technology, including: a unified single-stage model for adapting the model of MR / XR devices by using slot-based object-centric representations and techniques to simultaneously perform panoramic segmentation, object reconstruction, and pose estimation. A network module called PSR-SLOT designed specifically for panoramic scene reconstruction (PSR) is proposed, which is decoupled into shape feature space and pose feature space in each slot, thereby bringing more detailed information for shape reconstruction and more accurate pose estimation. A network module is proposed to align the shape code of the estimated shape and the input point cloud shape, so that the reconstructed mesh is consistent with the input point cloud.
[0196] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0197] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An image processing method, It is characterized in that The method comprises: Obtain point cloud data of the target scene; Performing feature extraction on the point cloud data to obtain a feature map of the point cloud data; generating a feature vector representing each object contained in the target scene based on the feature map; Based on the feature vector of each object, a panoramic reconstruction of the target scene is performed.
2. The method according to claim 1, It is characterized in that The feature vector of each object includes semantic features related to the semantics of the object and geometric features related to the geometry of the object.
3. The method according to claim 2, It is characterized in that Generating a feature vector representing each object contained in the target scene based on the feature map includes: Acquire an initial feature vector of each object, wherein the initial feature vector includes an initial semantic feature related to the semantics of the object and an initial geometric feature related to the geometry of the object; The feature map and the initial feature vector of each object are processed using a neural network to obtain a feature vector of each object.
4. The method according to claim 3, It is characterized in that The neural network is a Transformer network, which includes at least one sub-neural network, and each sub-neural network includes at least a cross-attention layer, a self-attention layer and a feedforward neural network layer.
5. The method according to claim 2, It is characterized in that Based on the feature vector of each object, performing panoramic reconstruction of the target scene includes: Inputting the feature vector of each object into at least one neural network to obtain a semantic label, a mask, a shape-related latent variable and posture information of each object; Based on the obtained semantic labels, masks, shape-related latent variables and posture information of each object, a panoramic reconstruction of the target scene is performed, The semantic label is obtained based on the semantic features in the feature vector.
6. The method according to claim 5, It is characterized in that Performing panoramic reconstruction of the target scene, including: Based on the obtained mask and posture information of each object and the point cloud data, obtain refined posture information as the posture information, and / or based on the obtained mask and shape-related latent variables of each object and the point cloud data, obtain refined shape-related latent variables as the shape-related latent variables; Based on the obtained semantic labels, masks, shape-related latent variables and posture information of each object, a panoramic reconstruction of the target scene is performed.
7. The method according to claim 6, It is characterized in that Get detailed posture information, including: Processing the obtained mask and posture information of each object and the point cloud data to obtain posture-related features; Based on the posture-related features and the feature vectors of each object, obtaining residual information related to the posture of each object; Refined posture information is obtained based on the posture-related residual information and the posture information of each object.
8. The method according to claim 6, It is characterized in that Obtain refined shape-related latent variables, including: Processing the obtained mask and shape-related latent variables of each object and the point cloud data to obtain shape-related features; Based on the shape-related features and the feature vector of each object, obtaining residual information related to the shape of each object; Based on the shape-related residual information and the shape-related latent variables of each object, a refined shape-related latent variable is obtained.
9. The method according to claim 1, It is characterized in that Also includes: Determining whether the target scene is a new scene; When the target scene is a new scene, saving the feature vector of each object; or In the case that the target scene is a scene associated with a previous scene, feature vectors of objects included in the previous scene are used to initialize feature vectors of corresponding objects in the target scene to obtain initial feature vectors of corresponding objects in the target scene.
10. The method according to claim 9, It is characterized in that Determining whether the target scene is a new scene includes: Outputting information for inquiring whether the target scene is a new scene; If feedback information is received, determining whether the target scene is a new scene based on the feedback information; or If no feedback information is received, it is determined that the target scene is a new scene.
11. The method according to claim 5, It is characterized in that Performing panoramic reconstruction of the target scene, including: Decoding the latent variable using a decoder to obtain an object grid of each object; The semantic label and mask of each object, the object mesh and the posture information are fused to obtain a panoramic image of the target scene.
12. An electronic device, It is characterized in that include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to perform the method according to any one of claims 1 to 11.
13. A computer-readable storage medium storing instructions, It is characterized in that When the instructions are executed by at least one processor, the at least one processor is prompted to perform the method according to any one of claims 1 to 11.
Citation Information
Cited By
Hybrid teaching method and system and electronic equipment
CN120298179A
