Method and device for processing the action of virtual objects, and computer program

The method improves virtual object action processing efficiency by using pre-stored action videos and generating connected sequences based on action identifiers and time-related information, addressing inefficiencies in existing technologies.

JP7568201B2Active Publication Date: 2024-10-16BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023549586
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-07-07
Filing Date
2022-06-22
Publication Date
2024-10-16
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

Existing virtual object action processing methods are inefficient due to the time-consuming process of generating action videos using generative adversarial networks, which requires significant user input of key point information and increases operational difficulty.

Method used

A method involving the receipt of an action instruction with an identifier and time-related information, determination of an action video frame sequence, identification of a corresponding action state image, and generation of a connected video frame sequence to splice and concatenate with a predetermined state image, utilizing pre-collected and stored action videos to improve efficiency.

Benefits of technology

This approach reduces user time and operational effort by allowing efficient action processing through the use of pre-stored action videos, enhancing continuity and reducing video generation time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007568201000001
    Figure 0007568201000001
  • Figure 0007568201000002
    Figure 0007568201000002
  • Figure 0007568201000003
    Figure 0007568201000003
Patent Text Reader

Abstract

A method and an apparatus for processing an action of a virtual object, and a storage medium thereof are provided, the method specifically includes the steps of: receiving an action command, the action command may include an action identifier and time-related information (101); determining an action video frame sequence corresponding to the action identifier (102); determining an action state image corresponding to the predetermined state image from the action video frame sequence based on a predetermined state image of a virtual object at a target time, the target time may be determined based on the time-related information (103); generating a connection video frame sequence based on the predetermined state image and the action state image, the connection video frame sequence being used to connect the predetermined state image and the action video frame sequence (104); and splicing the connection video frame sequence and the action video frame sequence to obtain an action video (105). The embodiment of the present application can improve the efficiency of the action processing of a virtual object.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application filed on July 7, 2021, bearing application number 202110770548.4 and entitled "Virtual object action processing method and apparatus, and storage medium", the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of communications technology, and in particular to a method and apparatus for processing the action of a virtual object, and a computer program therefor. [Background technology]

[0003] With the development of communication technology, virtual objects can be widely used in broadcasting, education, medical, customer service, etc. In broadcasting, for example, virtual objects can replace media workers who broadcast news or perform game commentary.

[0004] In practical application, virtual objects usually need to perform some actions. Currently, according to the action processing process of virtual objects in the related art, usually, first, a user provides human body keypoint information in time sequence, and then the above keypoint information is input into a Generative Adversarial Network (GAN) to generate action video frames in an action video, and then, according to time sequence, the action video frames in the action video are spliced ​​together to obtain a corresponding action video.

[0005] Generating action videos in the related art takes a significant amount of time, which reduces the efficiency of action processing. Summary of the Invention [Problem to be solved by the invention]

[0006] The present embodiment proposes a method and device for processing an action of a virtual object, which can improve the efficiency of the action processing of a virtual object, and a storage medium thereof. [Means for solving the problem]

[0007] The present application provides a method for processing actions of a virtual object, executed by a computing device, the method comprising: receiving an action command, the action command including an action identifier and time related information; determining an action video frame sequence corresponding to the action identifier; determining, based on a predefined state image of a virtual object at a target time, an action state image corresponding to the predefined state image from the action video frame sequence, wherein the target time is determined based on the time-related information; generating a connection video frame sequence based on the predetermined state image and the action state image, the connection video frame sequence being used to connect the predetermined state image and the action video frame sequence; splicing the spliced ​​video frame sequence and the action video frame sequence to obtain an action video.

[0008] In another aspect, the present application provides an apparatus for processing an action of a virtual object, the apparatus comprising: an instruction receiving module configured to receive an action instruction, the action instruction including an action identifier and time-related information; an action video frame sequence determination module configured to determine an action video frame sequence corresponding to the action identifier; an image pair determination module configured to determine, based on a pre-defined state image of a virtual object at a target time, an action state image corresponding to the pre-defined state image from the action video frame sequence, where the target time is determined based on the time-related information; a generation module configured to generate a spliced ​​video frame sequence based on the predetermined state image and the action state image, the spliced ​​video frame sequence being used to splice the predetermined state image and the action video frame sequence; a splicing module configured to splice the connected video frame sequence and the action video frame sequence to obtain an action video.

[0009] In another aspect, the present application provides an apparatus (or computing device) for action processing of a virtual object, the apparatus comprising a memory and one or more programs stored in the memory, the programs causing one or more processors to perform the aforementioned method.

[0010] In another aspect, the present application discloses a computer readable storage medium having instructions (or a program) stored thereon, said instructions (or a program) causing one or more processors to perform the aforementioned method.

[0011] In another aspect, the present application provides a computer program product including a program, the program being stored in a computer-readable storage medium, the program being read by a processor from the computer-readable storage medium and executed by the processor to realize the aforementioned method. Effect of the Invention

[0012] The present embodiment includes the following advantages:

[0013] According to the embodiment of the present application, when determining a predetermined state image of a virtual object at a target time and an action video frame sequence corresponding to an action identifier, an image pair corresponding to a predetermined state image and an action state image that match each other is determined, and a connection video frame sequence is generated according to the image pair, and the connection video frame sequence serves as a connection between the predetermined state image and the action video frame sequence and a transition between the predetermined state image and the action video frame sequence, thereby improving the continuity between the predetermined state and the action state. Furthermore, a corresponding action video can be obtained by splicing the connection video frame sequence and the action video frame sequence.

[0014] By applying the technical solution of the embodiment of the present application, a user only needs to input an action identifier and time-related information to trigger a corresponding action command, which can reduce the user's time cost and operation difficulty and improve the efficiency of the action processing of virtual objects.

[0015] Furthermore, in the embodiment of the present application, when determining a predetermined state image and an action video frame sequence, a spliced ​​video frame sequence is generated which plays a role of connection and functions as a transitional one, and the action video frame sequence can be derived from a pre-collected and pre-stored action video, so that the scope of the generated video is specifically a spliced ​​video frame sequence, and therefore the embodiment of the present application can reduce the time required for generating the video, and further improve the efficiency of the action processing of the virtual object. [Brief description of the drawings]

