Method, device, equipment and storage medium for constructing human-object interactive motion video

By obtaining the prior information of the contact area of ​​the three-dimensional human motion video and the object model, fusion processing of the image and object model, and optimal adjustment of parameters, the problem of the limited scale of the human-object interactive motion video data set is solved, and high-quality construction is achieved to meet the needs of needs in fields such as virtual reality.

CN117593449BActive Publication Date: 2024-08-23SHUXING TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311470710.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-07
Publication Date
2024-08-23
Estimated Expiration
2043-11-07

AI Technical Summary

Technical Problem

In the existing technology, the scale of constructing human-object interaction motion video data sets is limited, making it difficult to meet the needs of three-dimensional human motion models, especially in fields such as virtual reality, game development, and animation production.

Method used

By obtaining the prior information of the contact area of ​​the 3D human motion video and the 3D object model, combined with the key frame and key point information, the image and the object model are fused, and the parameters are optimized and adjusted to build high-quality human-object interaction images and motion videos. .

Benefits of technology

It realizes the rapid and convenient construction of high-quality human-object interaction motion videos, improves the authenticity and diversity of the three-dimensional human body and object interaction, and meets the needs of virtual reality and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593449B
    Figure CN117593449B
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, device, equipment and storage medium for constructing a human-object interactive motion video. The method includes: obtaining a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video, the contact area prior information including the identification of a key frame fused with the three-dimensional object model, and key point information of the contact between the target human body and the three-dimensional object model in the key frame; determining the image corresponding to the key frame from the three-dimensional human motion video; based on the key point information, fusing the image and the three-dimensional object model to obtain a human-object interactive image; constructing a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video except the image. The embodiments of the present application can be used to conveniently and quickly construct a human-object interactive motion video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a method, device, equipment and storage medium for constructing a human-object interactive motion video. Background Art

[0002] Currently, obtaining human-object interactive motion videos is an important step in training 3D human motion models. 3D human motion models refer to computer models that can model and simulate human motion. These models can be used in virtual reality, game development, animation production, human-computer interaction and other fields to create realistic human motion and interactive experiences. Human-object interactive motion videos refer to video content that shows the interaction and interaction between people and objects. Such videos are usually used to show the movements and behaviors of humans when interacting with objects, as well as the impact and reaction of objects on people. However, the size of available human-object interactive motion video datasets is limited. Therefore, how to construct human-object interactive motion videos is a problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a method, device, equipment and storage medium for constructing a human-object interactive motion video, which can conveniently and quickly construct a human-object interactive motion video.

[0004] On the one hand, an embodiment of the present application provides a method for constructing a human-object interactive motion video, the method comprising:

[0005] Acquire a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video; wherein the contact area prior information includes an identifier of a key frame fused with the three-dimensional object model, and key point information of contact between the target human body and the three-dimensional object model in the key frame;

[0006] Determine an image corresponding to the key frame from the three-dimensional human motion video;

[0007] Based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information;

[0008] A human-object interactive motion video is constructed based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

[0009] In one embodiment, the step of fusing the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image includes:

[0010] Determining candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image;

[0011] Based on the candidate adjustment parameters, performing a primary fusion process on the image and the three-dimensional object model to obtain an initial human-object interaction image;

[0012] Optimizing the candidate adjustment parameters to obtain optimized adjustment parameters;

[0013] Based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to obtain the human-object interaction image.

[0014] In one embodiment, the candidate adjustment parameters include candidate translation parameters; and the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes:

[0015] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0016] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0017] Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point;

[0018] After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value, wherein the contact constraint loss value of the target candidate translation point is less than the contact constraint loss values ​​of other candidate translation points in the plurality of candidate translation points;

[0019] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0020] In one embodiment, the candidate adjustment parameters include candidate translation parameters; and the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes:

[0021] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0022] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0023] Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image;

[0024] Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point;

[0025] After the traversal is completed, a target candidate translation point is determined based on each mode-penetrating constraint loss value, wherein the mode-penetrating constraint loss value of the target candidate translation point is less than the mode-penetrating constraint loss values ​​of other candidate translation points among the multiple candidate translation points;

[0026] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0027] In one embodiment, the optimizing the candidate adjustment parameters to obtain the optimized adjustment parameters includes:

[0028] Based on a gradient optimization algorithm and a constraint loss function, the candidate adjustment parameters are optimized to obtain optimized adjustment parameters, wherein the constraint loss function includes at least one of the following: a penetration constraint loss function and a contact constraint loss function.

[0029] In one embodiment, the candidate adjustment parameters include candidate translation parameters, candidate rotation parameters, and candidate scale parameters;

[0030] The step of performing a primary fusion process on the image and the three-dimensional object model based on the candidate adjustment parameters to obtain an initial human-object interaction image includes:

[0031] Adjusting the scale of the three-dimensional object model in the image, wherein the scale of the three-dimensional object model after the scale adjustment matches the candidate scale parameter;

[0032] Based on the candidate translation direction and the candidate translation distance indicated by the candidate translation parameters, translating the scale-adjusted three-dimensional object model;

[0033] Based on the rotation direction indicated by the candidate rotation parameters, the three-dimensional object model after the translation adjustment is rotated to obtain the initial human-object interaction image.

[0034] In one embodiment, the candidate adjustment parameters include candidate translation parameters, and the candidate translation parameters include candidate translation directions and candidate translation distances;

[0035] The determining of candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes:

[0036] Acquire the center point coordinates of the key point area where each key point indicated by the key point information is located, and the center point coordinates of the three-dimensional object model in the image;

[0037] Determining the candidate translation distance based on the center point coordinates of the key point area and the center point coordinates of the three-dimensional object model in the image;

[0038] The direction from the center point of the three-dimensional object model in the image to the center point of the key point area is used as the candidate translation direction.

[0039] In one embodiment, determining the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes:

[0040] Determine a target key point from the multiple key points indicated by the key point information, wherein the vertical coordinate of the target key point in the image is smaller than the vertical coordinates of other key points in the image;

[0041] A candidate scale parameter of the three-dimensional object model is determined according to the distance between the target key point and the three-dimensional object model, the height of the three-dimensional object model, and the initial scale parameter of the three-dimensional object model.

[0042] In one embodiment, determining candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes:

[0043] Determine the orientation of a key point region where each key point indicated by the key point information is located, and the orientation of the three-dimensional object model in the image;

[0044] Based on the orientation of the key point region and the orientation of the three-dimensional object model in the image, candidate rotation parameters of the three-dimensional object model are obtained.

