Human body posture transfer method, device, system, electronic device and storage medium

By acquiring features in human images and videos, generating a human posture conversion stream and conducting supervised training, it solves the problems of large human posture transfer calculations and unrealistic results in the existing technology, and achieves clearer and more stable video generation.

CN114401446BActive Publication Date: 2024-09-24GUANGZHOU FANGGUI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111547521.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-09-24
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

In the existing technology, the calculation amount of human posture migration is large and the results are unrealistic. The 3D reconstruction scheme consumes a lot of hardware resources. The results of the 2D key point scheme are greatly affected by the quality of transformation flow learning, and the degree of influence is large.

Method used

By obtaining the texture features in the human body image to be migrated and the action features in the source video, a human posture conversion stream is generated based on these features, and supervised training is performed based on the preset true value. The error between the vector feature and the preset true value is judged. If it is smaller than the preset true value, Set the value to generate the target video, otherwise update the preset true value to improve the stability and authenticity of the generated results.

Benefits of technology

It achieves a simple and efficient way to obtain stable conversion flow prediction results, making the final generated target video clearer and more stable, and avoids the problems of large calculation amount and unrealistic results in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401446B
    Figure CN114401446B
Patent Text Reader

Abstract

The present application discloses a method, device, system, electronic device and storage medium for human posture transfer, the method comprising: obtaining texture features of a target object in a human image to be transferred and motion features of a source object in a source video; obtaining a human posture conversion flow based on the source video and the human image to be transferred; obtaining vector features of the target object based on the texture features and the human posture conversion flow; determining whether the error value between the vector features and a preset true value is greater than a first preset value; if not, generating a target video based on the vector features and the motion features. The present application can simply and efficiently obtain a stable conversion flow prediction result, so that the final generated result is clearer and more stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a human body posture migration method, a human body posture migration device, a live broadcast system, an electronic device, and a computer-readable storage medium. Background Art

[0002] The existing technical solutions for human posture transfer include 3D reconstruction of human body model and driver generation, and direct geometric warp (or network learning warp) with 2D key points. Among them, the 3D reconstruction solution has too much calculation and consumes a lot of hardware resources. At the same time, due to the parameterized model, the generated result is stiff and uncoordinated, making the generated result too unrealistic. The result generated by the 2D key point solution will be affected by the quality of the conversion flow learning, and the degree of influence is relatively large. Summary of the invention

[0003] The present application at least provides a human body posture migration method, a human body posture migration device, a live broadcast system, an electronic device and a computer-readable storage medium.

[0004] The first aspect of the present application provides a method for human body posture migration, the method comprising:

[0005] Acquire texture features of the target object in the human body image to be transferred and motion features of the source object in the source video;

[0006] Obtaining a human posture conversion stream based on a source video and a human image to be transferred;

[0007] Based on texture features and human posture conversion flow, vector features of the target object are obtained;

[0008] Determine whether the error value between the vector feature and the preset true value is greater than a first preset value;

[0009] If not, the target video is generated based on the vector features and the motion features.

[0010] The human body images to be transferred include at least a first human body image to be transferred and a second human body image to be transferred, and the action of the target object in the first human body image to be transferred is different from the action of the target object in the second human body image to be transferred. The method further includes:

[0011] Acquire a first motion feature of a target object in a first human body image to be transferred;

[0012] Acquire a second motion feature of the target object in the second human body image to be transferred;

[0013] Based on the first action feature and the second action feature, a preset true value is calculated.

[0014] After the step of generating the target video based on the vector features and the action features, the human body posture migration method further comprises:

[0015] Determining whether the confidence level of the target video is greater than a second preset value;

[0016] If yes, then output the target video;

[0017] If not, based on the target video, the preset true value is updated, and the process returns to the step of obtaining the texture features of the target object in the human body image to be transferred and the motion features of the source object in the source video.

[0018] Wherein, the human body posture transfer method also includes:

[0019] Performing posture estimation on the human body image to be migrated to obtain a first posture estimation graph;