[0016] [Figure 1] 4 is a flow chart of steps of a method for processing actions of a virtual object, according to an embodiment of the present invention. [Diagram 2]1 is an exemplary flowchart of pre-processing of action videos according to an embodiment of the present disclosure; [Diagram 3] 1 is an exemplary flowchart for matching a pre-defined state image with an action state image, according to an embodiment of the present disclosure. [Figure 4] 4 is an exemplary flowchart for generating a sequence of spliced ​​video frames according to an embodiment of the present disclosure. [Diagram 5] FIG. 2 is a block diagram of the structure of a virtual object action processing device according to an embodiment of the present application. [Figure 6] FIG. 2 is a block diagram of the structure of an apparatus for action processing of a virtual object according to an embodiment of the present application; [Figure 7] FIG. 2 is a block diagram of a server-side architecture in some embodiments of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] In order to make the above objectives, features and advantages of the present application clearer and easier to understand, the present application will be described in more detail below with reference to the drawings and specific embodiments.

[0018] In the present embodiment, the virtual object is a vivid and natural object close to a real object, obtained by using techniques such as object modeling and action capture, and the virtual object can be endowed with the ability to recognize, understand, or express using artificial intelligence techniques such as voice recognition and natural language understanding. The virtual object specifically includes a virtual person, a virtual animal, a three-dimensional animated character, etc.

[0019] For example, in a broadcasting environment, a virtual object can replace a media worker performing a news broadcast or a game commentary. In a particular implementation, the virtual object can represent text, and embodiments of the present application can generate a video corresponding to the text and the virtual object. The video can specifically include an audio sequence corresponding to the text and a video frame sequence corresponding to the audio sequence.

[0020] According to the states corresponding to the virtual objects, the video frame sequence corresponding to the audio sequence can be divided into predefined state images or action state images.

[0021] Here, the predetermined state image can correspond to a predetermined state of the virtual object when no action is being performed. In a particular implementation, a predetermined length of time of a predetermined state image sequence can be preset, and the predetermined state image sequence can be cyclically played when no action is being performed. For example, the predetermined states of the virtual anchor when no action is being performed include arms down, lips closed, eyes neutral, etc.

[0022] The action state image can correspond to the action state of the virtual object when performing an action. For example, the predetermined states of the virtual anchor when performing a greeting action include waving arms left and right, opening lips at a certain angle, smiling eyes, etc.

[0023] In the process of generating an action video in the related art, the user needs to provide key point information of the human body, which not only increases the user's time cost and operation difficulty, but also reduces the efficiency of action processing. In addition, in the related art, all action video frames contained in the action video are generated by a generative adversarial network, so it also takes a lot of time to generate the action video and the efficiency of action processing is low.

[0024] In response to the technical problem of how to improve the efficiency of action processing of virtual objects, the embodiments of the present application provide a solution for action processing of virtual objects, and the technical solution specifically includes: receiving an action command, where the action command specifically includes an action identifier and time related information; determining an action video frame sequence corresponding to the action identifier; determining an action state image corresponding to a predetermined state image from the action video frame sequence based on a predetermined state image of a virtual object at a target time, where the target time can be determined based on the time related information; generating a connection video frame sequence based on the predetermined state image and the action state image, where the connection video frame sequence is used to connect the predetermined state image and the action video frame sequence; and stitching together the connection video frame sequence and the action video frame sequence to obtain an action video.

[0025] In an embodiment of the present invention, a user includes an action identifier and time-related information in an action command, where the action identifier is used to determine a corresponding action video frame sequence, which may be derived from a pre-collected and pre-stored action video, and the time-related information is used to determine a target time corresponding to a given status image.

[0026] In the present embodiment, when determining a predetermined state image of a virtual object at a target time and an action video frame sequence corresponding to an action identifier, an image pair corresponding to a predetermined state image and an action state image that match each other is determined, and a connection video frame sequence is generated according to the image pair, and the connection video frame sequence serves as a connection between the predetermined state image and the action video frame sequence and a transition between the predetermined state image and the action video frame sequence, thereby improving the continuity between the predetermined state and the action state. Furthermore, the connection video frame sequence and the action video frame sequence can be spliced ​​together to obtain a corresponding action video.

[0027] By applying the technical solution of the embodiment of the present application, a user only needs to input an action identifier and time-related information to trigger a corresponding action command, which can reduce the user's time cost and operation difficulty and improve the efficiency of the action processing of virtual objects.

[0028] Furthermore, in the embodiment of the present application, when determining a predetermined state image and an action video frame sequence, a spliced ​​video frame sequence is generated which plays a role of connection and functions as a transitional one, and the action video frame sequence can be derived from a pre-collected and pre-stored action video, so that the scope of the generated video is specifically a spliced ​​video frame sequence, and therefore the embodiment of the present application can reduce the time required for generating the video, and further improve the efficiency of the action processing of the virtual object.

[0029] For example, if a user selects an action identifier X in text content A, the action command I can be considered to include the action identifier X and time-related information (the position of text content A). The process of the action command I can include the following steps: searching for an action video frame sequence corresponding to the action identifier C using a method such as video search; determining a target time and a predetermined state image of a virtual object at the target time based on the position of text content A; determining an action state image corresponding to the predetermined state image from the action video frame sequence; generating a spliced ​​video frame sequence based on the predetermined state image and the action state image; and splicing the spliced ​​video frame sequence and the action video frame sequence. The spliced ​​video frame sequence obtained in the embodiment of the present application can correspond to an audio sequence corresponding to the text content A, and for example, the spliced ​​video frame sequence and the audio sequence corresponding to the text content A can be aligned on the time axis to realize synchronous playback of both.

[0030] In practical applications, text to speech (TTS) technology can be used to convert text into speech sequences. The speech sequences can be expressed in the form of waveforms. To be understood, speech sequences that meet requirements can be obtained according to speech synthesis parameters.

[0031] Optionally, the voice synthesis parameters may include at least one of a timbre parameter, a pitch parameter and a loudness parameter.

[0032] Here, the timbre parameters can refer to the specific characteristics of different sound frequencies in a waveform, and usually different sounding bodies correspond to different timbres, so that a voice sequence matching the timbre of a target sounding body can be obtained based on the timbre parameters, and the target sounding body can be specified by a user, for example, the target sounding body can be a specified media worker, etc. In practical application, the timbre parameters of the target sounding body can be obtained based on a predetermined length of audio of the target sounding body.

[0033] The pitch parameter may represent the tone of a voice and is measured in frequency, whereas the loudness parameter, also called the intensity or volume of a sound, may refer to the loudness of a sound and is measured in decibels (dB).

[0034] The action processing method of a virtual object according to an embodiment of the present application can be applied to an application environment including a client and a server side, where the client and the server side are arranged in a wired or wireless network, and the client and the server side exchange data via the wired or wireless network.

[0035] Optionally, the client may be executed on a terminal device, including, but not limited to, a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, an in-vehicle computer, a desktop computer, a set-top box, a smart television, a wearable device, and the like.