[0045] In one embodiment, the step of obtaining the contact area prior information of the three-dimensional human body motion video includes:

[0046] Receive the contact area prior information of the three-dimensional human body motion video annotated by the user.

[0047] In one embodiment, the receiving of the contact area prior information of the three-dimensional human body motion video annotated by the user includes:

[0048] Receiving the key frame of the three-dimensional human motion video annotated by a user;

[0049] Based on a predefined human body surface area division method, the surface area of ​​the human body in the key frame is divided to obtain a plurality of divided areas of the human body;

[0050] displaying a key frame including the plurality of divided areas;

[0051] In response to a user's marking operation on a target divided area in the key frame, determining key point information marked by the user;

[0052] The contact area prior information is generated based on the identifier and key point information of the key frame marked by the user.

[0053] On the other hand, an embodiment of the present application provides a device for constructing a human-object interactive motion video, the device for constructing a human-object interactive motion video comprising:

[0054] A key point acquisition unit, used to acquire a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video; wherein the contact area prior information includes an identifier of a key frame fused with the three-dimensional object model, and key point information of a target human body in contact with the three-dimensional object model in the key frame;

[0055] The key point acquisition unit is further used to determine the image corresponding to the key frame from the three-dimensional human motion video;

[0056] a fusion unit, configured to fuse the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information;

[0057] The unit for constructing a human-object interactive motion video is used to construct a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

[0058] On the other hand, an embodiment of the present application provides a computer device, including a processor, a storage device, and a communication interface, wherein the processor, the storage device, and the communication interface are connected to each other, wherein the storage device is used to store a computer program that supports the computer device to execute the above method, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:

[0059] Acquire a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video; wherein the contact area prior information includes an identifier of a key frame fused with the three-dimensional object model, and key point information of contact between the target human body and the three-dimensional object model in the key frame;

[0060] Determine an image corresponding to the key frame from the three-dimensional human motion video;

[0061] Based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information;

[0062] A human-object interactive motion video is constructed based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

[0063] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above-mentioned method for constructing a human-object interactive motion video.

[0064] In an embodiment of the present application, by obtaining a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video, wherein the contact area prior information includes the identification of a key frame that is fused with the three-dimensional object model, and key point information of the target human body in the key frame that contacts the three-dimensional object model, an image corresponding to the key frame is determined from the three-dimensional human motion video, and based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image; wherein the key points of the target human body in the human-object interaction image that contact the three-dimensional object model include the key points indicated by the key point information, and based on the human-object interaction image and other images in the three-dimensional human motion video except the image, a human-object interaction motion video is constructed. Therefore, the embodiment of the present invention can conveniently and quickly construct a human-object interaction motion video. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1 It is a schematic diagram of the architecture of a system for constructing a human-object interactive motion video provided in an embodiment of the present application;

[0067] Figure 2 It is a flowchart of a method for constructing a human-object interactive motion video provided in an embodiment of the present application;

[0068] Figure 3 It is a flowchart of another method for constructing a human-object interactive motion video provided in an embodiment of the present application;

[0069] Figure 4 is a key frame schematic diagram provided in an embodiment of the present application;

[0070] Figure 5 This is a schematic diagram of key point information of a human body provided in an embodiment of the present application;

[0071] Figure 6 is a schematic diagram of an initial human-object interaction image provided in an embodiment of the present application;

[0072] Figure 7 is a schematic diagram of a human-object interaction image provided by an embodiment of the present application;

[0073] Figure 8 is another schematic diagram of a human-object interaction image provided in an embodiment of the present application;

[0074] Fig. 9 Another human-object interaction image diagram provided in the embodiment of the present application is

[0075] Fig.10 is another schematic diagram of a human-object interaction image provided in an embodiment of the present application;

[0076] Fig.11 is another schematic diagram of a human-object interaction image provided in an embodiment of the present application;

[0077] Fig.12 It is a structural schematic diagram of a device for constructing a human-object interactive motion video provided in an embodiment of the present application;

[0078] Fig.13 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] The embodiment of the present application can construct a human-object interactive motion video. For example, the computer device can display a user interface. If the user wants to construct a certain human-object interactive motion video, the user can click the construction button in the user interface, and then the computer device can respond to the user's click operation, and display a three-dimensional human motion video and a three-dimensional object model selection area in the user interface. The user can select the three-dimensional human motion video and the three-dimensional object model that he wants to construct in the selection area. Among them, the three-dimensional human motion video and the three-dimensional object model selected by the user can be a three-dimensional human motion video and a three-dimensional object model stored in the local memory of the computer device, or a three-dimensional human motion video and a three-dimensional object model stored in the cloud, or a three-dimensional human motion video and a three-dimensional object model in the Internet, which is not specifically limited by the embodiment of the present application. Optionally, after the computer device displays the three-dimensional human motion video and the three-dimensional object model selection area in the user interface, the user can drag the three-dimensional human motion video and the three-dimensional object model that he wants to construct the human-object interactive motion video to the three-dimensional human motion video and the three-dimensional object model selection area. The computer device can obtain a three-dimensional human motion video and a three-dimensional object model in response to a user's selection operation or drag operation, and then construct a human-object interactive motion video for the three-dimensional human motion video and the three-dimensional object model through the method for constructing a human-object interactive motion video provided in an embodiment of the present application.

[0081] The method for constructing a human-object interactive motion video provided in the embodiment of the present application can be applied in a client, a server or a computer device. The client or server may include a video player, a plug-in for constructing a human-object interactive motion video, etc. The client or server may be installed or integrated in a content publishing platform or a browser, and the content publishing platform or the browser may run in a computer device. The computer device includes but is not limited to a smart phone, a camera, a wearable device or a computer, etc.

[0082] In the specific implementation of this application, user-related data, such as images, etc., is involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with local laws, regulations and standards.

[0083] See also Figure 1 , Figure 1 This is a schematic diagram of the architecture of a system for constructing a human-object interactive motion video provided by an embodiment of the present application. Exemplarily, a three-dimensional human motion video can be input from the outside, the user first annotates the key frames in the three-dimensional human motion video, divides the human surface area in the key frames based on a predefined human surface area division method, and obtains multiple divided areas of the human body. The user annotates the target divided area, determines the key point information, and generates contact area prior information based on the identifier and key point information of the key frame annotated by the user; determines the image corresponding to the key frame from the three-dimensional human motion video; based on the key point information, fuses the image corresponding to the key frame with the three-dimensional object model to obtain a human-object interactive image; constructs a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