[0020] Based on the first posture estimation graph, collecting first motion data, wherein the first motion data includes position information of at least one key point of a human body of the target object;

[0021] Based on the first motion data and the standard human body posture point, a first transformation parameter is obtained;

[0022] Based on the first transformation parameter and the first posture estimation graph, a new human body image to be transferred is obtained; wherein the target object in the new human body image to be transferred is located at the center position of the new human body image to be transferred.

[0023] Wherein, the human body posture transfer method also includes:

[0024] Acquire an image of a specific frame in the source video, perform posture estimation on the image of the specific frame, and obtain a second posture estimation graph; wherein the image of the specific frame includes a static image of the source object performing at least one action;

[0025] Based on the second posture estimation graph, collecting second motion data, wherein the second motion data includes position information of at least one human body key point of the source object;

[0026] Based on the second motion data and the standard human body posture point, obtaining a second transformation parameter;

[0027] Based on the second transformation parameters and the second posture estimation graph, a new image is obtained; wherein the source object in the new image is located at the center of the new image.

[0028] Wherein, the human body posture transfer method also includes:

[0029] Obtaining images of all training objects in the training set, performing posture estimation on the images of all training objects, and obtaining at least one corresponding posture estimation graph;

[0030] Based on at least one corresponding posture estimation graph, collecting motion data of each posture estimation graph; wherein the motion data includes position information of at least one key point of the human body of the training object corresponding to the posture estimation graph;

[0031] Average the motion data of all pose estimation graphs to obtain standard human pose points.

[0032] A second aspect of the present application provides a human body posture migration device, the human body posture migration device comprising:

[0033] An acquisition module, used to acquire texture features of a target object in a human image to be transferred, motion features of a source object in a source video, a preset true value, and acquire a human posture conversion stream based on the source video and the human image to be transferred;

[0034] A first calculation module is used to obtain vector features of the target object based on texture features and human posture conversion flow;

[0035] A judgment module, used to judge whether the deviation value between the vector feature and the preset true value is greater than a preset value;

[0036] The second calculation module is used to obtain the target video based on the vector features and the action features.

[0037] The third aspect of the present application provides a live broadcast system, which includes an anchor end, an audience end and a server. The live broadcast system inputs the human body image to be migrated and the source video through the anchor end or the audience end. The server obtains the target video based on the human body image to be migrated and the source video and through the human body posture migration method in the above-mentioned first aspect.

[0038] The fourth aspect of the present application provides an electronic device, comprising a memory and a processor coupled to each other, the processor being used to execute program instructions stored in the memory to implement the human body posture migration method in the first aspect above.

[0039] The fifth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the human body posture migration method in the first aspect.

[0040] Different from the prior art, the present application adds a preset truth value to combine the human posture transfer method with supervised training, and can simply and efficiently obtain stable conversion flow prediction results, so that the final generation result is clearer and more stable.

[0041] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.

[0043] Figure 1 It is a schematic diagram of the first process of an embodiment of the human body posture transfer method of the present application;

[0044] Figure 2 It is a structural diagram of an embodiment of the picture style transfer model provided by the present application;

[0045] Figure 3 It is a second flow diagram of an embodiment of the human body posture transfer method of the present application;

[0046] Figure 4 yes Figure 1 A schematic diagram of a specific process of obtaining a preset true value before step S14;

[0047] Figure 5 It is a flow chart of another embodiment of the human body posture transfer method of the present application;

[0048] Figure 6 yes Figure 5 A schematic diagram of a specific process of obtaining standard human body posture points before step S33 and step S43;

[0049] Figure 7 It is a schematic diagram of the framework of an embodiment of the live broadcast system of the present application;

[0050] Figure 8 It is a schematic diagram of the framework of an embodiment of the human body posture transfer device of the present application;

[0051] Fig. 9 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;

[0052] Fig.10 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the technical solution of the present application, the human body posture migration method, human body posture migration device, live broadcast system, electronic device and computer-readable storage medium provided by the present application are further described in detail below in combination with the accompanying drawings and specific implementation methods. It can be understood that 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 the field without making creative work are within the scope of protection of this application.