[0036] The term "client" refers to a program corresponding to the server side and providing local services to users. In the embodiment of the present application, the client can receive an action command and provide a spliced ​​video frame sequence corresponding to the action command. The spliced ​​video frame sequence can be generated by the client side or the server side, and the embodiment of the present application is not limited to a specific generator of the spliced ​​video frame sequence.

[0037] In one embodiment of the present application, the client can receive the user's text and action instructions, upload the text, target pronunciation information and action instructions to the server side, and allow the server side to generate a target video corresponding to the text, target pronunciation and action instructions, and the client can output the target video to the user. The target video may include the above-mentioned spliced ​​video frame sequence.

[0038] The server side is also called a server, and may be a single server, a server cluster composed of multiple servers, or a cloud computing service. The server side is used to provide background services to clients.

[0039] FIG. 1 shows a flowchart of steps of a virtual object action processing method according to an embodiment of the present application, and the method may specifically include the following steps:

[0040] In step 101, an action command is received, which may include an action identifier and time-related information.

[0041] In step 102, an action video frame sequence corresponding to the action identifier is determined.

[0042] In step 103, based on a predetermined state image of the virtual object at a target time, an action state image corresponding to the predetermined state image is determined from the action video frame sequence, and the target time is determined based on the time-related information.

[0043] In step 104, a splicing video frame sequence is generated based on the predetermined state image and the action state image, and the splicing video frame sequence is used to splice the predetermined state image and the action video frame sequence.

[0044] In step 105, the splice video frame sequence and the action video frame sequence are spliced ​​together to obtain an action video.

[0045] At least one step in the embodiment shown in FIG. 1 may be executed on the server side, and of course, the embodiment of the present application is not limited to a specific execution entity of each step.

[0046] In step 101, the client can receive an action command input by a user and transmit the action command to the server side.

[0047] In practical applications, the client can provide a user interface (UI) for a user to input an action command. For example, the user interface may include text content, and when a user selects a certain text content A and selects an action identifier X, the action command I can be considered to include the action identifier X and time-related information (the position of the text content A). The action command I can represent that the virtual object performs an action corresponding to the action identifier X in the process of expressing the text content A. For example, the text content A is "Nice to meet you," and the action identifier X is "Greetings," etc.

[0048] The action identifier can be used to identify an action. For example, the action identifier may be a name of the action, etc. Examples of action identifiers may include greeting, bowing, smiling, showing an object, signing, etc.

[0049] The time-related information may relate to a time of an action in the video. Optionally, the time-related information includes text information corresponding to an action identifier. For example, text content corresponding to an action may be specified, and a position of the text content may be used as the time-related information.

[0050] Of course, the position of the text content is only one example of the time-related information, and in practice, those skilled in the art can adopt other time-related information according to actual application requirements. For example, the time-related information may be the time information of an action in a video, and the time information may represent performing a certain action within a certain period of time. The time information may include start time information, end time information, and so on.

[0051] In step 102, action videos can be pre-collected based on the action identifiers, and the collected action videos and corresponding action identifiers can be stored in an action video library. The manner of collecting action videos can include, but is not limited to, web crawling, cooperation with video operators, recording, etc. For example, action videos corresponding to virtual objects and action identifiers can be recorded.

[0052] In practical application, a method such as video search can be used to search for an action video frame sequence corresponding to the action identifier. Specifically, based on the action identifier, an action video library can be searched to obtain an action video frame sequence corresponding to the action identifier.

[0053] In step 103, the target time may be before the action. Furthermore, the target time may be adjacent to the action. The target time may be determined based on the time-related information. Assuming that the time-related information is the position of the text content, the start time information T of the action may be determined based on the position of the text content. i and the start time information T i adjacent to and has start time information T i Time information before T (i-1) can be determined as the target time. Of course, the time information T (i-2) The embodiment of the present invention does not limit whether the target time is adjacent to the action.

[0054] In a specific implementation, the predetermined state image of the virtual object at the target time can be obtained by checking the time information in the predetermined state image sequence based on the target time. It can be understood that the embodiment of the present application is not limited to a specific manner of determining the predetermined state image of the virtual object at the target time.

[0055] When determining a predetermined state image of a virtual object at a target time and an action video frame sequence corresponding to an action identifier, an image pair corresponding to a predetermined state image and an action state image matching each other can be determined. An action video frame sequence usually includes multiple action state images, and in the present embodiment, one action state image matching the predetermined state image can be determined from the multiple action state images.

[0056] According to one embodiment, a similarity value between a predetermined state image and each action state image in an action video frame sequence is determined, and the action state image having the maximum similarity value is used as the action state image corresponding to the predetermined state image.

[0057] In practical application, a first image feature and a second image feature corresponding to a predetermined state image and an action state image in the action video frame sequence can be extracted respectively, and the above-mentioned similarity value can be determined based on the first image feature and the second image feature.

[0058] The above categories of first and second image features may include at least one of color features, texture features, shape features, spatial relationship features and visual features.

[0059] Here, the visual feature may be a feature of a predetermined part corresponding to the virtual object. By determining an action state image that matches the predetermined state image based on the feature of the predetermined part corresponding to the virtual object, matching between the predetermined state image and the action state image in the predetermined part can be realized.

[0060] In practical application, the predetermined part may be a part related to an action. For example, the predetermined part may specifically include a face, a neck, a limb, etc. Here, the face may include lips, a nose, eyes, etc. The limb may further include a limb, such as an arm part.

[0061] In one embodiment, the visual feature determination method may include the steps of determining an area image corresponding to a virtual object from a predetermined state image or an action state image, and extracting visual features of a predetermined part from the area image to use as visual features corresponding to the predetermined state image or the action state image. That is, the area image corresponding to a virtual object is determined from a predetermined state image, and visual features of a predetermined part are extracted from the area image to use as visual features corresponding to the predetermined state image. Or, the area image corresponding to a virtual object is determined from an action state image, and visual features of a predetermined part are extracted from the area image to use as visual features corresponding to the action state image.

[0062] In practical application, a region image corresponding to a virtual object can be first extracted from a predetermined state image or an action state image using a cropping technique. For example, the region image includes a face region image and a limb region image. Then, visual features of predetermined parts can be extracted from the face region image and the limb region image, respectively. Optionally, a face processing module can be used to extract visual features of predetermined parts, such as lips, nose, eyes, etc., from the face region image. Or, a limb processing module can be used to extract visual features of predetermined parts, such as limbs, etc., from the body region image.