[0084] Optionally, candidate adjustment parameters may be determined based on prior information of the contact area, the three-dimensional object model, and the image corresponding to the key frame, wherein the candidate adjustment parameters may include one or more of candidate translation parameters, candidate rotation parameters, and candidate scale parameters. Then, based on the candidate adjustment parameters, the image corresponding to the key frame and the three-dimensional object model may be initially fused to obtain an initial human-object interaction image. Furthermore, the candidate adjustment parameters may be optimized to obtain optimized adjustment parameters, and based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image may be adjusted to obtain a human-object interaction image.

[0085] Optionally, the method of optimizing the candidate adjustment parameters may include: optimizing the candidate adjustment parameters by using an optimization algorithm based on grid search.

[0086] Among them, the optimization algorithm based on grid search realizes the optimization processing of candidate adjustment parameters through penetration constraint and contact constraint. The purpose of penetration constraint is to reduce the cross-penetration phenomenon between human body and object as much as possible. The purpose of contact constraint is to increase the reasonable contact area between human body and object as much as possible. Based on this, the candidate adjustment parameters are optimized by the optimization algorithm based on grid search to obtain the optimized adjustment parameters, and based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to obtain the human-object interaction image, which can reduce the cross-penetration phenomenon between human body and object as much as possible while increasing the reasonable contact area between human body and object as much as possible, so that the result has interaction correctness in three-dimensional space.

[0087] Optionally, the penetration constraint may be determined by a human body signed distance field. Specifically, after receiving the input 3D human body motion video, the signed distance field may be calculated based on the image corresponding to the key frame, thereby generating a human body signed distance field.

[0088] Optionally, after the candidate adjustment parameters are optimized by using a grid search-based optimization algorithm, the optimized candidate adjustment parameters may be optimized again by using a gradient-based optimization algorithm to obtain optimized adjustment parameters.

[0089] Based on the above description, see Figure 2 , Figure 2 is a flow chart of a method for constructing a human-object interactive motion video provided in an embodiment of the present application. The method for constructing a human-object interactive motion video can be executed by a client, a server or a computer device; Figure 2 The construction scheme of the human-object interactive motion video shown includes but is not limited to steps S201 to S204, wherein:

[0090] S201, obtaining a three-dimensional human body motion video and a three-dimensional object model, as well as prior information on contact areas of the three-dimensional human body motion video.

[0091] The contact area prior information includes an identifier of a key frame fused with the three-dimensional object model and key point information of the target human body in contact with the three-dimensional object model in the key frame.

[0092] In one implementation, the contact area prior information of the three-dimensional human motion video annotated by a user may be received.

[0093] In this embodiment, constructing a human-object interactive motion video relies on accurate prior information of the contact area, that is, in which frame of the motion sequence will contact the object, and which areas of the three-dimensional human body surface will contact the three-dimensional object. One solution is to use a neural network for prediction, but the prediction results of this method are relatively rough, which will lead to poor subsequent fitting and alignment results, and the obtained interactive motion data is of low quality and does not meet the requirements. Therefore, the contact area prior information can be obtained through simple annotation behavior by the user, thereby ensuring the accuracy of the subsequent optimization algorithm. Due to the manual annotation of prior information, only one frame or a few frames in the three-dimensional human motion video need to be annotated. For example, for 100 three-dimensional human motion videos, the user may only need to annotate 100 frames, so the amount of manual annotation is small, but compared with predicting prior information through neural networks, the accuracy of manual annotation is greatly improved.

[0094] The contact area prior information may include the identification of key frames. By traversing each frame of the input 3D human motion video, the user determines the key frames based on the relationship between the characters and the 3D object model in each frame. For example, see Figure 4 , Figure 4 The three-dimensional human body 401 in the figure is in a half-squatting posture, which is suitable for contact with the chair in the figure, so the user marks this frame as a key frame.

[0095] In one implementation, the surface area of ​​the human body in the key frame can be divided based on a predefined human body surface area division method to obtain multiple divided areas of the human body; for example, the human body surface is divided into 14 different areas in advance. These 14 different areas do not refer to specific area positions and sizes, but are broadly defined. For example, the 14 areas include the palms, soles, buttocks, knees, etc., and then the user marks the specific contact points of the corresponding areas according to the specific motion scene and three-dimensional object model. The above 14 areas are determined by the user based on experience and scenes, and are areas where the human body may come into contact with objects of different shapes in different postures.

[0096] On this basis, the method in which the user marks the specific contact points of the corresponding area may include: displaying a key frame containing the multiple divided areas; responding to the user's marking operation on the target divided area in the key frame, and determining the key point information marked by the user; based on the identification and key point information of the key frame marked by the user, generating the contact area prior information.

[0097] See for example Figure 5 , Figure 5The system includes a 3D human image and user-annotated 3D human hip region information 501, wherein the 3D human image is a key frame annotated by the user. Based on the character relationship in the image and the 3D object model (i.e., the chair), the user can determine that the human body in a half-squatting posture in the image is suitable for contacting the chair. Based on the posture of the human body and the shape of the chair, it can be determined that the area where the human body contacts the chair should be the hip region, so key points can be annotated in the hip region of the human body. In addition, the user's annotation operation on the hip division region in the key frame can be responded to to determine the user's annotated key point information.

[0098] S202: Determine an image corresponding to a key frame from the three-dimensional human motion video.

[0099] In a specific implementation, after obtaining the contact area prior information of the three-dimensional human motion video, the contact area prior information can be parsed to obtain the identifier of the key frame included in the contact area prior information and integrated with the three-dimensional object model, and then the three-dimensional human motion video can be deframed to obtain the key frame indicated by the identifier.

[0100] S203, based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image.

[0101] In this embodiment, the three-dimensional object model can be adjusted based on the coordinates of the key points indicated by the key point information in the image corresponding to the key frame, so as to achieve the fusion processing of the image and the three-dimensional object model to obtain a human-object interaction image. In other words, the image and the three-dimensional object model are fitted and aligned to obtain a human-object interaction image, thereby ensuring that the three-dimensional object model in the human-object interaction image just contacts the key points of the specified human body in the image. Exemplarily, the fusion shape of the specified human body and the three-dimensional object model in the human-object interaction image can be as follows: Figure 7 As shown, the human body is specified as Figure 4 In the image, there is a human body in a half-squatting posture, and the three-dimensional object model is a chair. After the image and the three-dimensional object model are fused, the key points of the human body in the half-squatting posture in the human-object interaction image are in contact with the chair, presenting a picture of the human body sitting on the chair.