[0054] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0055] See also Figure 1 and Figure 2 , Figure 1 is a first flow chart of an embodiment of the human body posture transfer method of the present application, Figure 2 It is a structural diagram of an embodiment of the image style transfer model provided by the present application.

[0056] The execution subject of the human posture transfer method of the present application may be a trajectory planning device, for example, the trajectory planning method may be executed by a terminal device or a server or other processing device, wherein the trajectory planning device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a wireless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the human posture transfer method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0057] Specifically, the human body posture transfer method of the embodiment of the present disclosure may include the following steps:

[0058] Step S11: Acquire texture features of the target object in the human body image to be migrated and motion features of the source object in the source video.

[0059] Among them, the human body image to be migrated and the source video are both provided by the user, and are used to replace the source object performing a specific action in the source video with the target object in the human body image to be migrated, so that the user can obtain a video of the target object performing a specific action through the human body posture migration method.

[0060] In order to replace the source object with the target object, it is necessary to confirm the action features of the source object and the texture features of the target object. Specifically, the action features are specific actions, such as specific dance moves; the texture features are the features of the target object that are different from the source object, which may be skin color, facial features, hairstyle or skin condition, etc.

[0061] Optionally, the human image to be migrated can be a human photo, including all texture features of the target object, such as a full-body frontal photo of a person. The source video can be a dance video, specifically a video of a single person or multiple people dancing, including the source object to be replaced.

[0062] When the object contained in the source video is a single person, the object is the source object; when the object contained in the source video is multiple people, the source object needs to be determined. Specifically, this can be done by performing human image recognition on the source video to obtain all human images contained in the source video, and performing action recognition on the object contained in each human image to determine that the target object performing a specific action is the source object.

[0063] The human body posture transfer method obtains the dance movements of the source object to determine the target object to be replaced, and obtains the texture features of the target object to replace the texture features of the source object with the corresponding texture features to achieve human body posture transfer.

[0064] Specifically, this embodiment extracts the texture feature X′ of the target object from the human body image to be transferred through the E_src network, and extracts the action feature D′ of the source object from the source video through the E_tgt network.

[0065] Step S12: obtaining a human body posture conversion stream based on the source video and the human body image to be transferred.

[0066] Among them, the human posture conversion flow contains relevant information from user posture to dance posture, which is an important parameter in human posture migration.

[0067] Step S13: Based on the texture features and the human body posture conversion flow, the vector features of the target object are obtained.

[0068] Among them, this embodiment extracts the human posture conversion flow T from the source video and the human body image to be transferred through the E_flow network, and then acts on the human posture conversion flow T on the texture feature X′ of the target object to obtain the vector feature X of the converted target object T .

[0069] Step S14: Determine whether the error value between the vector feature and the preset true value is greater than a first preset value.

[0070] Among them, this embodiment adds a preset true value, and then the generation result of the E_flow network, that is, the vector feature X of the target object T The error value is calculated with the preset true value to perform constrained training to achieve the combination of supervision and training.

[0071] Specifically, this embodiment uses the vector feature X of the target object T Compared with the preset true value, the L2 norm loss function (L2-Loss) is calculated, that is, the minimum square error (LSE) is calculated. Among them, the minimum square error is to minimize the sum of the squares of the difference between the target value and the estimated value, that is, the vector feature X T The sum of squares of the differences from the preset true value is minimized.

[0072] If the error value between the vector feature and the preset true value is greater than the first preset value, the process returns to step S11 , and if not, the process executes step S15 .

[0073] Step S15: If not, based on the vector feature X T Generate target videos with action features.

[0074] When judging the vector feature X of the target object T When the minimum square error between the vector feature X and the preset true value is less than or equal to the first preset value, it is proved that the vector feature X of the target object T The deviation is within the controllable range. Through the D_tgt network, based on the vector feature X T Generate target video with the action features of source objects.