[0063] Here, the face processing module and the limb processing module can be realized using a neural network. Examples of the neural network can include a convolutional neural network or a deep residual network. The convolutional neural network utilizes a convolution kernel to extract visual features, and in the backpropagation stage, the parameters of the convolution kernel can be updated based on a set target, so that the accuracy and robustness of feature extraction by the convolution kernel can be improved. One feature of the deep residual network is that it is easy to optimize and can improve accuracy by increasing the depth considerably, and its internal residual block uses skip connections to alleviate the problem of vanishing gradients caused by increasing the depth of the neural network. As can be understood, the embodiment of the present application is not limited to a specific neural network corresponding to the face processing module and the limb processing module.

[0064] In the embodiment of the present application, the visual feature of the predetermined portion extracted from the region image is also called a first visual feature, and the first visual feature may have sparsity.

[0065] In order to improve the density of the visual features, in one alternative embodiment of the present application, a three-dimensional reconstruction can be performed on the image of the predetermined region based on the first visual features (i.e., the visual features of the predetermined region extracted from the above-mentioned area image) to obtain high-density visual features of the predetermined region. The high-density visual features are also called second visual features. In practical application, the first visual features correspond to multiple predetermined regions, and three-dimensional reconstruction can be performed on some or all of the multiple predetermined regions. For example, three-dimensional reconstruction can be performed on an arm region. Compared with the first visual features, the second visual features obtained based on the three-dimensional reconstruction can have a higher density because they contain more high-density information.

[0066] When the visual features are used to determine the image pairs, determining the corresponding action state image from the action video frame sequence may specifically include matching the visual features corresponding to a given state image with the visual features corresponding to an action state image in the action video frame sequence to obtain the action state image corresponding to the given state image, specifically determining a matching value between the visual features, and the action state image with the largest matching value may be used as the action state image corresponding to the given state image.

[0067] In a particular implementation, multiple types of visual features can be fused to obtain a fused visual feature, and the fused visual feature corresponding to the predetermined state image can be matched with the fused visual feature corresponding to each action state image in the action video frame sequence to obtain an action state image corresponding to the predetermined state image.

[0068] The fusion method of visual features may include connection, connection+recombination, etc. Here, in the connection method, visual features of a plurality of predetermined parts can be connected together, and in the connection+recombination method, connected visual features can be rearranged and combined to obtain a new fusion visual feature.

[0069] In a specific implementation, the fusion of visual features can be realized by a fusion module. According to the constraint of the loss function, the parameters of the fusion module can be continuously updated to obtain a more satisfying fusion visual feature. It can be understood that the embodiment of the present application is not limited to a specific fusion manner of visual features.

[0070] In step 104, a connection video frame sequence is generated based on the image pair, and the connection video frame sequence serves to connect the predetermined state image and the action video frame sequence and to function as a transition between the predetermined state image and the action video frame sequence, thereby improving the continuity between the predetermined state and the action state.

[0071] The present embodiment can provide the following technical solutions for generating a spliced ​​video frame sequence.

[0072] In technical solution 1, generating the above-mentioned connected video frame sequence may specifically include: aligning position and posture information of a predetermined state image and an action state image to obtain aligned predetermined state images and action state images; and generating a connected video frame sequence based on the above-mentioned aligned predetermined state images and action state images.

[0073] The position and orientation information can represent the position or orientation information of a virtual object. By performing position and orientation information registration for two images in an image pair, the matching degree between the virtual objects in the two images can be improved, and further, the continuity between a given state image and an action video frame sequence can be improved.

[0074] In technical solution 2, generating the above-mentioned connected video frame sequence may specifically include: determining optical flow features corresponding to the predetermined state image and the action state image, respectively; and generating a connected video frame sequence based on the optical flow features.

[0075] Optical flow can be used to show the change between moving images and can represent the speed of movement of patterns in images that change over time.When a virtual object moves, the luminance pattern of the corresponding point in the image also moves, so optical flow can be used to show the change between images, and optical flow can be used to determine the movement of a virtual object because it contains the motion information of the virtual object.

[0076] In the present embodiment, the first optical flow feature corresponding to the predetermined state image may include motion information of the initial state of the virtual object, and the second optical flow feature corresponding to the action state image may include motion information of the final state. Thus, in the process of generating the spliced ​​video frame sequence, the motion information of the intermediate state can be determined based on the first optical flow feature and the second optical flow feature, so as to obtain the spliced ​​video frame in the spliced ​​video frame sequence.

[0077] Therefore, in the present embodiment, by generating a connection video frame sequence based on optical flow features corresponding to a predetermined state image and an action state image, respectively, the continuity between the connection video frame sequence and the predetermined state image, and the continuity between the connection video frame sequence and the action state image can be improved, and the continuity and stability between the predetermined state image and the action video frame sequence can be further improved.

[0078] In a specific implementation, the motion information of the intermediate state corresponding to the connected video frame can be determined based on the number N of the connected video frames, where N can be a natural number greater than 0. Based on the value of N, a difference value between the motion information corresponding to the predetermined state image and the motion information corresponding to the action state image can be obtained, and the difference value can be assigned to the corresponding connected video frame, thereby determining the motion information of the connected video frame.

[0079] In one embodiment, an optical flow processing module, such as a convolutional neural network or a deep neural network, can be used to determine a target optical flow feature between the predetermined state image and the action state image, and the target optical flow feature can represent a difference value between the motion information corresponding to the predetermined state image and the motion information corresponding to the action state image. For example, visual features respectively corresponding to the predetermined state image and the action state image can be input into the optical flow processing module to obtain a target optical flow feature output by the optical flow processing module.

[0080] In another embodiment, an audio duration corresponding to an action can be determined based on the time-related information, a connection duration of a connection video frame sequence can be determined based on the audio duration corresponding to the action and the video duration of the action video frame sequence, and a number N of connection video frames can be determined based on the connection duration. For example, the number N of connection video frames can be determined based on the connection duration and the unit time length of the connection video frames.

[0081] In practical application, a forward optical flow feature between a predetermined state image and an action state image can be obtained according to the forward direction of time based on the visual features, and a backward optical flow feature between a predetermined state image and an action state image can be obtained according to the backward direction of time based on the visual features, and a target optical flow feature can be obtained according to the forward optical flow feature and the backward optical flow feature, and the target optical flow feature can be a fusion of the forward optical flow feature and the backward optical flow feature, and a spliced ​​video frame sequence is generated according to the target optical flow feature. The forward optical flow feature and the backward optical flow feature contain bidirectional motion information, so that the accuracy of the motion information can be improved, and the continuity and stability between the predetermined state image and the action video frame sequence can be further improved.

[0082] In a particular implementation, feature vectors respectively corresponding to multiple spliced ​​video frames can be input to the generative adversarial network. The feature vectors may include optical flow features. The optical flow features can reflect the motion information of the virtual object in the intermediate state. Different spliced ​​video frames can correspond to different optical flow features, so that different spliced ​​video frames can represent different motion information.