[0102] In an optional embodiment, the way to adjust the three-dimensional object model based on the coordinates of the key points indicated by the key point information in the image corresponding to the key frame can be: based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, determine the candidate adjustment parameters of the three-dimensional object model; based on the candidate adjustment parameters, fuse the image and the three-dimensional object model to obtain a human-object interaction image.

[0103] For example, the candidate adjustment parameters may include one or more of the following: candidate translation parameters, candidate rotation parameters, and candidate scale parameters.

[0104] When the candidate adjustment parameters include candidate translation parameters, the 3D object model in the image may be translated based on the translation direction and distance indicated by the candidate translation parameters to ensure that key points of the designated human body can contact the translated 3D object model.

[0105] When the candidate adjustment parameters include candidate rotation parameters, after the 3D object is rotated based on the candidate rotation parameters, the orientation of the rotated 3D object model in the human-object interaction image is consistent with the orientation of the key point in the human-object interaction image. Figure 6 , Figure 6 The orientation of the key point 602 in FIG. 6 is consistent with the orientation of the backrest of the three-dimensional chair.

[0106] In the case where the candidate adjustment parameters include candidate scale parameters, the three-dimensional object model in the image is scaled to ensure that the key points of the designated human body can contact the scale-transformed three-dimensional object model, wherein the specific method of calculating the initial scale value is: (the distance between the starting point and the end point of the ray + the height of the three-dimensional object model) / the height of the three-dimensional object model * the size of the three-dimensional object model. Among them, the ordinate of the starting point of the ray in the image is smaller than the ordinate of other key points in the image, the end point is the first point where the three-dimensional object model contacts the surface of the human body, and the height of the three-dimensional object model refers to the distance from the surface where the three-dimensional object model contacts the human body to the ground. The purpose of the size adjustment is to allow the human body and the object to fully contact during the alignment of the three-dimensional object model and the three-dimensional human motion video, for example, the person is actually sitting on the chair, rather than the person hanging above the chair.

[0107] In one implementation, the candidate translation parameters are obtained by: obtaining the center point coordinates of the key point area where each key point indicated by the key point information is located, and the center point coordinates of the three-dimensional object model in the image; determining the candidate translation distance based on the center point coordinates of the key point area and the center point coordinates of the three-dimensional object model in the image; and taking the direction from the center point of the three-dimensional object model in the image to the center point of the key point area as the candidate translation direction.

[0108] In one implementation, the candidate scale parameters are obtained by: determining a target key point from multiple key points indicated by the key point information, wherein the vertical coordinate of the target key point in the image is smaller than the vertical coordinates of other key points in the image; and determining the candidate scale parameters of the three-dimensional object model based on the distance between the target key point and the three-dimensional object model, the height of the three-dimensional object model, and the initial scale parameters of the three-dimensional object model.

[0109] In one implementation, candidate rotation parameters are obtained by: determining the orientation of a key point area where each key point indicated by the key point information is located, and the orientation of the three-dimensional object model in the image; and obtaining candidate rotation parameters of the three-dimensional object model based on the orientation of the key point area and the orientation of the three-dimensional object model in the image.

[0110] In another optional embodiment, the way to adjust the three-dimensional object model based on the coordinates of the key points indicated by the key point information in the image corresponding to the key frame can be: based on the key point information, the coordinates of the human body in the image and the initial coordinates of the three-dimensional object model in the image, determine the candidate adjustment parameters of the three-dimensional object model; based on the candidate adjustment parameters, fuse the image and the three-dimensional object model to obtain an initial human-object interaction image; optimize the candidate adjustment parameters to obtain optimized adjustment parameters; based on the optimized adjustment parameters, adjust the three-dimensional object model in the initial human-object interaction image to obtain the human-object interaction image.

[0111] Specifically, the candidate adjustment parameters may be optimized by using a grid search-based optimization algorithm or a gradient optimization algorithm to obtain optimized adjustment parameters.

[0112] The specific process of the grid search-based optimization algorithm can refer to the description of the following embodiment.

[0113] Among them, the specific process of the gradient-based optimization algorithm is:

[0114] The candidate adjustment parameters are optimized to obtain optimized adjustment parameters, wherein the constraint loss function includes at least one of the following: a penetration constraint loss function and a contact constraint loss function. The gradient-based optimization is to derive the penetration constraint loss function and the contact constraint loss function to obtain a new function, use the new function as a sample, and use the initial translation value to calculate the gradient of the sample, thereby using the gradient information to determine the optimal translation parameter. For example, using the SGD optimizer, the improved XY plane position of the object is obtained through 100 iterations as the optimal translation parameter.

[0115] S204, constructing a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video.

[0116] The three-dimensional object model in the embodiment of the present application can be any object in any form, including but not limited to a chair, for example, a basketball or a bicycle, etc. Based on this, the embodiment of the present application can fit several three-dimensional object models to the same three-dimensional human motion video, thereby obtaining different human-object interactive motion videos, thereby ensuring the diversity of objects in the constructed human-object interactive motion video.

[0117] In an embodiment of the present application, by obtaining a three-dimensional human motion video and a three-dimensional object model, as well as prior information on the contact area of ​​the three-dimensional human motion video, and determining the image corresponding to the key frame from the three-dimensional human motion video, the image and the three-dimensional object model are further fused based on the key point information to obtain a human-object interaction image, and based on the human-object interaction image and the remaining images in the three-dimensional human motion video, a human-object interaction motion video is constructed, and the constructed human-object interaction motion video is fully utilized, thereby solving the problem of poor diversity and missing three-dimensional object models.

[0118] Based on the above description, see Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for constructing a human-object interactive motion video provided in an embodiment of the present application. The method for constructing a human-object interactive motion video can be executed by a client, a server, or a computer device. Figure 3 The method for constructing the human-object interactive motion video shown includes but is not limited to steps S301 to S307, wherein:

[0119] S301, obtaining a three-dimensional human body motion video and a three-dimensional object model, as well as prior information on contact areas of the three-dimensional human body motion video.

[0120] S302: Determine an image corresponding to a key frame from the three-dimensional human motion video.

[0121] S303: Determine candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image.

[0122] S304: Based on the candidate adjustment parameters, the image and the three-dimensional object model are initially fused to obtain an initial human-object interaction image.

[0123] S305, performing grid search optimization processing on the candidate adjustment parameters to obtain optimized adjustment parameters.