[0075] When judging the vector feature X of the target object T When the minimum square error between the vector feature X and the preset true value is greater than the first preset value, it is proved that the vector feature X of the target object T There is a large error. If we still use this vector feature X T , will affect the texture clarity and video stability of the generated target video, so return to step S13, re-perform the texture features of the target object, the motion features of the source object, the human posture conversion flow, and the vector features X of the target object T to obtain.

[0076] Before executing step S14, it is necessary to obtain a preset true value. For the specific acquisition process, please continue to refer to Figure 4 , Figure 4 yes Figure 1 A schematic diagram of a specific process of obtaining a preset true value before step S14.

[0077] Specifically, the following steps are included:

[0078] Step S21: Acquire a first motion feature of a target object in a first human body image to be transferred.

[0079] Step S22: Acquire a second motion feature of the target object in the second human body image to be transferred.

[0080] Step S23: Based on the first action feature and the second action feature, a preset true value is calculated.

[0081] The human body image to be transferred includes a plurality of human body images to be transferred, and the actions of the target objects in each human body image to be transferred may be the same or different.

[0082] Specifically, the present embodiment includes a first human body image to be transferred and a second human body image to be transferred, and the action of the target object in the first human body image to be transferred is different from the action of the target object in the second human body image to be transferred. Optionally, the action of the target object in the first human body image to be transferred is different from the action of the source object, and the action of the target object in the second human body image to be transferred is the same as the action of the source object; or, the action of the target object in the first human body image to be transferred is the same as the action of the source object, and the action of the target object in the second human body image to be transferred is different from the action of the source object.

[0083] In this embodiment, the first motion feature and the second motion feature of the target object in the first human body image to be transferred and the second human body image to be transferred are respectively obtained through the Flow_net network, and a preset true value is calculated based on the first motion feature and the second motion feature.

[0084] Optionally, in other embodiments, the plurality of human images to be transferred include a plurality of target objects with different actions, and the preset true value is calculated based on the plurality of action features of the target objects in the plurality of human images to be transferred, wherein at least one action feature of the plurality of action features is the same as the action feature of the source object.

[0085] This embodiment achieves pre-training of the E_flow network by setting a preset true value, which can improve the accuracy of the E_flow network and enable it to obtain stable human posture transition flow prediction results simply and efficiently in a manner combining supervision and training.

[0086] Based on the above embodiment, the confidence level of the target video can also be judged. Figure 3 , Figure 3 It is a second flow chart of an embodiment of the human body posture transfer method of the present application.

[0087] Specifically, the human body posture transfer method of the embodiment of the present disclosure may also include the following steps:

[0088] Step S16: Determine whether the confidence level of the target video is greater than a second preset value.

[0089] When the target video is obtained through the D_tgt network, the confidence of the target video needs to be further judged to determine whether the target video is "real". If the judgment result is yes, step S18 is executed, and if the judgment result is no, step S17 is executed.

[0090] Step S17: If not, update the preset true value based on the target video and return to step S11.

[0091] Step S18: If yes, output the target video.

[0092] Specifically, this embodiment uses the Dec network to make a confidence judgment. The input parameter of the Dec network is the target video, and the output parameter represents the probability that the target video is a real video. If the output parameter is 1, it means that it is 100% a real video, and if the output parameter is 0, it means that it is impossible to be a real video.

[0093] Optionally, the second preset value of this embodiment is set to 0.5. When the output parameter of the Dec network is greater than 0.5, it is proved that the Dec network determines that the target video is a real video and directly outputs the target video. When the output parameter of the Dec network is less than or equal to 0.5, it is proved that the Dec network determines that the target video cannot be a real video, and the preset true value is further updated based on the target video, and the process returns to step S11 to obtain a new target video.

[0094] This embodiment uses the Dec network to make a confidence judgment on the target video, and updates the preset true value according to the output parameters of the Dec network to make the output target video more "real".