[0083] As can be appreciated, the feature vector may further include other features, such as a fusion of visual features corresponding to the predetermined state image and the action state image.

[0084] In technical solution 3, generating the above-mentioned connected video frame sequence may specifically include: determining optical flow features, texture features and / or depth features corresponding to the predetermined state image and the action state image, respectively; and generating the connected video frame sequence based on the optical flow features, texture features and / or depth features.

[0085] Technical solution 3 adds texture features and / or depth features on top of technical solution 2. In other words, the features for generating a spliced ​​video frame sequence specifically include optical flow features and texture features, or optical flow features and depth features, or optical flow features, texture features and depth features.

[0086] Here, the texture features can reflect texture details of a given part such as hair or fingers, and applying the texture features to generate the spliced ​​video frame sequence can improve the realism of the spliced ​​video frame sequence.

[0087] The depth features can be extracted by a deep neural network. Compared with a shallow neural network, a deep neural network has better learning and generalization abilities, and therefore can improve the robustness of generating a spliced ​​video frame sequence.

[0088] It should be noted that based on the aforementioned visual features (first visual features or second visual features), feature extraction can be performed to obtain any one or any combination of generated features such as optical flow features, texture features and depth features.

[0089] In addition, feature extraction is performed based on the second visual feature, and the second visual feature includes more dense information of the predetermined part, so that the connected video frame sequence generated in this case can also include more dense information of the predetermined part, thereby improving the realism of the predetermined part in the connected video frame sequence. For example, the second visual feature includes more dense information of the arm part, so that the realism of the arm part in the connected video frame sequence can be improved.

[0090] When multiple types of generative features among optical flow features, texture features and depth features are adopted, multiple types of generative features of an image pair can be fused, and a spliced ​​video frame sequence can be generated based on the obtained fused features. The fusion method of multiple types of generative features is similar to the fusion method of visual features, so it is not repeated here, and it is sufficient to refer to the fusion method of visual features.

[0091] In practical applications, at least one generative feature can be input into a generative adversarial network to generate a spliced ​​video frame, and then multiple spliced ​​video frames can be stitched together in time series to obtain a corresponding spliced ​​video frame sequence.

[0092] The scope of the generated video in the present embodiment is specifically a connection video frame sequence, which functions as a connection and transitional one, and a specific action execution effect is represented by an action video frame sequence, so that the connection video frame sequence in the present embodiment usually corresponds to a relatively short time length, and therefore the present embodiment can shorten the time length of generating the video and further improve the efficiency of the action processing of the virtual object.

[0093] In technical solution 4, based on the above predetermined state image and the above action state image, not only can a global connection video frame sequence be generated, but also a local connection video frame sequence can be generated, the local connection video frame sequence is also called a site connection video frame sequence, and the site connection video frame sequence can contain high-density information of a predetermined site, so that the realism of the predetermined site in the connection video frame sequence can be improved by adding the site connection video frame sequence to the corresponding connection video frame sequence.

[0094] The process of generating a part-connection video frame sequence specifically includes: extracting a part-predetermined state image from a predetermined state image and determining a third visual feature corresponding to the part-predetermined state image based on three-dimensional reconstruction; extracting a part-action state image from an action state image and determining a fourth visual feature corresponding to the part-action state image based on three-dimensional reconstruction; and generating a part-connection video frame sequence based on the third visual feature and the fourth visual feature.

[0095] The predetermined state image or the part action state image of the part corresponds to the predetermined part. For example, if the predetermined part is an arm part, the predetermined state image or the part action state image of the part corresponding to the arm part can be extracted.

[0096] The third visual feature or the fourth visual feature may be obtained based on three-dimensional reconstruction techniques and therefore may contain more dense information of a given area.

[0097] The generating process of the part connection video frame sequence is similar to the generating process of the connection video frame sequence, and specifically, can refer to any one or a combination of technical solutions 1 to 3.

[0098] For example, the process of generating a part-connected video frame sequence may include first performing alignment of position information for a part's predetermined state image and a part's action state image, then performing feature extraction based on a third visual feature to obtain any one or a combination of third generated features, such as optical flow features, texture features, and depth features, and then performing feature extraction based on a fourth visual feature to obtain any one or a combination of fourth generated features, such as optical flow features, texture features, and depth features, and generating a part-connected video frame sequence based on the third generated features and the fourth generated features.

[0099] A corresponding adding manner of adding the part connection video frame sequence to the corresponding connection video frame sequence may include appending the part connection video frame to the corresponding connection video frame. It can be understood that the embodiment of the present application is not limited to a specific adding manner.

[0100] The above describes in detail the process of generating a spliced ​​video frame sequence through technical solutions 1 to 4. It can be understood that those skilled in the art can adopt any one or a combination of technical solutions 1 to 4 according to actual application requirements, and the embodiments of the present application do not limit the specific process of generating a spliced ​​video frame sequence.

[0101] In step 105, the connection video frame sequence and the action video frame sequence can be spliced ​​together according to a time sequence, and the resulting spliced ​​video frame sequence can correspond to the audio sequence corresponding to the text content. For example, the spliced ​​video frame sequence and the audio sequence corresponding to the text content can be aligned on the time axis to realize synchronous playback of both.

[0102] In summary, in the action processing method of the embodiment of the present application, when determining a predetermined state image of a virtual object at a target time and an action video frame sequence corresponding to an action identifier, an image pair corresponding to a predetermined state image and an action state image that match each other is determined, and a connection video frame sequence is generated according to the image pair, and the connection video frame sequence functions as a connection between the predetermined state image and the action video frame sequence and a transition between the predetermined state image and the action video frame sequence, thereby improving the continuity between the predetermined state and the action state. Furthermore, the connection video frame sequence and the action video frame sequence can be spliced ​​together to obtain a corresponding action video.

[0103] By applying the technical solution of the embodiment of the present application, a user only needs to input an action identifier and time-related information to trigger a corresponding action command, which can reduce the user's time cost and operation difficulty and improve the efficiency of the action processing of virtual objects.

[0104] Furthermore, in the embodiment of the present application, when determining a predetermined state image and an action video frame sequence, a spliced ​​video frame sequence is generated which plays a role of connection and functions as a transitional one, and the action video frame sequence can be derived from a pre-collected and pre-stored action video, so that the scope of the generated video is specifically a spliced ​​video frame sequence, and therefore the embodiment of the present application can reduce the time required for generating the video, and further improve the efficiency of the action processing of the virtual object.

[0105] A method for processing an action of a virtual object according to another embodiment of the present application may specifically include a pre-processing stage, a matching stage and a generation stage.

