Three-dimensional object reconstruction method and device and electronic equipment
Through multi-scale visual feature extraction and correction technology, the problem of low accuracy in three-dimensional reconstruction of multi-target objects in the existing technology is solved, and more accurate spatial relationship prediction and robustness improvement are achieved.
Patent Information
- Application Number
- CN202310211618.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
It is difficult for the existing technology to accurately handle the spatial relationship and interaction between multiple target objects in 3D reconstruction, especially in the presence of occlusion, resulting in a decrease in 3D reconstruction accuracy.
By acquiring the target image, multi-scale visual feature extraction is performed to generate initial three-dimensional attitude information, and multiple visual feature maps of different scales are used for correction to generate target three-dimensional attitude information, and the multi-scale features are combined to improve the three-dimensional reconstruction accuracy.
It improves the accuracy and robustness of three-dimensional reconstruction of target objects, can predict the spatial relationship of multiple target objects more accurately, and solves the ambiguity problems caused by occlusion and interaction.
Smart Images

Figure CN118570362A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a three-dimensional object reconstruction method, device and electronic device. Background Art
[0002] Three-dimensional reconstruction refers to the establishment of a mathematical model suitable for computer representation and processing of three-dimensional objects. It is the basis for processing, operating and analyzing its properties in a computer environment. It is also a key technology for establishing virtual reality in computers to express the objective world.
[0003] In computer vision, 3D reconstruction refers to the process of reconstructing 3D information based on single-view or multi-view images. Summary of the invention
[0004] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] The embodiments of the present disclosure provide a three-dimensional object reconstruction method, device and electronic device to improve the accuracy of subsequent three-dimensional reconstruction of a target object.
[0006] In a first aspect, an embodiment of the present disclosure provides a three-dimensional object reconstruction method, comprising: acquiring a target image; wherein the target image includes at least two target objects; performing feature extraction on the target image to obtain a plurality of visual feature maps of different scales; generating initial three-dimensional posture information of the at least two target objects based on the target visual feature maps; the target visual feature map is a visual feature map of one scale among the plurality of visual feature maps of different scales; and correcting the initial three-dimensional posture information of the at least two target objects based on the plurality of visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects.
[0007] In a second aspect, an embodiment of the present disclosure provides a three-dimensional object reconstruction device, including an acquisition unit for acquiring a target image; wherein the target image includes at least two target objects; a feature extraction unit for performing feature extraction on the target image to obtain a plurality of visual feature maps of different scales; an initial prediction unit for generating initial three-dimensional posture information of the at least two target objects based on the target visual feature map; the target visual feature map is a visual feature map of one scale among the plurality of visual feature maps of different scales; and a correction unit for correcting the initial three-dimensional posture information of the at least two target objects based on the plurality of visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the three-dimensional object reconstruction method as described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the three-dimensional object reconstruction method as described in the first aspect.
[0010] The three-dimensional object reconstruction method, device and electronic device provided by the embodiments of the present disclosure, for a target image including at least two target objects, first extracts features of the target object to obtain multiple visual feature maps of different scales, then makes a preliminary prediction based on one of the visual feature maps to obtain initial three-dimensional posture information, and finally, uses the previous multiple visual feature maps of different scales to correct the initial three-dimensional posture information, thereby generating target three-dimensional posture information of at least two target objects. It can be seen that since this method can be combined with visual features at more scales, this method can improve the accuracy of subsequent three-dimensional reconstruction of target objects. At the same time, by correcting the three-dimensional posture information from visual features at multiple scales, the spatial relationship of at least two target objects can be more reasonably predicted. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0012] Figure 1 is a flow chart of an embodiment of a three-dimensional object reconstruction method according to the present disclosure;
[0013] Figure 2 is a schematic diagram of three target images in one embodiment of a three-dimensional object reconstruction method according to the present disclosure.
[0014] Figure 3 is a schematic diagram of a correction layer in one embodiment of a three-dimensional object reconstruction method according to the present disclosure.
[0015] Figure 4 is a flowchart of another embodiment of a three-dimensional object reconstruction method according to the present disclosure;
[0016] Figure 5 is a schematic diagram of a modified model in one embodiment of a three-dimensional object reconstruction method according to the present disclosure.
[0017] Figure 6 is a flowchart of another embodiment of a three-dimensional object reconstruction method according to the present disclosure;
[0018] Figure 7 is a schematic diagram of a correction layer in another embodiment of a three-dimensional object reconstruction method according to the present disclosure.
[0019] Figure 8 It is a schematic diagram of a completion flow in one embodiment of a three-dimensional object reconstruction method according to the present disclosure.
[0020] Fig. 9 is a schematic structural diagram of an embodiment of a three-dimensional object reconstruction device according to the present disclosure;
[0021] Fig.10 is an exemplary system architecture in which a three-dimensional object reconstruction method according to an embodiment of the present disclosure may be applied;
[0022] Fig.11 It is a schematic diagram of the basic structure of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0026] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0029] Please refer to Figure 1 , which shows a process of an embodiment of a three-dimensional object reconstruction method according to the present disclosure. The three-dimensional object reconstruction method can be applied to electronic devices. Figure 1 The three-dimensional object reconstruction method shown comprises the following steps:
[0030] Step 101, obtaining a target image.
[0031] The target image includes at least two target objects. The target image can be a single color picture.
[0032] The target object may be an interactive target object, such as a human hand. For example, the target image may include two hands interacting with each other. For example, the target image may include two hands in a handshake state (such as Figure 2 A); for example, the target image includes a person making a gesture representing "flower" with both hands (such as Figure 2 B). Of course, the target image may also include multiple hands interacting with each other. For example, the target image includes three people superimposed on each other (such as Figure 2 C).
[0033] The target object may also be a human body, a stationary object, an animal, a building, etc. Exemplarily, the target image may also include three rabbits playing with each other in a lawn.
[0034] Step 102: extract features from the target image to obtain a plurality of visual feature maps of different scales.
[0035] After acquiring the target image, feature extraction is performed on the target image to obtain a plurality of visual feature maps of different scales, wherein the number of the plurality of visual feature maps of different scales can be determined by the model itself. The specific number of visual feature maps of different scales can be set according to the needs of the subsequent correction process.
[0036] In one embodiment, the above-mentioned feature extraction can be implemented using a two-dimensional convolutional neural network, that is, the target image is input into a pre-trained two-dimensional convolutional neural network, and a pre-configured visual feature encoder in the two-dimensional convolutional neural network is used to output multiple visual feature maps of different scales.
[0037] Step 103: generating initial three-dimensional posture information of at least two target objects based on the target visual feature map.
[0038] The target visual feature map is a visual feature map of one scale among multiple visual feature maps of different scales.
[0039] That is, after obtaining a plurality of visual feature maps of different scales, the visual feature map of one scale can be used to preliminarily estimate the three-dimensional posture information of at least two target objects.
[0040] It should be noted that visual feature maps of different scales have visual features of different levels. Generally, the smaller the scale of the visual feature map, the higher the level of the visual features corresponding to it, and the richer its semantics. Therefore, here, the three-dimensional posture information of at least two target objects can be preliminarily estimated based on the visual feature map with the smallest scale among multiple visual feature maps of different scales.
[0041] Of course, in other embodiments, the three-dimensional posture information of at least two target objects can be preliminarily estimated based on the second smallest visual feature map among multiple visual feature maps of different scales, or the three-dimensional posture information of at least two target objects can be preliminarily estimated based on the visual feature map of any one scale.
[0042] In one embodiment, the initial three-dimensional posture information may include shape and posture parameters of at least two target objects, and three-dimensional displacement parameters between at least two target objects.
[0043] The three-dimensional displacement parameters between at least two target objects may be three-dimensional displacement parameters between preset points of the target objects. The preset points may be set according to different situations. In some scenarios, the preset points may be root nodes or center points. For example, when the target objects are hands, the joint points of the hands (such as the joint points of the palms) may be used as root nodes to obtain the three-dimensional displacement parameters between the hands.
[0044] It should be noted that the core of 3D reconstruction is to construct a 2D object into a corresponding 3D model, and the 3D model is usually represented by parameter information. Here, the morphology and posture parameters of at least two target objects represent the 3D models corresponding to the target objects, and the 3D displacement parameters between at least two target objects represent the positional relationship between at least two target objects when they interact. The 3D displacement parameters are used to restore the positional relationship between the 3D models after placing at least two 3D models in the same coordinate system.
[0045] Exemplarily, assuming that the target objects are two hands, the generated initial three-dimensional posture information of the target objects may include the three-dimensional hand models corresponding to the two hands (including morphology and posture parameters), and the positional relationship between the two three-dimensional hand models.
[0046] In another embodiment, the initial three-dimensional posture information may include the shape and posture parameters of the at least two target objects, and the absolute coordinates corresponding to the at least two target objects.
[0047] It should be noted that the description of the corresponding morphology and posture parameters of the at least two target objects can refer to the explanation in the above embodiment. The absolute coordinates corresponding to the at least two target objects are the coordinates of the at least two target objects in the same coordinate system.
[0048] Specifically, the morphology and posture parameters of the at least two target objects represent the three-dimensional models corresponding to the target objects, and the absolute coordinates corresponding to the at least two target objects can be obtained by combining the three-dimensional displacement parameters of the at least two target objects. That is, the absolute coordinates of the target objects can be obtained by the three-dimensional models of the target objects, that is, the three-dimensional displacement parameters between the target objects.
[0049] Exemplarily, assuming that the target objects are two hands, the generated initial three-dimensional posture information of the target objects may include the three-dimensional hand models corresponding to the two hands (including morphology and posture parameters), and the coordinates of the two three-dimensional hand models in the same coordinate system.
[0050] That is, the three-dimensional posture information can be the shape and posture parameters of each target object, and the three-dimensional displacement parameters between the target objects; it can also be the shape and posture parameters of each target object, and the coordinates of the target objects in the same coordinate system (ie, absolute coordinates).
[0051] Step 104: correcting the initial three-dimensional posture information of at least two target objects based on a plurality of visual feature maps of different scales to generate target three-dimensional posture information of at least two target objects.
[0052] After completing the preliminary estimation of the 3D posture information of the target object to obtain preliminary 3D posture information, the initial 3D posture information is corrected based on multiple visual feature maps of different scales to obtain target 3D posture information of at least two target objects.
[0053] In one embodiment, the specific process of correcting the initial three-dimensional posture information of at least two target objects based on multiple visual feature maps of different scales may be to fuse multiple visual feature maps of different scales to obtain a fused visual feature map, and then re-extract feature information from the fused visual feature map based on the initial three-dimensional posture information. Then, the target three-dimensional posture information of at least two target objects is output using the feature information.
[0054] Exemplarily, it is assumed that the target objects are two hands, and the visual feature maps are visual feature maps of two scales, namely visual feature map A and visual feature map B. First, visual feature map A and visual feature map B are fused to obtain visual feature map C, and then based on the initial three-dimensional posture information, feature information is re-extracted from visual feature map C, where the feature information can be feature information of hand joints, and finally, the target three-dimensional posture information of the two hands is obtained using the features of the hand joints.
[0055] In the related technologies of 3D reconstruction, the key feature information in a single feature map is mainly used, which can effectively reconstruct a single target object in 3D. However, when there are at least two target objects, there may be situations where the target objects interact with each other or occlude each other. Therefore, it is impossible to effectively restore the occluded target, and it is impossible to effectively restore the relationship between multiple target objects. Therefore, in the related technologies, for scenes with at least two target objects, it is impossible to accurately achieve 3D reconstruction.
[0056] In the embodiment of the present application, for a target image including at least two target objects, firstly, feature extraction is performed on the target object to obtain a plurality of visual feature maps of different scales, then, a preliminary prediction is made based on one of the visual feature maps to obtain initial three-dimensional posture information, and finally, the initial three-dimensional posture information is corrected using the previous plurality of visual feature maps of different scales, thereby generating target three-dimensional posture information of at least two target objects. It can be seen that, since this method can be combined with visual features at more scales, this method can improve the accuracy of subsequent three-dimensional reconstruction of target objects, and at the same time, by correcting the three-dimensional posture information from visual features at multiple scales, the spatial relationship of at least two target objects can be more reasonably predicted.
[0057] In one embodiment, the above step 104 may further specifically include: inputting multiple visual feature maps of different scales and initial three-dimensional posture information of at least two target objects into the correction model to generate target three-dimensional posture information of at least two target objects.
[0058] Here, a correction model can be constructed in advance, and then multiple visual feature maps of different scales and initial three-dimensional posture information of at least two target objects are used as inputs of the correction model, and then the correction model is directly used to output the target three-dimensional posture information of at least two target objects.
[0059] The correction model is described below.
[0060] In one embodiment, the modified model includes N modified layers.
[0061] Wherein, N is a positive integer, and when N is at least two, the N correction layers are connected in sequence. Of course, N can also be 1, that is, the correction model includes one correction layer.
[0062] See also Figure 3 For at least one correction layer in the correction model, the input of the correction layer includes the optimized visual feature map output by the previous correction layer, one of the multiple visual feature maps of different scales, and the optimized three-dimensional posture information of at least two target objects output by the previous correction layer; the visual feature maps of the multiple visual feature maps of different scales input by each correction layer are different; and the output of each correction layer includes the optimized visual feature map and the optimized three-dimensional posture information of at least two target objects.
[0063] That is, the input data of each correction layer includes three items of data, namely, two visual feature maps and the 3D posture information output by the previous correction layer, and the output data of each correction layer includes two items of data, namely, the optimized visual feature map and the optimized 3D posture information.
[0064] It should be noted that, when the correction layer is the first correction layer in the correction model, the input of the first correction layer includes two visual feature maps of multiple visual feature maps of different scales and initial three-dimensional pose information; when the correction layer is the last correction layer in the correction model, the target three-dimensional pose information of at least two target objects is determined according to the optimized three-dimensional pose information of at least two target objects output by the last correction layer. Here, the optimized three-dimensional pose information of at least two target objects output by the last correction layer is the target three-dimensional pose information of at least two target objects.
[0065] It can be understood that when the correction layer is the first correction layer in the correction model, the two visual feature maps included in its input data are both from visual feature maps of multiple scales; wherein, the two visual feature maps are different visual feature maps among the feature maps of multiple scales.
[0066] See also Figure 4 Optionally, for any one of the N correction layers, the method further includes: steps 401 to 404.
[0067] Step 401, the optimized visual feature map output by the previous correction layer and one of the visual feature maps of multiple different scales are fused to obtain the optimized visual feature map; or two visual feature maps of the multiple visual feature maps of different scales are fused to obtain the optimized visual feature map.
[0068] In one embodiment, two-dimensional convolution can be used to fuse two input visual feature maps to obtain an optimized visual feature map.
[0069] It can be understood that when the correction layer is the first correction layer in the correction model, two visual feature maps of multiple visual feature maps of different scales can be fused using two-dimensional convolution to obtain an optimized visual feature map.
[0070] Here, the visual feature maps input to each correction layer can be selected in order of scale from small to large. For example, the first correction layer inputs the two visual feature maps with the smallest scale, the second correction layer inputs the optimized visual feature map output by the first correction layer and the third smallest visual feature map among multiple visual feature maps of different scales, and so on.
[0071] To understand the input of each rectification layer to the visual feature map, see Figure 5 Assuming that four visual feature maps of different scales are obtained through step 102, and the number of correction layers is three (i.e., N=3), the input of the first correction layer can be the two visual feature maps with the smallest scales among the visual feature maps of the four scales, the input of the second correction layer can be the optimized visual feature map output by the first correction layer and the visual feature map with the third smallest scale among the visual feature maps of the four scales, and the input of the third correction layer can be the optimized visual feature map output by the second correction layer and the visual feature map with the fourth smallest scale among the visual feature maps of the four scales (which is also the largest visual feature map among the visual feature maps of the four scales).
[0072] It should be noted that as the feature scale decreases, the semantics gradually increases, and local details such as edges and contours will decrease. In the early correction stage, semantic information is captured, thereby improving global robustness. In the later correction stage, local features are captured, and local alignment can be achieved.
[0073] Step 402, extracting feature information from the optimized visual feature map based on the optimized three-dimensional posture information of at least two target objects output by the previous correction layer; or, extracting feature information from the optimized visual feature map based on the initial three-dimensional posture information of at least two target objects.
[0074] After obtaining the optimized visual feature map, the optimized three-dimensional posture information of at least two target objects output by the previous correction layer is used to perform feature extraction on the optimized visual feature map to extract feature information in the optimized visual feature map.
[0075] Here, the above feature extraction can be realized by using the preset coordinate mapping relationship between the three-dimensional space and the two-dimensional space. The preset coordinate mapping relationship between the three-dimensional space and the two-dimensional space can be pre-set or obtained from the visual feature map through global pooling, which is not limited here.
[0076] It should be noted that the feature information is the feature corresponding to the target object, that is, the feature information is information that can reflect the target object.
[0077] Exemplarily, the target object is a human hand, and the feature information here may be feature information of hand joints.
[0078] It should be noted that, when the correction layer is the first correction layer, the optimized three-dimensional posture information of at least two target objects output by the previous correction layer is the initial three-dimensional posture information.
[0079] Step 403: Obtain optimized three-dimensional posture information of at least two target objects based on the feature information.
[0080] After acquiring the feature information that can reflect the target object, prediction is performed again based on the feature information to obtain the optimized three-dimensional posture information of the two target objects.
[0081] Step 404: outputting the optimized visual feature map and optimized three-dimensional posture information of at least two target objects.
[0082] Finally, the optimized visual feature map and the optimized three-dimensional posture information of at least two target objects are output. Here, when the correction layer is an intermediate layer in the correction model, the correction layer outputs the optimized visual feature map and the optimized three-dimensional posture information of at least two target objects to the next correction layer. When the correction layer is the last layer in the correction model, the optimized three-dimensional posture information of at least two target objects output by the correction layer is the target three-dimensional posture information of at least two target objects.
[0083] It can be seen that the embodiment of the present application provides a decoupled iterative correction technology, which decomposes the processing of two-dimensional images from the processing of three-dimensional models. At the two-dimensional level, through the fusion technology of multiple image layers, more accurate pixel alignment is achieved, that is, pixel-level alignment of the input image and the reconstructed three-dimensional model is guaranteed. At the three-dimensional level, through feature information, the prediction of optimized three-dimensional posture information of at least two target objects can be achieved, which can improve the spatial relationship of at least two target objects and enhance the robustness of three-dimensional reconstruction of the target objects.
[0084] Optionally, the at least two target objects may include a first target object and a second target object. Accordingly, the above step 403, based on the feature information, obtaining optimized three-dimensional posture information of at least two target objects may specifically include: performing adjacency modeling on the feature information of the first target object based on the first network model to obtain first feature information of the first target object; performing adjacency modeling on the feature information of the second target object based on the second network model to obtain first feature information of the second target object; performing long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on the third network model to obtain second feature information; and obtaining optimized three-dimensional posture information of at least two target objects based on the second feature information.
[0085] The above-mentioned first network model and second network model can be convolutional neural network models, for example, they can be graph convolution models, and the graph convolution model can directly perform information transmission and aggregation on the graph structure data according to the connection relationship between nodes.
[0086] Exemplarily, if the first target object is the left hand of the human body, and the second target object is the right hand of the human body, the graph convolution can be used to model the connection relationship of the left hand of the human body, and then obtain the feature information of the joint points of the left hand of the human body (the first feature information); and then the graph convolution is used to model the connection relationship of the right hand of the human body, and then obtain the feature information of the joint points of the right hand of the human body (the first feature information). Here, it can be understood that the graph convolution model with the same network structure but different parameters is used for processing the left hand and the right hand of the human body respectively.
[0087] It should be noted that the above process can be understood as an optimization of the feature information obtained in the previous steps, thereby obtaining enhanced feature information. As in the above example, enhanced feature information of the joints of both hands is obtained. In the scenario where the first target object and the second target object are hands, the connection relationship modeling of the graph convolution model can alleviate the ambiguity caused by the self-similarity of the local representation of the joints (that is, it can effectively distinguish different fingers), and at the same time alleviate the local information loss caused by mutual occlusion.
[0088] The third network model may be a deep neural network model. For example, the third network model may be a Transformer model. The Transformer model is a deep neural network model based on a self-attention mechanism. It can model long-distance relationships between nodes in parallel. During the interaction process, it assigns different weights according to the importance of each part of the input node.
[0089] Exemplarily, the first target object is the human left hand and the second target object is the human right hand. The Transformer model can be used to perform long-distance relationship modeling on the first feature information of the human left hand and the first feature information of the human right hand to obtain the spatial relationship feature information of the two hands (second feature information).
[0090] It is understandable that the Transformer model can be used to efficiently model long-distance relationships in the three-dimensional node feature space, thereby improving the rationality of the predicted spatial relationship between the two target objects. In the scenario where the first target object and the second target object are hands, the long-distance relationship modeling of the Transformer model can alleviate the ambiguity caused by joint mutual occlusion.
[0091] See also Figure 6 Optionally, for any one of the N correction layers, the method further includes: steps 601 to 606.
[0092] Step 601, fusing the optimized visual feature map output by the previous correction layer and one of the visual feature maps of multiple different scales to obtain a fused visual feature map; or fusing two visual feature maps of the multiple visual feature maps of different scales to obtain a fused visual feature map.
[0093] In one embodiment, two-dimensional convolution may be used to fuse two input visual feature maps to obtain a fused visual feature map.
[0094] It can be understood that when the correction layer is the first correction layer in the correction model, two visual feature maps of multiple visual feature maps of different scales can be fused using two-dimensional convolution to obtain a fused visual feature map.
[0095] Here, the visual feature maps input to each correction layer can be selected in order of scale from small to large. For example, the first correction layer inputs the two visual feature maps with the smallest scale, the second correction layer inputs the optimized visual feature map output by the first correction layer and the third smallest visual feature map among multiple visual feature maps of different scales, and so on.
[0096] Step 602, extracting feature information from the fused visual feature map based on the optimized three-dimensional posture information of at least two target objects output by the previous correction layer; or extracting feature information from the fused visual feature map based on the initial three-dimensional posture information of at least two target objects.
[0097] After obtaining the fused visual feature map, the optimized three-dimensional posture information of at least two target objects output by the previous correction layer is used to perform feature extraction on the fused visual feature map to extract feature information in the fused visual feature map.
[0098] It should be noted that the characteristic information is the characteristic information corresponding to the target object, that is, the characteristic information is the information that can reflect the target object.
[0099] Exemplarily, the target object is a human hand, and the feature information here may be feature information of hand joints.
[0100] Step 603: Obtain optimized three-dimensional posture information of at least two target objects based on the feature information.
[0101] After acquiring the feature information that can reflect the target object, prediction is performed again based on the feature information to obtain the optimized three-dimensional posture information of the two target objects.
[0102] Step 604 , performing back projection based on the feature information and the optimized three-dimensional posture information of at least two target objects to obtain a two-dimensional visual feature map.
[0103] Here, the acquired feature information and the optimized three-dimensional posture information of at least two target objects output by the current correction layer (ie, itself) are used for back projection to obtain a projected two-dimensional visual feature map.
[0104] Here, the above reverse projection can be realized by using the preset coordinate mapping relationship between the three-dimensional space and the two-dimensional space. The preset coordinate mapping relationship between the three-dimensional space and the two-dimensional space can be pre-set or obtained from the visual feature map through global pooling, which is not limited here.
[0105] Optionally, when the feature information includes M feature points and M is a positive integer greater than one, an embodiment of the present application also provides an unambiguous method for reversely projecting the feature information into a two-dimensional visual feature map. The method may specifically include: performing reverse projection based on the M feature points and optimized three-dimensional posture information of at least two target objects to obtain M initial two-dimensional visual feature maps; merging the M initial two-dimensional visual feature maps to generate a two-dimensional visual feature map.
[0106] Here, when the feature information includes M feature points, an initial two-dimensional visual feature map will be obtained for each feature point, and then the M initial two-dimensional data features will be merged to obtain a two-dimensional visual feature map. In this way, the ambiguity or error caused by projecting M feature points at the same time can be avoided.
[0107] Step 605: Generate an optimized visual feature map based on the two-dimensional visual feature map and the fused visual feature map.
[0108] After obtaining the two-dimensional visual feature map, the two-dimensional visual feature map is merged with the fused visual feature map to obtain the optimized visual feature map.
[0109] Here, the fused visual feature map can also be enhanced by using the two-dimensional visual feature map through two-dimensional convolution to obtain the optimized visual feature map.
[0110] It can be seen that an embodiment of the present application provides an unconfusion node feature projection technology, which projects node features into a two-dimensional visual feature map, thereby providing strong disambiguation clues for the final optimized visual feature map and achieving more accurate pixel alignment.
[0111] Step 606: outputting the optimized visual feature map and optimized three-dimensional posture information of at least two target objects.
[0112] Finally, the optimized visual feature map and the optimized three-dimensional posture information of at least two target objects are output. Here, when the correction layer is an intermediate layer in the correction model, the correction layer outputs the optimized visual feature map and the optimized three-dimensional posture information of at least two target objects to the next correction layer. When the correction layer is the last layer in the correction model, the optimized three-dimensional posture information of at least two target objects output by the correction layer is the target three-dimensional posture information of at least two target objects.
[0113] In one embodiment, the at least two target objects include a first target object and a second target object. Accordingly, step 603 of obtaining optimized three-dimensional posture information of at least two target objects based on feature information may specifically include: performing adjacency modeling on the feature information of the first target object based on the first network model to obtain first feature information of the first target object; performing adjacency modeling on the feature information of the second target object based on the second network model to obtain first feature information of the second target object; performing long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on the third network model to obtain second feature information; and obtaining optimized three-dimensional posture information of at least two target objects based on the second feature information.
[0114] It should be noted that the specific process of the above steps can refer to the description of step 403 in the above embodiment, and in order to avoid redundancy, it is not repeated here.
[0115] Correspondingly, step 604 performs reverse projection based on the feature information and the optimized three-dimensional posture information of at least two target objects to obtain a two-dimensional visual feature map, which may also specifically include: performing adjacency relationship modeling on the feature information of the first target object based on the first network model to obtain the first feature information of the first target object; performing adjacency relationship modeling on the feature information of the second target object based on the second network model to obtain the first feature information of the second target object; performing long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on the third network model to obtain the second feature information; performing reverse projection based on the second feature information and the optimized three-dimensional posture information of at least two target objects to obtain a two-dimensional visual feature map.
[0116] It can be understood that the optimized feature information (i.e., the second feature information) is used for back projection here, and then the node features with global information can be projected into a two-dimensional feature map, thereby providing strong disambiguation clues for the visual feature map (long-range information is transmitted back to the two-dimensional space), achieving more accurate pixel alignment, and alleviating the ambiguity caused by self-occlusion and self-similarity of local features.
[0117] In view of the above steps, the following Figure 7 , illustrated with a complete example. Figure 7 The processing of one of the correction layers is shown in FIG.
[0118] Step 1: Use two-dimensional convolution to fuse the two input visual feature maps to obtain a fused visual feature map.
[0119] Step 2: based on the optimized 3D posture information (or initial 3D posture information) of at least two target objects output by the previous correction layer, extract feature information from the fused visual feature map.
[0120] When the target object is a hand, the feature information is feature information of hand joints.
[0121] Step three, optimizing the characteristic information based on the first network model, the second network model and the third network model to obtain optimized characteristic information (ie, the second characteristic information in the aforementioned embodiment).
[0122] Step 4: Obtain optimized three-dimensional posture information of at least two target objects based on the optimized feature information; and simultaneously reversely project the optimized feature information into a two-dimensional visual feature map.
[0123] Step 5: Through two-dimensional convolution, the two-dimensional visual feature map is used to enhance the fused visual feature map to obtain an optimized visual feature map.
[0124] Step six, outputting the optimized visual feature map and optimized three-dimensional posture information of at least two target objects.
[0125] Optionally, the above-mentioned step 103 generates initial three-dimensional posture information of at least two target objects based on the target visual feature map, and can also specifically include: extracting object feature information of at least two target objects from the target visual feature map based on the spatial attention mechanism; extracting spatial relationship feature information of at least two target objects from the target visual feature map based on global pooling; generating initial three-dimensional posture information of at least two target objects based on the object feature information of at least two target objects and the spatial relationship feature information of at least two target objects.
[0126] The initial three-dimensional posture information of the at least two target objects may include shape and posture parameters of the at least two target objects, and three-dimensional displacement parameters between the at least two target objects.
[0127] It should be noted that the spatial attention mechanism can be used to extract the feature information of each target object (i.e., object feature information), and the spatial relationship between target objects (i.e., spatial relationship feature information) can be extracted based on global pooling. In this way, a preliminary and relatively accurate prediction of the three-dimensional posture information of at least two target objects can be achieved.
[0128] For example, when the target object includes the left and right hands of a human body, the spatial attention mechanism can be used to extract the hand feature information of the left and right hands, and the global pooling can be used to extract the spatial relationship features of the two hands.
[0129] In summary, the three-dimensional object reconstruction method provided in the embodiment of the present application may include three stages: the first stage is the visual feature extraction stage, which may correspond to the aforementioned steps 101 and 102. The second stage is the initial estimation stage, which may correspond to the aforementioned step 103. The third stage is the iterative correction stage, which may correspond to the aforementioned step 104.
[0130] Combine the following Figure 8 , the three-dimensional object reconstruction method provided in the embodiment of the present application is fully described with the target objects being the left hand and the right hand of the human body.
[0131] After acquiring the target image, the visual feature extraction stage is first entered, in which features of the target image are extracted to obtain four visual feature maps of different scales.
[0132] Then it enters the initial estimation stage. Specifically, based on the spatial attention mechanism, the object feature information of the left hand and the right hand are extracted from the target visual feature map (which can be the visual feature with the smallest scale in the four visual feature maps of different scales); the spatial relationship features of both hands are extracted from the target visual feature map based on two-dimensional global pooling. Then, based on the object feature information of the left and right hands and the spatial relationship features of both hands, the three-dimensional model of the left hand (corresponding to the shape and posture parameters of the left hand), the three-dimensional model of the right hand (corresponding to the shape and posture parameters of the right hand) and the three-dimensional displacement parameters between the left and right hands are obtained.
[0133] Finally, the iterative correction stage (i.e., correcting the model) is entered, which includes three correction layers.
[0134] For the first correction layer, it includes the following steps:
[0135] Step 1: Use two-dimensional convolution to fuse two input visual feature maps (the two visual feature maps with the smallest scale among four visual feature maps of different scales) to obtain a fused visual feature map.
[0136] Step 2: Based on the initial 3D posture information outputted in the initial estimation phase, the hand joint feature information is extracted from the fused visual feature map.
[0137] Step three, based on the graph convolution model and the Transformer model, the feature information of the hand joints is optimized to obtain the optimized feature information (i.e., the spatial relationship feature information of the two hands).
[0138] Step 4: Based on the optimized feature information, the optimized three-dimensional posture information of the two hands is obtained (such as the optimized left hand three-dimensional model, the optimized right hand three-dimensional model, and the three-dimensional displacement parameters between the left and right hands); at the same time, the optimized feature information is reversely projected into a two-dimensional visual feature map.
[0139] Step 5: Through two-dimensional convolution, the two-dimensional visual feature map is used to enhance the fused visual feature map to obtain an optimized visual feature map.
[0140] Step six: output the optimized visual feature map and the optimized three-dimensional posture information of the two hands.
[0141] It should be noted that the implementation process of the second and third correction layers is similar to that of the first correction layer, and the same parts can be referenced to each other. The difference between the second correction layer and the first correction layer is that its input is the optimized visual feature map output by the first correction layer, the third smallest visual feature map among the four different scales of visual feature maps, and the optimized three-dimensional posture information of the two hands output by the first correction layer. The difference between the third correction layer and the first correction layer is that its input is the optimized visual feature map output by the second correction layer, the fourth smallest visual feature map among the four different scales of visual feature maps, and the optimized three-dimensional posture information of the two hands output by the second correction layer. Finally, the output of the third correction layer is the target three-dimensional posture information of the left and right hands.
[0142] Through the above examples, the embodiment of the present application provides a decoupled iterative correction technology, which decomposes the processing of two-dimensional images from the processing of three-dimensional models. At the two-dimensional level, through the fusion technology of multiple image layers, more accurate pixel alignment is achieved, that is, pixel-level alignment between the input image and the predicted three-dimensional model is guaranteed. At the three-dimensional level, by compressing the visual feature map into compact node features, using the graph convolution model and the Transformer model to efficiently model long-distance relationships in the three-dimensional node feature space, the modeling of the spatial relationship between the two hands and between the two hands is achieved, which alleviates the ambiguity caused by self-occlusion and self-similarity, and improves the robustness of the three-dimensional reconstruction of both hands.
[0143] Furthermore, in the above process, an unconfusion node feature projection technology is proposed to project the node features with global information into a two-dimensional visual feature map, thereby providing strong disambiguation clues for the optimized visual feature map (long-range information is transmitted back to the two-dimensional space) and achieving pixel alignment.
[0144] It should also be noted that digitizing the hands in two-handed 3D reconstruction is an indispensable technology in the field of extended reality technology, and in some VR (Virtual Reality) devices, it is also necessary to handle the interaction of two hands. The 3D reconstruction of two-handed hands is crucial to improving the user experience of VR devices. In addition, 3D reconstruction will help to realize complex human-computer interactions such as gesture semantic understanding and hand-object interaction. It can be seen from the above examples that the 3D object reconstruction method provided in the embodiments of the present application can accurately realize the 3D reconstruction of two hands, and can be applied to the process of interaction, occlusion, and contact between two hands.
[0145] Further references Fig. 9 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a three-dimensional object reconstruction device. Figure 1Corresponding to the embodiment of the three-dimensional object reconstruction method shown, the device can be specifically applied to various electronic devices.
[0146] like Fig. 9 As shown, the three-dimensional object reconstruction device of this embodiment includes: an acquisition unit 901, which is used to acquire a target image; wherein the target image includes at least two target objects; a feature extraction unit 902, which is used to extract features from the target image to obtain a plurality of visual feature maps of different scales; an initial prediction unit 903, which is used to generate initial three-dimensional posture information of the at least two target objects based on the target visual feature map; the target visual feature map is a visual feature map of one scale among the plurality of visual feature maps of different scales; a correction unit 904, which is used to correct the initial three-dimensional posture information of the at least two target objects based on the plurality of visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects. In some embodiments, the three-dimensional object reconstruction device also includes a processing unit.
[0147] In one embodiment, the correction unit 904 is further specifically used to input the multiple visual feature maps of different scales and the initial three-dimensional posture information of the at least two target objects into the correction model to generate the target three-dimensional posture information of the at least two target objects.
[0148] In one embodiment, the correction model includes N correction layers, which are connected in sequence; the input of at least one of the correction layers includes the optimized visual feature map output by the previous correction layer, one of the multiple visual feature maps of different scales, and the optimized three-dimensional posture information of the at least two target objects output by the previous correction layer; the visual feature maps of the multiple visual feature maps of different scales input to each correction layer are different; the output of each correction layer includes the optimized visual feature map and the optimized three-dimensional posture information of the at least two target objects; N is a positive integer; or, when the correction layer is the first correction layer in the correction model, the input of the first correction layer includes two visual feature maps of the multiple visual feature maps of different scales and the initial three-dimensional posture information of the at least two target objects; when the correction layer is the last correction layer in the correction model, the target three-dimensional posture information of the at least two target objects is determined according to the optimized three-dimensional posture information of the at least two target objects output by the last correction layer.
[0149] In one embodiment, for any one of the N correction layers, the correction unit 904 is further specifically used to fuse the optimized visual feature map output by the previous correction layer and one of the multiple visual feature maps of different scales to obtain the optimized visual feature map; or, to fuse two visual feature maps of the multiple visual feature maps of different scales to obtain the optimized visual feature map; based on the optimized three-dimensional posture information of the at least two target objects output by the previous correction layer, extract feature information from the optimized visual feature map; or, based on the initial three-dimensional posture information of the at least two target objects, extract feature information from the optimized visual feature map; based on the feature information, obtain the optimized three-dimensional posture information of the at least two target objects; output the optimized visual feature map and the optimized three-dimensional posture information of the at least two target objects.
[0150] In one embodiment, the at least two target objects include a first target object and a second target object; the correction unit 904 is further specifically used to perform adjacency relationship modeling on the feature information of the first target object based on the first network model to obtain the first feature information of the first target object; perform adjacency relationship modeling on the feature information of the second target object based on the second network model to obtain the first feature information of the second target object; perform long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on a third network model to obtain second feature information; and obtain optimized three-dimensional posture information of the at least two target objects based on the second feature information.
[0151] In one embodiment, for any one of the N correction layers, the correction unit 904 is further specifically used to fuse the optimized visual feature map output by the previous correction layer and one of the multiple visual feature maps of different scales to obtain a fused visual feature map; or, to fuse two visual feature maps of the multiple visual feature maps of different scales to obtain a fused visual feature map; based on the optimized three-dimensional posture information of the at least two target objects output by the previous correction layer, extract feature information from the fused visual feature map; or, based on the initial three-dimensional posture information of the at least two target objects, extract feature information from the fused visual feature map; based on the feature information, obtain the optimized three-dimensional posture information of the at least two target objects; based on the feature information, perform back projection based on the feature information and the optimized three-dimensional posture information of the at least two target objects to obtain a two-dimensional visual feature map; based on the two-dimensional visual feature map and the fused visual feature map, generate the optimized visual feature map; output the optimized visual feature map and the optimized three-dimensional posture information of the at least two target objects.
[0152] In one embodiment, the at least two target objects include a first target object and a second target object; the correction unit 904 is further specifically used to perform adjacency relationship modeling on the feature information of the first target object based on the first network model to obtain the first feature information of the first target object; perform adjacency relationship modeling on the feature information of the second target object based on the second network model to obtain the first feature information of the second target object; perform long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on a third network model to obtain second feature information; and obtain optimized three-dimensional posture information of the at least two target objects based on the second feature information.
[0153] In one embodiment, the at least two target objects include a first target object and a second target object; the correction unit 904 is further specifically used to perform adjacency relationship modeling on the feature information of the first target object based on the first network model to obtain the first feature information of the first target object; perform adjacency relationship modeling on the feature information of the second target object based on the second network model to obtain the first feature information of the second target object; perform long-distance relationship modeling on the first feature information of the first target object and the first feature information of the second target object based on a third network model to obtain second feature information; perform reverse projection based on the second feature information and the optimized three-dimensional posture information of the at least two target objects to obtain the two-dimensional visual feature map.
[0154] In one embodiment, the feature information includes M feature points, and the correction unit 904 is further specifically used to perform reverse projection based on the M feature points and the optimized three-dimensional posture information of the at least two target objects to obtain M initial two-dimensional visual feature maps; and merge the M initial two-dimensional visual feature maps to generate the two-dimensional visual feature map.
[0155] In one embodiment, the initial prediction unit 903 is further specifically used to extract object feature information of the at least two target objects from the target visual feature map based on a spatial attention mechanism; extract spatial relationship feature information of the at least two target objects from the target visual feature map based on global pooling; generate initial three-dimensional posture information of the at least two target objects based on the object feature information of the at least two target objects and the spatial relationship feature information of the at least two target objects; wherein the initial three-dimensional posture information of the at least two target objects includes shape and posture parameters of the at least two target objects, and three-dimensional displacement parameters between the at least two target objects.
[0156] In one embodiment, the at least two target objects include two interacting target objects.
[0157] In one embodiment, the target object is a hand; and the target image includes a left hand and a right hand.
[0158] In one embodiment, the target visual feature map is a visual feature map with the smallest scale among the multiple visual feature maps with different scales.
[0159] Please refer to Fig.10 , Fig.10 An exemplary system architecture is shown in which the three-dimensional object reconstruction method according to an embodiment of the present disclosure can be applied.
[0160] like Fig.10 As shown, the system architecture may include terminal devices 1001, 1002, 1003, a network 1004, and a server 1005. The network 1004 may be used to provide a medium for a communication link between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0161] The terminal devices 1001, 1002, and 1003 can interact with the server 1005 through the network 1004 to receive or send messages, etc. Various client applications, such as web browser applications, search applications, and news information applications, can be installed on the terminal devices 1001, 1002, and 1003. The client applications in the terminal devices 1001, 1002, and 1003 can receive user instructions and perform corresponding functions according to the user instructions.
[0162] Terminal devices 1001, 1002, 1003 can be hardware or software. When terminal devices 1001, 1002, 1003 are hardware, they can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 1001, 1002, 1003 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0163] The server 1005 may be a server that provides various services, such as receiving information acquisition requests sent by the terminal devices 1001, 1002, and 1003, acquiring display information corresponding to the information acquisition requests in various ways according to the information acquisition requests, and sending relevant data of the display information to the terminal devices 1001, 1002, and 1003.
[0164] It should be noted that the 3D object reconstruction method provided in the embodiment of the present disclosure can be executed by a terminal device, and accordingly, the 3D object reconstruction device can be set in the terminal devices 1001, 1002, and 1003. In addition, the 3D object reconstruction method provided in the embodiment of the present disclosure can also be executed by a server 1005, and accordingly, the 3D object reconstruction device can be set in the server 1005.
[0165] It should be understood that Fig.10 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0166] Reference below Fig.11 , which shows an electronic device (eg, Fig.10 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0167] like Fig.11 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 1108 to a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0168] Typically, the following devices may be connected to the I / O interface 1105: input devices 1106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1108 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1109. The communication devices 1109 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1109, or installed from the storage device 1108, or installed from the ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0170] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0171] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0172] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0173] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: obtain a target image; wherein the target image includes at least two target objects; perform feature extraction on the target image to obtain multiple visual feature maps of different scales; generate initial three-dimensional posture information of the at least two target objects based on the target visual feature maps; the target visual feature map is a visual feature map of one scale among the multiple visual feature maps of different scales; based on the multiple visual feature maps of different scales, the initial three-dimensional posture information of the at least two target objects is corrected to generate target three-dimensional posture information of the at least two target objects.
[0174] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0175] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0176] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the acquisition unit 901 may also be described as a "unit for acquiring a target image".
[0177] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0178] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0179] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0180] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0181] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A three-dimensional object reconstruction method, characterized in that: include: Acquire a target image; wherein the target image includes at least two target objects; Extracting features from the target image to obtain a plurality of visual feature maps of different scales; Based on a target visual feature map, generating initial three-dimensional posture information of the at least two target objects; the target visual feature map is a visual feature map of one scale among the multiple visual feature maps of different scales; The initial three-dimensional posture information of the at least two target objects is corrected based on the multiple visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects.
2. The method according to claim 1, characterized in that The step of correcting the initial three-dimensional posture information of the at least two target objects based on the multiple visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects includes: The multiple visual feature maps of different scales and the initial three-dimensional posture information of the at least two target objects are input into the correction model to generate the target three-dimensional posture information of the at least two target objects.
3. The method according to claim 2, characterized in that The correction model comprises N correction layers, which are connected in sequence; the input of at least one of the correction layers comprises an optimized visual feature map output by a previous correction layer, one of the multiple visual feature maps of different scales, and optimized three-dimensional posture information of the at least two target objects output by the previous correction layer; the visual feature maps of the multiple visual feature maps of different scales input to each correction layer are different; the output of each correction layer comprises an optimized visual feature map and optimized three-dimensional posture information of the at least two target objects; N is a positive integer; Alternatively, when the correction layer is the first correction layer in the correction model, the input of the first correction layer includes two visual feature maps among the multiple visual feature maps of different scales and initial three-dimensional posture information of the at least two target objects; When the correction layer is the last correction layer in the correction model, the target three-dimensional posture information of the at least two target objects is determined according to the optimized three-dimensional posture information of the at least two target objects output by the last correction layer.
4. The method according to claim 3, characterized in that For any one of the N correction layers, the initial three-dimensional posture information of the at least two target objects is corrected based on the multiple visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects, including: The optimized visual feature map output by the previous correction layer and one of the visual feature maps of the multiple different scales are fused to obtain the optimized visual feature map; or two visual feature maps of the multiple visual feature maps of the different scales are fused to obtain the optimized visual feature map; Extracting feature information from the optimized visual feature map based on the optimized three-dimensional posture information of the at least two target objects output by the previous correction layer; or extracting feature information from the optimized visual feature map based on the initial three-dimensional posture information of the at least two target objects; Based on the feature information, obtaining optimized three-dimensional posture information of the at least two target objects; Output the optimized visual feature map and the optimized three-dimensional posture information of the at least two target objects.
5. The method according to claim 4, characterized in that The at least two target objects include a first target object and a second target object; and obtaining optimized three-dimensional posture information of the at least two target objects based on the feature information includes: Performing adjacency modeling on the feature information of the first target object based on the first network model to obtain first feature information of the first target object; Performing adjacency modeling on the feature information of the second target object based on the second network model to obtain first feature information of the second target object; Based on the third network model, long-distance relationship modeling is performed on the first feature information of the first target object and the first feature information of the second target object to obtain second feature information; Based on the second feature information, optimized three-dimensional posture information of the at least two target objects is obtained.
6. The method according to claim 3, characterized in that: For any one of the N correction layers, the initial three-dimensional posture information of the at least two target objects is corrected based on the multiple visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects, including: Fusing the optimized visual feature map output by the previous correction layer and one of the multiple visual feature maps of different scales to obtain a fused visual feature map; or fusing two visual feature maps of the multiple visual feature maps of different scales to obtain a fused visual feature map; Extracting feature information from the fused visual feature map based on the optimized three-dimensional pose information of the at least two target objects output by the previous correction layer; or extracting feature information from the fused visual feature map based on the initial three-dimensional pose information of the at least two target objects; Based on the feature information, obtaining optimized three-dimensional posture information of the at least two target objects; Performing back projection based on the feature information and the optimized three-dimensional posture information of the at least two target objects to obtain a two-dimensional visual feature map; Based on the two-dimensional visual feature map and the fused visual feature map, generating the optimized visual feature map; Output the optimized visual feature map and the optimized three-dimensional posture information of the at least two target objects.
7. The method according to claim 6, characterized in that The at least two target objects include a first target object and a second target object; and obtaining optimized three-dimensional posture information of the at least two target objects based on the feature information includes: Performing adjacency modeling on the feature information of the first target object based on the first network model to obtain first feature information of the first target object; Performing adjacency modeling on the feature information of the second target object based on the second network model to obtain first feature information of the second target object; Based on the third network model, long-distance relationship modeling is performed on the first feature information of the first target object and the first feature information of the second target object to obtain second feature information; Based on the second feature information, optimized three-dimensional posture information of the at least two target objects is obtained.
8. The method according to claim 6, characterized in that The at least two target objects include a first target object and a second target object; the back-projection based on the feature information and the optimized three-dimensional posture information of the at least two target objects to obtain a two-dimensional visual feature map includes: Performing adjacency modeling on the feature information of the first target object based on the first network model to obtain first feature information of the first target object; Performing adjacency modeling on the feature information of the second target object based on the second network model to obtain first feature information of the second target object; Based on the third network model, long-distance relationship modeling is performed on the first feature information of the first target object and the first feature information of the second target object to obtain second feature information; Back projection is performed based on the second feature information and the optimized three-dimensional posture information of the at least two target objects to obtain the two-dimensional visual feature map.
9. The method according to claim 6, characterized in that The feature information includes M feature points, and the back projection based on the feature information and the optimized three-dimensional posture information of the at least two target objects is performed to obtain a two-dimensional visual feature map, including: Performing back projection based on the M feature points and the optimized three-dimensional posture information of the at least two target objects to obtain M initial two-dimensional visual feature maps; The M initial two-dimensional visual feature maps are merged to generate the two-dimensional visual feature map.
10. The method according to claim 1, characterized in that The generating of initial three-dimensional posture information of the at least two target objects based on the target visual feature map includes: Based on the spatial attention mechanism, respectively extracting object feature information of the at least two target objects from the target visual feature map; Extracting spatial relationship feature information of the at least two target objects from the target visual feature map based on global pooling; Based on the object feature information of the at least two target objects and the spatial relationship feature information of the at least two target objects, initial three-dimensional posture information of the at least two target objects is generated; wherein the initial three-dimensional posture information of the at least two target objects includes shape and posture parameters of the at least two target objects, and three-dimensional displacement parameters between the at least two target objects.
11. The method according to any one of claims 1 to 10, characterized in that The at least two target objects include two interacting target objects.
12. The method according to claim 11, characterized in that The target object is a hand; the target image includes a left hand and a right hand.
13. The method according to any one of claims 1 to 10, characterized in that The target visual feature map is a visual feature map with the smallest scale among the multiple visual feature maps of different scales.
14. A three-dimensional object reconstruction device, characterized in that: include: An acquisition unit, configured to acquire a target image; wherein the target image includes at least two target objects; A feature extraction unit, used to extract features from the target image to obtain a plurality of visual feature maps of different scales; An initial prediction unit, configured to generate initial three-dimensional posture information of the at least two target objects based on a target visual feature map; the target visual feature map is a visual feature map of one scale among the multiple visual feature maps of different scales; The correction unit is used to correct the initial three-dimensional posture information of the at least two target objects based on the multiple visual feature maps of different scales to generate target three-dimensional posture information of the at least two target objects.
15. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 13.
16. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