[0095] In order to further improve the learning effect of the E_flow network, this application also provides another embodiment, please refer to Figure 5 , Figure 5 1 is a flow chart of another embodiment of the human body posture transfer method of the present application. Specifically, the human body posture transfer method of the present disclosure embodiment may include the following steps:

[0096] Step S31: performing posture estimation on the human body image to be migrated to obtain a first posture estimation graph.

[0097] Among them, after obtaining the human body image to be migrated, it is necessary to perform posture estimation on the human body image to be migrated, wherein there can be multiple posture estimation methods, which can be a two-dimensional posture estimation method or a three-dimensional posture estimation method, and this embodiment does not make specific limitations here.

[0098] Step S32: Based on the first posture estimation graph, first motion data is collected.

[0099] Among them, this embodiment obtains the corresponding first posture T1 according to the first posture estimation graph, and collects first motion data of the target object from the first posture T1, and the first motion data includes position information of at least one human body key point of the target object.

[0100] The position information of the key points of the human body is used to locate the head position and limb position of the target object in the transferred human body image, including but not limited to the top of the head, facial features, neck, and main joints of the limbs, etc. Optionally, in this embodiment, the key points of the human body mainly include seven posture key points such as the neck and main joints of the limbs.

[0101] Step S33: obtaining first transformation parameters based on the first motion data and the standard human body posture points.

[0102] In this embodiment, affine transformation parameters are calculated based on the first motion data and standard human body posture points to obtain the first transformation parameter θ1.

[0103] Step S34: obtaining a new human body image to be transferred based on the first transformation parameter and the first posture estimation graph.

[0104] In this embodiment, the human body image to be transferred is aligned and changed by formula (1) so that the target object in the new human body image to be transferred is located at the center of the new human body image to be transferred. Formula (1) is specifically as follows:

[0105] X2=T(X1,θ) (1)

[0106] Wherein, X2 is the image after the change, X1 is the image before the change, and θ is the change parameter. When using formula (1) in this embodiment, the first transformation parameter θ1 and the first posture T1 are respectively input into formula (1) to obtain a new human body image to be migrated.

[0107] Step S41: obtaining an image of a specific frame in a source video, performing posture estimation on the image of the specific frame, and obtaining a second posture estimation graph.

[0108] The source video is a dance video, which includes multiple frames of images, but the source object to be replaced does not appear in each frame of the image, so the multiple frames of images need to be screened to obtain a specific frame of images. Specifically, the specific frame of the image includes a static image of the source object performing at least one action, and the posture of the specific frame of the image is estimated to obtain a second posture estimation map.

[0109] There may be multiple posture estimation methods, which may be a two-dimensional posture estimation method or a three-dimensional posture estimation method, and this embodiment does not specifically limit this.

[0110] Step S42: Based on the second posture estimation graph, collect second motion data.

[0111] Among them, this embodiment obtains the corresponding second posture T2 according to the second posture estimation graph, and collects second motion data of the source object from the second posture T2, and the second motion data includes position information of at least one human body key point of the source object.

[0112] The position information of the key points of the human body is used to locate the head position and limb position of the source object in the static image, including but not limited to the top of the head, facial features, neck, and main joints of the limbs, etc. Optionally, in this embodiment, the key points of the human body mainly include seven posture key points such as the neck and main joints of the limbs.

[0113] Step S43: obtaining second transformation parameters based on the second motion data and the standard human body posture points.

[0114] In this embodiment, affine transformation parameters are calculated based on the second motion data and standard human body posture points to obtain second transformation parameters θ2.

[0115] Step S44: obtaining a new image based on the second transformation parameters and the second posture estimation graph.

[0116] In this embodiment, the image of the specific frame is aligned and changed by formula (1) so that the source object in the new image is located at the center of the new image. When using formula (1) in this embodiment, the second transformation parameter θ2 and the second posture T2 are respectively input into formula (1) to obtain a new image.

[0117] Optionally, the present application may execute steps S31 and S41 simultaneously, or execute steps S31 and S41 in sequence at a certain time, for example, execute steps S31-S34 first, and then execute steps S41-S44; or execute steps S41-S44 first, and then execute steps S31-S34. The present application does not limit this.