[0124] In one implementation, the candidate adjustment parameters include candidate translation parameters; and the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes:

[0125] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0126] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0127] The method for obtaining the multiple candidate translation points involved in the above embodiment may include: for example, dividing the maximum movement range of the object on the XY plane into 10 equal parts on the XY axes, thereby obtaining 10*10=100 candidate translation points.

[0128] Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point;

[0129] After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value, wherein the contact constraint loss value of the target candidate translation point is smaller than the contact constraint loss values ​​of other candidate translation points among the multiple candidate translation points; wherein the target candidate translation point may refer to the candidate translation point with the smallest contact constraint loss value, or may refer to the candidate translation point with a contact constraint loss value smaller than a preset threshold.

[0130] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0131] Exemplarily, the three-dimensional coordinates of the contact points of the human body marked by the user and the three-dimensional coordinates of each point on the surface of the three-dimensional object model are input into the contact constraint loss function to obtain a contact loss value, which is used to characterize the distance between the contact points of the human body and the surface of the three-dimensional object model. The smaller the contact loss value, the better. The principle of the contact constraint loss function is: obtain the distance between any contact point of the human body and any point on the surface of the three-dimensional object model, and hope that the distance between any contact point of the human body and any point on the surface of the three-dimensional object model is as small as possible. Please refer to Figure 8 and Fig. 9 , Figure 8 It includes a 3D human key frame image 801, a 3D object model 802, Fig. 9 It includes a 3D human key frame image 901, a 3D object model 902, Figure 8 Without using the contact loss constraint function for optimization, it can be seen that the contact between the 3D human key frame image 801 and the 3D object model 802 is not sufficient. Fig. 9 The contact loss constraint function is used for optimization processing to make the three-dimensional human key frame image 901 and the three-dimensional object model 902 fully fit together.

[0132] In one implementation, the candidate adjustment parameters include candidate translation parameters; and the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes:

[0133] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0134] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0135] Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image;

[0136] Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point;

[0137] After the traversal is completed, a target candidate translation point is determined based on each mode-penetrating constraint loss value, wherein the mode-penetrating constraint loss value of the target candidate translation point is less than the mode-penetrating constraint loss values ​​of other candidate translation points among the multiple candidate translation points;

[0138] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0139] Specifically, determining a plurality of candidate translation points involves dividing the maximum moving range of the object on the XY plane into 10 equal parts on the XY axes, thereby obtaining 10*10=100 candidate translation points.

[0140] Exemplarily, the three-dimensional coordinates of the signed distance field and each point on the surface of the three-dimensional object model are input into the penetration constraint loss function to obtain a penetration loss value, which is used to characterize the degree of intersection and penetration between the object and the human body. The smaller the penetration loss value, the better. The principle of the penetration constraint loss function is: take the three-dimensional coordinates of the point on the surface of the object from the three-dimensional model of the object, convert it to the signed distance field, and obtain a value. If the value is positive, it means that the point on the surface of the object does not penetrate the human body; if the value is negative, it means that the point on the surface of the object penetrates the human body. Please refer to Fig.10 and Fig.11 , Fig.10 It includes a 3D human key frame image 1001, a 3D object model 1002, Fig.11 It includes a 3D human key frame image 1101, a 3D object model 1102, Fig.10 Without using the penetration loss constraint function for optimization, it can be seen that the 3D human key frame image 1001 and the 3D object model 1002 are penetrated. Fig.11 The loss constraint function is used for optimization processing, so that the three-dimensional human key frame image 1101 and the three-dimensional object model 1102 do not penetrate the model and are fully fitted.

[0141] In one implementation, the candidate adjustment parameters include candidate translation parameters; and the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes:

[0142] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0143] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0144] Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point;

[0145] Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image;

[0146] Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point;

[0147] After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value and the through-mold constraint loss value, wherein the contact constraint loss value of the target candidate translation point is smaller than the contact constraint loss values ​​of other candidate translation points among the multiple candidate translation points and the through-mold constraint loss value of the target candidate translation point is smaller than the through-mold constraint loss values ​​of other candidate translation points among the multiple candidate translation points;

[0148] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0149] S306, adjusting the three-dimensional object model in the initial human-object interaction image based on the optimized adjustment parameters to obtain the human-object interaction image. The optimized adjustment parameters include: optimized translation parameters, initial scale values, and initial rotation values.

[0150] S307, constructing a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video.

[0151] In the embodiment of the present application, after the image and the three-dimensional object model are initially fused based on the candidate adjustment parameters to obtain the initial human-object interaction image, the candidate adjustment parameters are subjected to grid search optimization processing to obtain the optimized adjustment parameters, and finally based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to ensure that the cross-penetration phenomenon between the human body and the object is minimized while the reasonable contact area between the human body and the object is increased as much as possible, so that the result has interactive correctness in three-dimensional space, thereby obtaining the final high-quality human-object interaction image. On this basis, based on the high-quality human-object interaction image and other images in the three-dimensional human motion video except the image, a human-object interaction motion video is constructed to ensure the high quality of the human-object interaction motion video.

[0152] An embodiment of the present application further provides a computer storage medium, in which program instructions are stored. When the program instructions are executed, they are used to implement the corresponding methods described in the above embodiments.

[0153] See also Fig.12 , Fig.12 It is a structural schematic diagram of a device for constructing a human-object interactive motion video according to an embodiment of the present application.

[0154] In one implementation of the device for constructing a human-object interactive motion video according to an embodiment of the present application, the device for constructing a human-object interactive motion video includes the following structure.

[0155] The key point acquisition unit 1201 is used to acquire a 3D human motion video and a 3D object model, as well as contact area prior information of the 3D human motion video; wherein the contact area prior information includes an identifier of a key frame fused with the 3D object model, and key point information of a target human body in contact with the 3D object model in the key frame;

[0156] The key point acquisition unit 1201 is further used to determine the image corresponding to the key frame from the three-dimensional human motion video;

[0157] A fusion unit 1202 is used to fuse the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information;

[0158] The human-object interactive motion video constructing unit 1203 is used to construct the human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

[0159] In one embodiment, the fusion unit 1202 fuses the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image, including:

[0160] Determining candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image;

[0161] Based on the candidate adjustment parameters, performing a primary fusion process on the image and the three-dimensional object model to obtain an initial human-object interaction image;

[0162] Optimizing the candidate adjustment parameters to obtain optimized adjustment parameters;

[0163] Based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to obtain the human-object interaction image.