[0106] 1) Pretreatment stage The pre-processing stage is used to perform pre-processing on the action state images in the action video to obtain corresponding action state visual features.

[0107] In a particular implementation, action videos can be pre-collected based on the action identifiers, and the collected action videos and corresponding action identifiers can be stored in an action video library.

[0108] Fig. 2 shows an exemplary flow chart of performing pre-processing on an action video in an embodiment of the present application. In Fig. 2, M action state images, such as action state image 1, action state image 2...action state image M, are extracted from the action video, and the M action state images are respectively input into a corresponding pre-processing system, which can output corresponding action state visual features, which are represented as action state visual feature 1, action state visual feature 2...action state visual feature M in Fig. 2.

[0109] The pre-processing system specifically includes a cut-out module, a face processing module and a limb processing module.

[0110] Here, the cropping module is configured to use a cropping technique to extract a region image corresponding to the virtual object from the action state image, for example, the region image includes a face region image and a limb region image.

[0111] The face processing module is configured to extract action-state visual features of predetermined parts, such as lips, nose, eyes, etc., from the face region image.

[0112] The limb processing module is configured to extract action state visual features of a given part, such as a limb, from the limb region image.

[0113] The face processing module or the limb processing module can further perform three-dimensional reconstruction on the image of the predetermined part based on the extracted action state visual features of the predetermined part to obtain dense action state visual features of the predetermined part.

[0114] 2) Matching stage A matching step is used to match the predetermined state image with the action state image to obtain corresponding image pairs.

[0115] FIG. 3 illustrates an exemplary flow chart for matching a predefined state image with an action state image according to an embodiment of the present disclosure.

[0116] In FIG. 3 , a first fusion module can be used to fuse multiple types of action state visual features corresponding to a single action state image to obtain a first fusion visual feature, and the first fusion visual feature corresponding to the single action state image can be stored in a search library.

[0117] When an action command is received, an action video frame sequence corresponding to an action identifier in the action command can be determined, for example, a target action video identifier can be obtained by searching in an action video library based on the action identifier, and a number of action state images corresponding to the target action video identifier can be used as the action video frame sequence.

[0118] In practical application, a predetermined state image of the virtual object at a target time can also be determined according to the time-related information in the action command. Furthermore, a predetermined state visual feature corresponding to the predetermined state image can be determined. The process of determining the predetermined state visual feature is similar to the process of determining the action state visual feature, so it is not repeated here, but the user can refer to the process of determining the action state visual feature. For example, the process of determining the predetermined state visual feature can specifically include inputting the predetermined state image into a corresponding pre-processing system and outputting the corresponding predetermined state visual feature by the pre-processing system.

[0119] In FIG. 3, a second fusion module can be used to fuse multiple types of predetermined state visual features corresponding to the predetermined state image to obtain a second fused visual feature.

[0120] In Fig. 3, based on the first fusion visual feature corresponding to the predetermined state image, a search library can be searched to obtain an action state image matching the predetermined state image. Specifically, the first fusion visual feature can be matched with the second fusion visual feature of a plurality of action state images corresponding to the target action video identifier, and the action state image with the largest matching value can be used as the action state image corresponding to the predetermined state image. The predetermined state image and the action state image corresponding to the predetermined state image can be made into an image pair.

[0121] 3) Generation Stage A generation stage is used to generate a spliced ​​video frame sequence based on the image pairs.

[0122] FIG. 4 illustrates an exemplary flow chart for generating a spliced ​​video frame sequence according to an embodiment of the present invention.

[0123] In FIG. 4, position and orientation information can be aligned for an image pair to obtain aligned first and second input images.

[0124] The first input image and the second input image are respectively input to a processing system, which can be configured to perform feature extraction based on the aforementioned visual features (predetermined state visual features and action state visual features) to obtain generative features, such as optical flow features, texture features and depth features.

[0125] The processing system may specifically include an optical flow processing module, a texture processing module and a depth processing module.

[0126] The optical flow processing module is configured to obtain optical flow features between the predetermined state image and the action state image according to the visual features, specifically, can obtain forward optical flow features between the predetermined state image and the action state image according to the forward direction of time according to the visual features, and can obtain backward optical flow features between the predetermined state image and the action state image according to the backward direction of time according to the visual features.

[0127] The texture processing module is configured to obtain texture features corresponding to the predetermined state image and the action state image, respectively, based on the visual features, and the texture features can reflect texture details of a predetermined part, such as hair or fingers.

[0128] The depth processing module is configured to obtain depth features corresponding to the predetermined state image and the action state image based on the visual features, respectively. The deep neural network has better learning and generalization abilities, and thus can improve the robustness of generating the spliced ​​video frame sequence.

[0129] In addition, multiple types of generative features, such as optical flow features, texture features and depth features output by the processing system, can be input to a third fusion module, and the multiple types of generative features can be fused by the third fusion module to obtain a corresponding fused feature. The input of the third fusion module can further include a first input image and a second input image, and the first input image and the second input image can play the role of supervision for the third fusion module.

[0130] The first fusion module, the second fusion module, or the third fusion module in the present embodiment may be a specific example of the fusion module. In a specific implementation, the fusion module may be a neural network, and it can be understood that the present embodiment does not limit the specific structure of the fusion module.

[0131] Furthermore, the fusion features output by the third fusion module can be input to a generative adversarial network, which can generate corresponding spliced ​​video frames based on the fusion features.

[0132] The fusion feature may include fusion information of the predetermined state image and the action state image. Optionally, the fusion feature may include feature vectors respectively corresponding to a plurality of connected video frames. The feature vector may include an optical flow feature, a texture feature and a depth feature. The optical flow feature may reflect the motion information of the virtual object in the intermediate state. Different connected video frames may correspond to different optical flow features, so that different connected video frames may represent different motion information. The texture feature in the feature vector may be a fusion of texture features corresponding to the predetermined state image and the action state image. The depth feature in the feature vector may be a fusion of depth features corresponding to the predetermined state image and the action state image.

[0133] As can be appreciated, the feature vector may further include other features, such as a fusion of visual features corresponding to the predetermined state image and the action state image.

[0134] In a specific implementation, a plurality of spliced ​​video frames output by the generative adversarial network can be spliced ​​together according to a time sequence to obtain a corresponding spliced ​​video frame sequence. Furthermore, the spliced ​​video frame sequence and the action video frame sequence can also be spliced ​​together, and the obtained spliced ​​video frame sequence can correspond to an audio sequence corresponding to the text content. For example, the spliced ​​video frame sequence and the audio sequence corresponding to the text content can be aligned on a time axis to realize synchronous playback of the two.