[0118] In addition, before executing step S33 and step S43, it is necessary to obtain standard human body posture points. For the specific acquisition process, please continue to refer to Figure 6 , Figure 6 yes Figure 4 The specific flow chart of obtaining the standard human body posture points before step S33 and step S43 in FIG. Specifically, the following steps are included:

[0119] Step S51: Acquire images of all training objects in the training set, perform pose estimation on the images of all training objects, and obtain at least one corresponding pose estimation graph.

[0120] The training set includes the target objects in all input human body images to be migrated and the total set of objects contained in all source videos, any of which is a training object. This embodiment performs posture estimation on the corresponding image of each training object to obtain at least one corresponding posture estimation graph.

[0121] Step S52: Based on at least one corresponding posture estimation graph, collect motion data of each posture estimation graph.

[0122] Among them, this embodiment obtains the posture corresponding to each training object according to at least one corresponding posture estimation graph, and collects motion data of the training object from the posture, and the motion data includes position information of at least one key point of the human body of the training object.

[0123] The position information of the key points of the human body is used to locate the head position and limb position of the source object in the static image, including but not limited to the top of the head, facial features, neck, and main joints of the limbs, etc. Optionally, in this embodiment, the key points of the human body mainly include seven posture key points such as the neck and main joints of the limbs.

[0124] Step S53: average the motion data of all posture estimation graphs to obtain standard human body posture points.

[0125] Among them, after obtaining multiple groups of motion data of training objects in step S52, weighted average processing is performed on them to obtain standard human body posture points.

[0126] This embodiment estimates the posture of the input human body image to be migrated and the source video, and extracts the key points of the human body for affine transformation, so that the target object in the final input human body image to be migrated and the source object in the source video are located at the center of the image, reducing the learning amount of the E_flow network, improving the learning effect of the E_flow network, and making the finally generated target video clearer and more stable.

[0127] This application also provides a live broadcast device, please refer to Figure 7 , Figure 7 Schematic diagram of the framework of an embodiment of the live broadcast device of the present application. Figure 7 As shown, the live broadcast device 60 includes an anchor terminal 61, an audience terminal 62 and a server 63. The live broadcast device 60 inputs the human body image to be migrated and the source video through the anchor terminal 61 or the audience terminal 62, and stores them in the server 63. The server 63 performs human body migration on each frame of the source video containing the image of the source object through the human body posture migration method of any of the above embodiments, so that the source object is replaced with the target object, and the replaced target video is obtained, and the target video is output to the anchor terminal 61 or the audience terminal 62, so that the corresponding user can watch the target video.

[0128] For example, when the user is a host, the user inputs the human body image to be migrated and the source video through the host terminal 61, and obtains the replaced target video through the server 63, and displays the video to the audience watching the host, which can increase the user's interest in the host.

[0129] When the user is a viewer, the user inputs the human body image to be migrated and the source video through the viewer terminal 62, and obtains the replaced target video through the server 63, which can improve the fun of the live broadcast device and further improve the user stickiness.

[0130] This application also provides a human body posture migration device, see Figure 8 , Figure 8 Schematic diagram of the framework of an embodiment of the human body posture transfer device of the present application. Figure 8 As shown, the human body posture transfer device 70 includes an acquisition module 71 , a first calculation module 72 , a judgment module 73 and a second calculation module 74 .

[0131] The acquisition module 71 is used to obtain the texture feature X′ of the target object in the human image to be transferred, the action feature D′ of the source object in the source video, the preset true value, and obtain the human posture conversion flow T based on the source video and the human image to be transferred.

[0132] The first calculation module 72 is used to obtain the vector feature X of the target object based on the texture feature X′ and the human body posture conversion flow T. T .