[0164] In one embodiment, the candidate adjustment parameters include candidate translation parameters, and the fusion unit 1202 optimizes the candidate adjustment parameters to obtain optimized adjustment parameters, including:

[0165] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0166] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0167] Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point;

[0168] After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value, wherein the contact constraint loss value of the target candidate translation point is less than the contact constraint loss values ​​of other candidate translation points in the plurality of candidate translation points;

[0169] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0170] In one embodiment, the candidate adjustment parameters include candidate translation parameters, and the fusion unit 1202 optimizes the candidate adjustment parameters to obtain optimized adjustment parameters, including:

[0171] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0172] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0173] Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image;

[0174] Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point;

[0175] After the traversal is completed, a target candidate translation point is determined based on each mode-penetrating constraint loss value, wherein the mode-penetrating constraint loss value of the target candidate translation point is less than the mode-penetrating constraint loss values ​​of other candidate translation points among the multiple candidate translation points;

[0176] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0177] In one embodiment, the fusion unit 1202 performs optimization processing on the candidate adjustment parameters to obtain the optimized adjustment parameters including:

[0178] Based on a gradient optimization algorithm and a constraint loss function, the candidate adjustment parameters are optimized to obtain optimized adjustment parameters, wherein the constraint loss function includes at least one of the following: a penetration constraint loss function and a contact constraint loss function.

[0179] In one embodiment, the candidate adjustment parameters include candidate translation parameters, candidate rotation parameters, and candidate scale parameters. The fusion unit 1202 performs a primary fusion process on the image and the three-dimensional object model based on the candidate adjustment parameters to obtain an initial human-object interaction image, including:

[0180] Adjusting the scale of the three-dimensional object model in the image, wherein the scale of the three-dimensional object model after the scale adjustment matches the candidate scale parameter;

[0181] Based on the candidate translation direction and the candidate translation distance indicated by the candidate translation parameters, translating the scale-adjusted three-dimensional object model;

[0182] Based on the rotation direction indicated by the candidate rotation parameters, the three-dimensional object model after the translation adjustment is rotated to obtain the initial human-object interaction image.

[0183] In one embodiment, the candidate adjustment parameters include candidate translation parameters, and the candidate translation parameters include candidate translation directions and candidate translation distances. The fusion unit 1202 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, including:

[0184] Acquire the center point coordinates of the key point area where each key point indicated by the key point information is located, and the center point coordinates of the three-dimensional object model in the image;

[0185] Determining the candidate translation distance based on the center point coordinates of the key point area and the center point coordinates of the three-dimensional object model in the image;

[0186] The direction from the center point of the three-dimensional object model in the image to the center point of the key point area is used as the candidate translation direction.

[0187] In one embodiment, the fusion unit 1202 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, including:

[0188] Determine a target key point from the multiple key points indicated by the key point information, wherein the vertical coordinate of the target key point in the image is smaller than the vertical coordinates of other key points in the image;

[0189] A candidate scale parameter of the three-dimensional object model is determined according to the distance between the target key point and the three-dimensional object model, the height of the three-dimensional object model, and the initial scale parameter of the three-dimensional object model.

[0190] In one embodiment, the fusion unit 1202 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, including:

[0191] Determine the orientation of a key point region where each key point indicated by the key point information is located, and the orientation of the three-dimensional object model in the image;

[0192] Based on the orientation of the key point region and the orientation of the three-dimensional object model in the image, candidate rotation parameters of the three-dimensional object model are obtained.

[0193] In one embodiment, the key point acquisition unit 1201 acquires the contact area prior information of the three-dimensional human body motion video, including:

[0194] Receive the contact area prior information of the three-dimensional human body motion video annotated by the user.

[0195] In one embodiment, the key point acquisition unit 1201 receives the contact area prior information of the three-dimensional human body motion video annotated by the user, including:

[0196] Receiving the key frame of the three-dimensional human motion video annotated by a user;

[0197] Based on a predefined human body surface area division method, the surface area of ​​the human body in the key frame is divided to obtain a plurality of divided areas of the human body;

[0198] displaying a key frame including the plurality of divided areas;

[0199] In response to a user's marking operation on a target divided area in the key frame, determining key point information marked by the user;

[0200] The contact area prior information is generated based on the identifier and key point information of the key frame marked by the user.

[0201] In an embodiment of the present application, a three-dimensional human motion video and a three-dimensional object model, as well as prior information on contact areas of the three-dimensional human motion video, are acquired through a key point acquisition unit 1201, and an image corresponding to a key frame is determined from the three-dimensional human motion video. A fusion unit 1202 fuses the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image. A human-object interaction motion video construction unit 1203 constructs a human-object interaction motion video based on the human-object interaction image and other images in the three-dimensional human motion video except the image, thereby enabling a human-object interaction motion video to be constructed quickly and conveniently.

[0202] See also Fig.13 , Fig.131 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device in the embodiment of the present application includes a power supply module and other structures, and includes a processor 1301, a storage device 1302, and a communication interface 1303. The processor 1301, the storage device 1302, and the communication interface 1303 can exchange data, and the processor 1301 implements the corresponding method for constructing a human-object interactive motion video.

[0203] The storage device 1302 may include a volatile memory, such as a random-access memory (RAM); the storage device 1302 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1302 may also include a combination of the above-mentioned types of memory.

[0204] The processor 1301 may be a central processing unit (CPU). The processor 1301 may also be a combination of a CPU and a GPU. In the server, multiple CPUs and GPUs may be included as needed to construct corresponding human-object interactive motion videos. In one embodiment, the storage device 1302 is used to store program instructions. The processor 1301 may call program instructions to implement various methods involved in the embodiments of the present application.

[0205] In a first possible implementation, the processor 1301 of the computer device calls the program instructions stored in the storage device 1302 to obtain a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video; wherein the contact area prior information includes an identifier of a key frame that is fused with the three-dimensional object model, and key point information of a target human body in contact with the three-dimensional object model in the key frame; an image corresponding to the key frame is determined from the three-dimensional human motion video; based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image; wherein the key points of the target human body in contact with the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information; and a human-object interaction motion video is constructed based on the human-object interaction image and other images in the three-dimensional human motion video except the image.

[0206] In one embodiment, the processor 1301 may perform the following operations when fusing the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image:

[0207] Determining candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image;

[0208] Based on the candidate adjustment parameters, performing a primary fusion process on the image and the three-dimensional object model to obtain an initial human-object interaction image;

[0209] Optimizing the candidate adjustment parameters to obtain optimized adjustment parameters;