[0135] Although the above method embodiments are expressed as a combination of a series of operations for convenience of explanation, those skilled in the art should understand that the embodiments are not limited to the described order of operations, since some steps of the embodiments can be performed in other orders or simultaneously. Furthermore, those skilled in the art should understand that all the embodiments described herein are preferred embodiments, and the operations in the embodiments are not necessarily required by the embodiments.

[0136] FIG. 5 shows a structural block diagram of a virtual object action processing device according to an embodiment of the present application. The device specifically includes: An instruction receiving module 501 configured to receive an action instruction, the action instruction including an action identifier and time-related information; an action video frame sequence determination module 502 configured to determine an action video frame sequence corresponding to the action identifier; an image pair determination module 503 configured to determine, based on a predefined state image of a virtual object at a target time, an action state image corresponding to the predefined state image from the action video frame sequence, where the target time is determined based on the time-related information; a generating module 504 configured to generate a spliced ​​video frame sequence based on the predetermined state image and the action state image, the spliced ​​video frame sequence being used to splice the predetermined state image and the action video frame sequence; and a splicing module 505 configured to splice the connected video frame sequence and the action video frame sequence to obtain an action video.

[0137] Optionally, the generating module 504: a first feature determination module configured to determine optical flow features corresponding to the predetermined state image and the action state image, respectively; A first generation module configured to generate a spliced ​​video frame sequence based on the optical flow features.

[0138] Optionally, the generating module 504: a second feature determination module configured to determine optical flow features, texture features and / or depth features corresponding to the predetermined state image and the action state image, respectively; and a second generation module configured to generate a sequence of spliced ​​video frames based on the optical flow features, texture features and / or depth features.

[0139] Optionally, the image pair determination module 503 comprises: The system may include a matching module configured to match visual features corresponding to a predetermined state image with visual features corresponding to action state images in the action video frame sequence to obtain an action state image corresponding to the predetermined state image.

[0140] Optionally, the apparatus further comprises: an area image determination module configured to determine an area image corresponding to the virtual object from a predetermined state image or an action state image; The image processing apparatus may further include an extraction module configured to extract visual features of a predetermined portion from the region image and use the visual features as visual features corresponding to the predetermined state image or the action state image.

[0141] Optionally, the apparatus further comprises: The system may include a three-dimensional reconstruction module configured to obtain high-density visual features of a predetermined area by performing three-dimensional reconstruction on an image of the predetermined area based on the extracted visual features of the predetermined area, wherein the high-density visual features of the predetermined area are used as visual features corresponding to the predetermined state image or the action state image.

[0142] Optionally, the generating module 504: an alignment module configured to align position and orientation information of the predetermined state image and the action state image to obtain aligned predetermined state image and action state image; and a third generation module configured to generate a spliced ​​video frame sequence based on the aligned predetermined state image and the action state image.

[0143] Optionally, the apparatus further comprises: a third visual feature determination module configured to extract a predetermined state image of a part from the predetermined state image and determine a third visual feature corresponding to the predetermined state image of the part based on the three-dimensional reconstruction; a fourth visual feature determination module configured to extract a local action state image from the action state image and determine a fourth visual feature corresponding to the local action state image based on the three-dimensional reconstruction; a fourth generation module configured to generate a part-connection video frame sequence based on the third visual feature and the fourth visual feature; and an adding module configured to add the part-connected video frame sequence to the corresponding connected video frame sequence.

[0144] Optionally, the time-related information may include text information corresponding to the action identifier.

[0145] Since the apparatus embodiment is mostly similar to the method embodiment, the description thereof will be relatively brief, and the relevant parts may be referred to the description of the corresponding parts of the method embodiment.

[0146] All embodiments in this specification are described in a progressive manner, with each embodiment being described by focusing on the differences between the other embodiments, and the same or similar parts between the embodiments may be referenced to each other.

[0147] Regarding the apparatus of the above embodiment, the specific manner in which each module performs the operations has already been described in detail in the above embodiment related to the method, and will not be described in detail here.

[0148] 6 is a block diagram of the structure of an apparatus for processing the action of a virtual object according to an exemplary embodiment. The apparatus can also be called a computer device. For example, the apparatus 900 can be a terminal device such as a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or a server.

[0149] Referring to FIG. 6, the device 900 may include one or more of a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0150] The processing component 902 generally controls the overall operation of the device 900, such as operations related to display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 for executing instructions to complete all or some of the steps of the methods described above. In addition, the processing component 902 may include one or more modules for facilitating interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module for facilitating interaction between the multimedia component 908 and the processing component 902.

[0151] The memory 904 is configured to store various types of data to support operation on the device 900. Examples of such data include instructions for any applications or methods operating on the device 900, contact data, phone book data, messages, photos, videos, etc. The memory 904 can be implemented with any type of volatile or non-volatile storage device, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks, or combinations thereof.

[0152] The power component 906 provides power to each component of the device 900. The power component 906 can include a power management system, one or more power sources, and other components related to the generation, management, and allocation of power for the device 900.

[0153] The multimedia component 908 includes a screen that provides an output interface between the device 900 and a user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be realized as a touch screen for receiving input signals from a user. The touch panel includes one or more touch sensors for detecting touches, swipes, and gestures on the touch panel. The touch sensor can not only sense the boundary of a touch or swipe motion, but also detect the duration and pressure of the touch or swipe motion. In some embodiments, the multimedia component 908 includes one front camera and / or rear camera. When the device 900 is in an operation mode, such as a photography mode or a video mode, the front camera and / or rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom function.

[0154] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes one microphone (MIC), which is configured to receive external audio signals when the device 900 is in an operation mode such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 904 or can be transmitted via the communication component 916. In some embodiments, the audio component 910 further comprises a speaker for outputting audio signals.

[0155] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to, a home page button, volume buttons, a startup button, and a lock button.

[0156] The sensor component 914 comprises one or more sensors for providing status assessment of various aspects of the device 900. For example, the sensor component 914 can detect the on / off state of the device 900 and the relative position of components such as the display and keypad of the device 900, and the sensor component 914 can also detect position changes of the device 900 or components of the device 900, the presence or absence of contact between the user and the device 900, the azimuth or acceleration / deceleration of the device 900, and temperature changes of the device 900. The sensor component 914 can comprise a proximity sensor configured to detect the presence of nearby objects without physical contact. The sensor component 914 can also comprise an optical sensor, such as a CMOS or CCD image sensor used in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0157] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 916 further comprises a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be realized based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra-Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0158] In an exemplary embodiment, the apparatus 900 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processors (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic elements to perform the methods described above.

[0159] In an exemplary embodiment, a non-transitory computer-readable storage medium containing instructions is further provided, such as a memory 904 containing instructions, which can cause a processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0160] 7 is a block diagram of a server-side structure in some embodiments of the present application. The server-side 1900 may have relatively large differences due to differences in configuration or performance, and may include one or more central processing units (CPUs) 1922 (e.g., one or more processors) and a memory 1932, a storage medium 1930 (e.g., one or more mass storage devices) on which one or more applications 1942 or data 1944 are stored. Here, the memory 1932 and the storage medium 1930 may be temporary or permanent storage devices. The program stored in the storage medium 1930 may include one or more modules (not shown), and each module may include a series of instruction operations on the server side. Furthermore, the central processing unit 1922 may be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server side 1900.