[0133] The judging module 73 is used to judge the vector feature X T Is the deviation between the vector feature X and the preset true value greater than the preset value? If so, return to the acquisition module 71 to re-acquire the texture feature X′ of the target object in the human image to be migrated and the action feature D′ of the source object in the source video; if not, replace the vector feature X T The action feature D′ is transmitted to the second calculation module 74 .

[0134] The second calculation module 74 is used to calculate the vector feature X T and action feature D′ to obtain the target video.

[0135] Furthermore, the human body posture transfer device 70 also includes a third calculation module 75 , an output judgment module 76 and a posture estimation module 77 .

[0136] The acquisition module 71 is further used to acquire the first motion feature and the second motion feature of the target object in the first human body image to be transferred and the second human body image to be transferred.

[0137] The third calculation module 75 is used for calculating a preset true value based on the first action feature and the second action feature, and transmitting the preset true value to the judgment module 73 .

[0138] The output judgment module 76 is used to judge whether the confidence of the target video is greater than the second preset value. If yes, the target video is output; if not, the preset truth value is updated based on the target video and the acquisition module 71 is returned.

[0139] The posture estimation module 77 is used to perform posture estimation on the human body image to be migrated, the image of a specific frame in the source video, and the images of all training objects in the training set, and obtain the first motion data, the second motion data, and the standard human body posture points, respectively. Based on the first motion data and the standard human body posture points, a new human body image to be migrated is obtained in which the target object is located at the center of the image; based on the second motion data and the standard human body posture points, a new source video in which the source object is located at the center of the image is obtained; and the new human body image to be migrated and the new source video are transmitted to the acquisition module 71.

[0140] The human body posture transfer device 70 of the present application sets a judgment module 73 and a posture estimation module 77, reduces the difficulty from the input part to the output part according to the supervised training combination, can simply and efficiently obtain stable conversion flow prediction results, and the target video finally generated is clearer and more stable.

[0141] This application also provides an electronic device, see Fig. 9 , Fig. 9 Schematic diagram of the framework of an embodiment of the electronic device of the present application. Fig. 9 As shown, the electronic device 80 includes a memory 81 and a processor 82 coupled to each other, and the processor 82 is used to execute the program instructions stored in the memory 81 to implement the steps in any of the above robot trajectory planning method embodiments. In a specific implementation scenario, the electronic device 80 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 80 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0142] Specifically, the processor 82 is used to control itself and the memory 81 to implement the steps in any of the above-mentioned human body posture migration method embodiments. The processor 82 can also be called a CPU (Central Processing Unit). The processor 82 may be an integrated circuit chip with signal processing capabilities. The processor 82 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 82 can be implemented by an integrated circuit chip.

[0143] This application also provides a computer-readable storage medium, see Fig.10 , Fig.10 Schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. Fig.10 As shown, the computer-readable storage medium 90 stores program instructions 91 that can be executed by a processor, and the program instructions 91 are used to implement the steps in any of the above-mentioned human body posture transfer method embodiments.

[0144] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0145] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0146] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0147] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

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

[0149] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A human body posture transfer method, It is characterized in that include: Acquire texture features of a target object in the human body image to be transferred and motion features of a source object in a source video; wherein the texture features are obtained by extracting features from the human body image to be transferred; Extracting a human body posture conversion stream from the source video and the human body image to be transferred; Applying the human body posture conversion flow to the texture feature to obtain a converted vector feature of the target object; Determine whether an error value between the vector feature and a preset true value is greater than a first preset value; If not, generating a target video based on the vector feature and the action feature; The method further comprises: Performing posture estimation on the human body image to be migrated to obtain a first posture estimation graph; Based on the first posture estimation graph, first motion data is collected, wherein the first motion data includes position information of at least one human body key point of the target object, and the human body key points include seven posture key points such as the neck and main joints of the limbs; Based on the first motion data and the standard human body posture point, obtaining a first transformation parameter; Based on the first transformation parameter and the first posture estimation graph, a new human body image to be transferred is obtained; wherein the target object in the new human body image to be transferred is located at the center position of the new human body image to be transferred; Acquire an image of a specific frame in the source video, perform posture estimation on the image of the specific frame, and obtain a second posture estimation graph; wherein the image of the specific frame includes a static image of the source object performing at least one action; Based on the second posture estimation graph, collecting second motion data, wherein the second motion data includes position information of at least one human body key point of the source object; Based on the second motion data and the standard human body posture point, obtaining a second transformation parameter; A new image is obtained based on the second transformation parameters and the second posture estimation graph; wherein the source object in the new image is located at a center position of the new image.