[0210] Based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to obtain the human-object interaction image.

[0211] In one embodiment, the candidate adjustment parameters include candidate translation parameters. When the processor 1301 optimizes the candidate adjustment parameters and obtains the optimized adjustment parameters, the following operations may be performed:

[0212] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0213] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0214] Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point;

[0215] After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value, wherein the contact constraint loss value of the target candidate translation point is less than the contact constraint loss values ​​of other candidate translation points in the plurality of candidate translation points;

[0216] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0217] In one embodiment, the candidate adjustment parameters include candidate translation parameters. When the processor 1301 optimizes the candidate adjustment parameters and obtains the optimized adjustment parameters, the following operations may be performed:

[0218] Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image;

[0219] Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image;

[0220] Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image;

[0221] Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point;

[0222] After the traversal is completed, a target candidate translation point is determined based on each mode-penetrating constraint loss value, wherein the mode-penetrating constraint loss value of the target candidate translation point is less than the mode-penetrating constraint loss values ​​of other candidate translation points among the multiple candidate translation points;

[0223] Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

[0224] In one embodiment, the processor 1301 optimizes the candidate adjustment parameters and when obtaining the optimized adjustment parameters, the processor 1301 may perform the following operations:

[0225] Based on a gradient optimization algorithm and a constraint loss function, the candidate adjustment parameters are optimized to obtain optimized adjustment parameters, wherein the constraint loss function includes at least one of the following: a penetration constraint loss function and a contact constraint loss function.

[0226] In one embodiment, the candidate adjustment parameters include candidate translation parameters, candidate rotation parameters, and candidate scale parameters. When the processor 1301 performs a primary fusion process on the image and the three-dimensional object model based on the candidate adjustment parameters to obtain an initial human-object interaction image, the following operations may be performed:

[0227] Adjusting the scale of the three-dimensional object model in the image, wherein the scale of the three-dimensional object model after the scale adjustment matches the candidate scale parameter;

[0228] Based on the candidate translation direction and the candidate translation distance indicated by the candidate translation parameters, translating the scale-adjusted three-dimensional object model;

[0229] Based on the rotation direction indicated by the candidate rotation parameters, the three-dimensional object model after the translation adjustment is rotated to obtain the initial human-object interaction image.

[0230] In one embodiment, the candidate adjustment parameters include candidate translation parameters, and the candidate translation parameters include candidate translation directions and candidate translation distances. When the processor 1301 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, the following operations may be performed:

[0231] Acquire the center point coordinates of the key point area where each key point indicated by the key point information is located, and the center point coordinates of the three-dimensional object model in the image;

[0232] Determining the candidate translation distance based on the center point coordinates of the key point area and the center point coordinates of the three-dimensional object model in the image;

[0233] The direction from the center point of the three-dimensional object model in the image to the center point of the key point area is used as the candidate translation direction.

[0234] In one embodiment, when the processor 1301 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, the processor 1301 may perform the following operations:

[0235] Determine a target key point from the multiple key points indicated by the key point information, wherein the vertical coordinate of the target key point in the image is smaller than the vertical coordinates of other key points in the image;

[0236] A candidate scale parameter of the three-dimensional object model is determined according to the distance between the target key point and the three-dimensional object model, the height of the three-dimensional object model, and the initial scale parameter of the three-dimensional object model.

[0237] In one embodiment, when the processor 1301 determines the candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image, the processor 1301 may perform the following operations:

[0238] Determine the orientation of a key point region where each key point indicated by the key point information is located, and the orientation of the three-dimensional object model in the image;

[0239] Based on the orientation of the key point region and the orientation of the three-dimensional object model in the image, candidate rotation parameters of the three-dimensional object model are obtained.

[0240] In one embodiment, when the processor 1301 obtains the contact area prior information of the three-dimensional human body motion video, the processor 1301 may perform the following operations:

[0241] Receive the contact area prior information of the three-dimensional human body motion video annotated by the user.

[0242] In one embodiment, when the processor 1301 receives the contact area prior information of the three-dimensional human body motion video annotated by the user, the processor 1301 may perform the following operations:

[0243] Receiving the key frame of the three-dimensional human motion video annotated by a user;

[0244] Based on a predefined human body surface area division method, the surface area of ​​the human body in the key frame is divided to obtain a plurality of divided areas of the human body;

[0245] displaying a key frame including the plurality of divided areas;

[0246] In response to a user's marking operation on a target divided area in the key frame, determining key point information marked by the user;

[0247] The contact area prior information is generated based on the identifier and key point information of the key frame marked by the user.

[0248] In an embodiment of the present application, the processor 1301 obtains a three-dimensional human motion video and a three-dimensional object model, as well as prior information on contact areas of the three-dimensional human motion video, and determines an image corresponding to a key frame from the three-dimensional human motion video, and fuses the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image, and constructs a human-object interaction motion video based on the human-object interaction image and other images in the three-dimensional human motion video except the image, thereby enabling the human-object interaction motion video to be constructed conveniently and quickly.

[0249] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0250] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of this application are still within the scope of the present invention.

Claims

1. A method for constructing a human-object interactive motion video, It is characterized in that include: Acquire a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video annotated by a user; wherein the contact area prior information includes an identifier of a key frame fused with the three-dimensional object model, and key point information of a target human body in contact with the three-dimensional object model in the key frame; the key point information is determined in response to a user's annotation operation on a target divided area in the key frame, the key frame includes a plurality of divided areas, the plurality of divided areas are obtained by dividing a surface area of ​​a human body in the key frame based on a predefined human body surface area division method, and the plurality of divided areas refer to areas where a human body may come into contact with objects of different shapes in different postures; Determine an image corresponding to the key frame from the three-dimensional human motion video; Based on the key point information, the image and the three-dimensional object model are fused to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information; A human-object interactive motion video is constructed based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

2. The method according to claim 1, It is characterized in that The step of fusing the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image includes: Determining candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image; Based on the candidate adjustment parameters, performing a primary fusion process on the image and the three-dimensional object model to obtain an initial human-object interaction image; Optimizing the candidate adjustment parameters to obtain optimized adjustment parameters; Based on the optimized adjustment parameters, the three-dimensional object model in the initial human-object interaction image is adjusted to obtain the human-object interaction image.