[0161] The server side 1900 may further include one or more power sources 1926, one or more wired or wireless network interfaces 1950, one or more input / output interfaces 1958, one or more keyboards 1956, and / or one or more operating systems 1941 (e.g., Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.).

[0162] A non-transitory computer-readable storage medium is provided, the instructions of which, when executed by a processor of an apparatus (device or server side), cause the apparatus to perform an action processing method for a virtual object, the method including: receiving an action instruction, the action instruction including an action identifier and time-related information; determining an action video frame sequence corresponding to the action identifier; determining an action state image from the action video frame sequence based on a pre-defined state image of a virtual object at a target time, the target time being determined based on the time-related information; generating a connected video frame sequence based on the pre-defined state image and the action state image, the connected video frame sequence being used to connect the pre-defined state image and the action video frame sequence; and stitching together the connected video frame sequence and the action video frame sequence to obtain an action video.

[0163] Those skilled in the art will be able to easily conceive other embodiments of the present application after studying the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, applications or adaptations of the present application, which variations, applications or adaptations conform to the general principles of the present application and include common knowledge or conventional technical means in the art that are not disclosed herein. The specification and examples are merely exemplary, with the true scope and spirit of the present application being pointed out in the appended claims.

[0164] It should be understood that the present application is not limited to the exact structure described above and illustrated in the drawings, and various modifications and changes can be made without departing from the scope of the present application, which should be dictated by the appended claims.

[0165] The above description is merely a preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should all be included in the protection scope of the present application.

[0166] The above describes the action processing method of a virtual object, the action processing device of a virtual object, and the device for action processing of a virtual object according to the present application in detail. In this specification, the principle and embodiments of the present application are described using specific examples. However, the above description of the examples is merely intended to assist in understanding the method of the present application and its gist. In addition, those skilled in the art will have changes in the specific embodiments and scope of application based on the gist of the present application. In summary, the contents of this specification should not be understood as limitations on the present application.

Claims

1. 1. A method for processing actions of a virtual object, the method comprising: receiving an action command, the action command including an action identifier and time related information; determining an action video frame sequence corresponding to the action identifier; determining, based on a predefined state image of a virtual object at a target time, an action state image corresponding to the predefined state image from the action video frame sequence, wherein the target time is determined based on the time-related information; generating a connection video frame sequence based on the predetermined state image and the action state image, the connection video frame sequence being used to connect the predetermined state image and the action video frame sequence; splicing the splice video frame sequence and the action video frame sequence to obtain an action video; A method for processing an action of a virtual object, comprising:

2. generating a spliced ​​video frame sequence based on the predetermined state image and the action state image, determining optical flow features corresponding to the predetermined state image and the action state image, respectively; generating the spliced ​​video frame sequence based on the optical flow features; The method for processing an action of a virtual object according to claim 1 , comprising:

3. generating a spliced ​​video frame sequence based on the predetermined state image and the action state image, determining optical flow features, texture features and / or depth features corresponding to the predetermined state image and the action state image, respectively; generating the spliced ​​video frame sequence based on the optical flow features, the texture features and / or the depth features; The method for processing an action of a virtual object according to claim 1 , comprising:

4. determining an action state image from the action video frame sequence corresponding to a predefined state image of a virtual object at a target time, the action state image including: matching visual features corresponding to the predetermined state image with visual features corresponding to each action state image in the action video frame sequence to obtain an action state image corresponding to the predetermined state image. The method for processing an action of a virtual object according to claim 1 , comprising:

5. The method for processing an action of a virtual object includes: determining an area image corresponding to the virtual object from the predetermined state image or the action state image; A step of extracting visual features of a predetermined part from the region image and using the visual features as visual features corresponding to the predetermined state image or the action state image; The method for processing actions of a virtual object according to claim 4 , further comprising:

6. The method for processing an action of a virtual object includes: The method further includes a step of obtaining high-density visual features of the predetermined region by performing a three-dimensional reconstruction on the image of the predetermined region based on the extracted visual features of the predetermined region; The high-density visual features of the predetermined area are used as visual features corresponding to the predetermined state image or the action state image. The method for processing an action of a virtual object according to claim 5.

7. generating a spliced ​​video frame sequence based on the predetermined state image and the action state image, aligning position and orientation information of the predetermined state image and the action state image to obtain aligned predetermined state image and action state image; generating the spliced ​​video frame sequence based on the aligned predetermined state image and action state image; The method for processing an action of a virtual object according to claim 1 , comprising:

8. The method for processing an action of a virtual object includes: extracting a predetermined state image of a part from the predetermined state image and determining a third visual feature corresponding to the predetermined state image of the part based on the three-dimensional reconstruction; extracting a local action state image from the action state image, and determining a fourth visual feature corresponding to the local action state image based on a three-dimensional reconstruction; generating a sequence of part-connected video frames based on the third visual feature and the fourth visual feature; adding the part connection video frame sequence to the connection video frame sequence; The method for processing actions of a virtual object according to claim 1 , further comprising:

9. the time-related information includes text information corresponding to the action identifier; A method for processing an action of a virtual object according to any one of claims 1 to 8.

10. An apparatus for processing an action of a virtual object, comprising: an instruction receiving module configured to receive an action instruction, the action instruction including an action identifier and time-related information; an action video frame sequence determination module configured to determine an action video frame sequence corresponding to the action identifier; an image pair determination module configured to determine, based on a pre-defined state image of a virtual object at a target time, an action state image corresponding to the pre-defined state image from the action video frame sequence, where the target time is determined based on the time-related information; a generation module configured to generate a spliced ​​video frame sequence based on the predetermined state image and the action state image, the spliced ​​video frame sequence being used to splice the predetermined state image and the action video frame sequence; a splicing module configured to splice the connected video frame sequence and the action video frame sequence to obtain an action video; The virtual object action processing device comprises:

11. A computer device comprising: a memory in which a program is stored; and a processor configured to execute the program to implement the method for processing an action of a virtual object according to any one of claims 1 to 8.

12. A program for causing a computer to execute the method for processing an action of a virtual object according to any one of claims 1 to 8.