2. The method according to claim 1, It is characterized in that The human body images to be transferred include at least a first human body image to be transferred and a second human body image to be transferred, the action of the target object in the first human body image to be transferred is different from the action of the target object in the second human body image to be transferred, and the method further includes: Acquire a first motion feature of a target object in the first human body image to be transferred; Acquire a second motion feature of the target object in the second human body image to be transferred; The preset true value is calculated based on the first action feature and the second action feature.

3. The method according to claim 2, It is characterized in that After the step of generating the target video based on the vector features and the action features, the method further includes: Determining whether the confidence level of the target video is greater than a second preset value; If yes, output the target video; If not, based on the target video, the preset true value is updated, and the process returns to the step of obtaining the texture features of the target object in the human body image to be migrated and the motion features of the source object in the source video.

4. The method according to claim 1, It is characterized in that The method further comprises: Acquire images of all training objects in a training set, perform pose estimation on the images of all training objects, and obtain at least one corresponding pose estimation graph; Based on the at least one corresponding posture estimation graph, collecting motion data of each of the posture estimation graphs; wherein the motion data includes position information of at least one key point of the human body of the training object corresponding to the posture estimation graph; The motion data of all the posture estimation graphs are averaged to obtain the standard human body posture points.

5. A human body posture migration device, It is characterized in that include: An acquisition module, used to acquire texture features of a target object in a human body image to be transferred, motion features of a source object in a source video, and a preset truth value, and to extract a human body posture conversion stream from the source video and the human body image to be transferred; wherein the texture features are obtained by extracting features from the human body image to be transferred; A first calculation module, used for applying the human body posture conversion flow to the texture feature to obtain a converted vector feature of the target object; A judging module, used to judge whether the deviation value between the vector feature and the preset true value is greater than a preset value; A second calculation module, used for obtaining a target video based on the vector feature and the action feature; The acquisition module is further used to perform posture estimation on the human body image to be migrated to obtain a first posture estimation graph; The acquisition module is also used to collect first motion data based on the first posture estimation graph, wherein the first motion data includes position information of at least one human body key point of the target object, and the human body key points include seven posture key points such as the neck and main joints of the limbs; The acquisition module is also used to obtain a first transformation parameter based on the first motion data and a standard human body posture point; The acquisition module is further used to obtain a new human body image to be transferred based on the first transformation parameter and the first posture estimation graph; wherein the target object in the new human body image to be transferred is located at the center position of the new human body image to be transferred; The acquisition module is further used to acquire an image of a specific frame in the source video, perform posture estimation on the image of the specific frame, and obtain a second posture estimation graph; wherein the image of the specific frame includes a static image of the source object performing at least one action; The acquisition module is further used to collect second motion data based on the second posture estimation graph, wherein the second motion data includes position information of at least one human body key point of the source object; The acquisition module is also used to obtain second transformation parameters based on the second motion data and standard human body posture points; The acquisition module is also used to obtain a new image based on the second transformation parameters and the second posture estimation map; wherein the source object in the new image is located at the center of the new image.

6. A live broadcast system, It is characterized in that The live broadcast system includes an anchor end, an audience end and a server. The live broadcast system inputs a human body image to be migrated and a source video through the anchor end or the audience end. The server obtains a target video based on the human body image to be migrated and the source video and through the human body posture migration method described in any one of claims 1-4.

7. An electronic device, It is characterized in that It comprises a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the human body posture migration method described in any one of claims 1-4.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program can implement the human body posture migration method as described in any one of claims 1 to 4 when executed by a processor.