3. The method according to claim 2, It is characterized in that The candidate adjustment parameters include candidate translation parameters; the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes: Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image; Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image; Traversing the multiple candidate translation points, based on the coordinates of each key point of the human body in the initial human-object interaction image indicated by the key point information, and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point, calculating the contact constraint loss value of the currently traversed candidate translation point; After the traversal is completed, a target candidate translation point is determined based on each contact constraint loss value, wherein the contact constraint loss value of the target candidate translation point is less than the contact constraint loss values ​​of other candidate translation points in the plurality of candidate translation points; Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

4. The method according to claim 2, It is characterized in that The candidate adjustment parameters include candidate translation parameters; the step of optimizing the candidate adjustment parameters to obtain optimized adjustment parameters includes: Determine a translation coordinate system, wherein the origin of the translation coordinate system refers to the candidate translation end point indicated by the candidate translation parameter, the direction corresponding to the X-axis of the translation coordinate system is the candidate translation direction indicated by the candidate translation parameter, and the plane indicated by the translation coordinate system is in the same plane as the image; Based on the X-axis and the Y-axis in the translation coordinate system, determining a plurality of candidate translation points in the initial human-object interaction image; Calculating a signed distance field of the human body based on coordinates of the human body in the initial human-object interaction image; Traversing the plurality of candidate translation points, and calculating the penetration constraint loss value of the currently traversed candidate translation point based on the signed distance field and the coordinates of each surface point of the three-dimensional object model in the initial human-object interaction image after the three-dimensional object model is moved to the currently traversed candidate translation point; After the traversal is completed, a target candidate translation point is determined based on each mode-penetrating constraint loss value, wherein the mode-penetrating constraint loss value of the target candidate translation point is less than the mode-penetrating constraint loss values ​​of other candidate translation points among the multiple candidate translation points; Based on the coordinates of the target candidate translation point in the initial human-object interaction image and the coordinates of the three-dimensional object model in the initial human-object interaction image, an optimized translation parameter of the three-dimensional object model is determined.

5. The method according to claim 2, It is characterized in that The optimizing the candidate adjustment parameters to obtain the optimized adjustment parameters comprises: Based on a gradient optimization algorithm and a constraint loss function, the candidate adjustment parameters are optimized to obtain optimized adjustment parameters, wherein the constraint loss function includes at least one of the following: a penetration constraint loss function and a contact constraint loss function.

6. The method according to any one of claims 2 to 5, It is characterized in that The candidate adjustment parameters include candidate translation parameters, candidate rotation parameters and candidate scale parameters; The step of performing a primary fusion process on the image and the three-dimensional object model based on the candidate adjustment parameters to obtain an initial human-object interaction image includes: Adjusting the scale of the three-dimensional object model in the image, wherein the scale of the three-dimensional object model after the scale adjustment matches the candidate scale parameter; Based on the candidate translation direction and the candidate translation distance indicated by the candidate translation parameters, translating the scale-adjusted three-dimensional object model; Based on the rotation direction indicated by the candidate rotation parameters, the three-dimensional object model after the translation adjustment is rotated to obtain the initial human-object interaction image.

7. The method according to claim 2, It is characterized in that The candidate adjustment parameters include candidate translation parameters, and the candidate translation parameters include candidate translation directions and candidate translation distances; The determining of candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes: Acquire the center point coordinates of the key point area where each key point indicated by the key point information is located, and the center point coordinates of the three-dimensional object model in the image; Determining the candidate translation distance based on the center point coordinates of the key point area and the center point coordinates of the three-dimensional object model in the image; The direction from the center point of the three-dimensional object model in the image to the center point of the key point area is used as the candidate translation direction.

8. The method according to claim 2, It is characterized in that The determining of candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes: Determine a target key point from the multiple key points indicated by the key point information, wherein the vertical coordinate of the target key point in the image is smaller than the vertical coordinates of other key points in the image; A candidate scale parameter of the three-dimensional object model is determined according to the distance between the target key point and the three-dimensional object model, the height of the three-dimensional object model, and the initial scale parameter of the three-dimensional object model.

9. The method according to claim 2, It is characterized in that The determining of candidate adjustment parameters of the three-dimensional object model based on the key point information, the coordinates of the human body in the image, and the initial coordinates of the three-dimensional object model in the image includes: Determine the orientation of a key point region where each key point indicated by the key point information is located, and the orientation of the three-dimensional object model in the image; Based on the orientation of the key point region and the orientation of the three-dimensional object model in the image, candidate rotation parameters of the three-dimensional object model are obtained.

10. The method according to claim 1, It is characterized in that The step of obtaining the contact area prior information of the three-dimensional human body motion video annotated by the user includes: Receiving the key frame of the three-dimensional human motion video annotated by a user; Based on a predefined human body surface area division method, the surface area of ​​the human body in the key frame is divided to obtain a plurality of divided areas of the human body; displaying a key frame including the plurality of divided areas; In response to a user's marking operation on a target divided area in the key frame, determining key point information marked by the user; The contact area prior information is generated based on the identifier and key point information of the key frame marked by the user.

11. A device for constructing a human-object interactive motion video, It is characterized in that The device comprises: A key point acquisition unit, used to acquire a three-dimensional human motion video and a three-dimensional object model, as well as contact area prior information of the three-dimensional human motion video annotated by a user; wherein the contact area prior information includes an identifier of a key frame fused with the three-dimensional object model, and key point information of a target human body in contact with the three-dimensional object model in the key frame; the key point information is determined in response to a user's annotation operation on a target divided area in the key frame, the key frame includes a plurality of divided areas, the plurality of divided areas are obtained by dividing the surface area of ​​the human body in the key frame based on a predefined human body surface area division method, and the plurality of divided areas refer to areas where the human body may come into contact with objects of different forms in different postures; The key point acquisition unit is further used to determine the image corresponding to the key frame from the three-dimensional human motion video; a fusion unit, configured to fuse the image and the three-dimensional object model based on the key point information to obtain a human-object interaction image; wherein the key points where the target human body contacts the three-dimensional object model in the human-object interaction image include the key points indicated by the key point information; The unit for constructing a human-object interactive motion video is used to construct a human-object interactive motion video based on the human-object interactive image and other images in the three-dimensional human motion video except the image.

12. A computer device, It is characterized in that The computer device comprises a processor, a storage device and a communication interface, wherein the processor, the storage device and the communication interface are connected to each other, wherein: The storage device is used to store a computer program, wherein the computer program includes program instructions; The processor is used to call the program instructions to execute the method for constructing a human-object interactive motion video as described in any one of claims 1 to 10.

13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, they are used to execute the method for constructing a human-object interactive motion video as described in any one of claims 1 to 10.