Multi-person video expression driving method and device, electronic equipment and storage medium

By extracting the face shape and expression coefficient from the video stream, determining the matching relationship between the face and the virtual person, and optimizing expression processing, the uniqueness problem of multi-person video driver in the existing technology is solved, and a stable virtual person is achieved. Human expressions are synchronized.

CN118799458APending Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311552095.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology cannot capture the expressions of multiple people and drive multiple virtual people at the same time. It is prone to confusion in expression control, resulting in different faces driving the same virtual person.

Method used

By obtaining the video stream for preprocessing, a preset image processing model is used to extract the face shape coefficient and expression coefficient, determine the matching relationship between the face and the virtual person, and drive the virtual person to display corresponding expressions based on the expression coefficient, using moving average smoothing and linear interpolation method to optimize expression coefficient processing.

Benefits of technology

It ensures the uniqueness of faces in multi-person videos, prevents different faces from driving the same virtual person, and improves the stability and animation effects of virtual people's facial expressions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799458A_ABST
    Figure CN118799458A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, and provides a multi-person video expression driving method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a video stream, carrying out the preprocessing of the video stream, and obtaining a target video image of a preset size; performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image; based on the face shape coefficient, determining a matching relationship between the face and the virtual human in the target video image; and obtaining a target face expression coefficient according to the face expression coefficient so as to drive the virtual human to present an expression corresponding to the target face expression coefficient according to the matching relationship. According to the invention, the matching relation between the face and the virtual human in the target video image is determined through the face shape coefficient, the uniqueness of the face in the multi-person video is ensured, and the problem that different faces may drive the same virtual human is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a driving method, device, electronic device and storage medium for multi-person video expressions. Background Art

[0002] With the rise of the concept of the metaverse, technologies related to the rapid interaction between the virtual world and the real world using simple devices have become a key research direction. The synchronization of human expressions in the real world in the virtual world is the technical basis for social applications in the metaverse. Video expression-driven technology uses common cameras to capture facial expressions in the real world, encodes facial expressions, and finally uses expression encoding to control virtual characters to make the same expressions.

[0003] Existing video-based expression driving methods mainly use information such as facial key points under different expressions combined with facial expression coding methods such as FACS (Facial Action Coding System) to use machine learning or deep learning methods to regress and predict 3DMM facial expression coefficients. Such methods generally require face detection, maximum face extraction, and other pre-processing processes for video frames. After pre-processing, the obtained maximum face image is used to extract facial features with the help of facial feature extraction methods based on deep learning or machine learning, such as facial key point detection algorithms. Finally, facial expression coefficients are obtained based on facial features. This process often processes one target face and cannot capture the expressions of multiple people and drive multiple digital humans at the same time. It can only intercept multiple faces after face detection and use multi-threading to predict expression coefficients for multiple face images at the same time. Existing methods may have problems with expression control confusion during the prediction process, resulting in different faces driving the same digital human. Summary of the invention

[0004] The present application provides a method, device, electronic device and storage medium for driving multi-person video expressions, so as to solve the problem of expression control confusion that may occur in the prior art, resulting in the defect that different faces drive the same digital human.

[0005] In a first aspect, the present application provides a method for driving multi-person video expressions, comprising:

[0006] Acquire a video stream and preprocess the video stream to obtain a target video image of a preset size;

[0007] Performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively;

[0008] Based on the face shape coefficient, determining a matching relationship between the face in the target video image and the virtual person;

[0009] According to the facial expression coefficient, a target facial expression coefficient is obtained, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

[0010] In one embodiment, obtaining a target facial expression coefficient according to the facial expression coefficient includes:

[0011] According to the gradient corresponding to the change of the facial expression coefficient, a time window corresponding to the gradient is selected to perform moving average smoothing processing on all the facial expression coefficients to obtain the target facial expression coefficient.

[0012] In one embodiment, obtaining a target facial expression coefficient according to the facial expression coefficient includes:

[0013] The target facial expression coefficient is obtained based on a linear interpolation method according to the facial expression coefficient and the timestamp corresponding to the facial expression coefficient.

[0014] In one embodiment, performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image includes:

[0015] Extracting features from the target video image to obtain a facial feature map;

[0016] Performing feature fusion on the face feature map to obtain a fused feature map;

[0017] Regression prediction is performed based on the fused feature map whose receptive field is larger than a preset range to obtain the face shape coefficient and the face expression coefficient.

[0018] In one embodiment, determining the matching relationship between the face in the target video image and the virtual person based on the face shape coefficient includes:

[0019] Obtaining a first facial feature vector according to the facial shape coefficient;

[0020] Determine the similarity between the first facial feature vector and a preset second facial feature vector based on a cosine similarity algorithm, each of the second facial feature vectors corresponding to one of the virtual persons;

[0021] According to the similarity, a matching relationship between the human face in the target video image and the virtual person is determined.

[0022] In one embodiment, determining the matching relationship between the face in the target video image and the virtual person according to the similarity includes:

[0023] If the similarity is greater than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector are matched successfully;

[0024] If the similarity is less than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector fail to match, and a new second facial feature vector is constructed based on the first facial feature vector.

[0025] In one embodiment, the acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size includes:

[0026] Acquire the video stream and perform frame extraction processing on the video stream to obtain video frames;

[0027] The video frame is first filled and then scaled to obtain the target video image of a preset size.

[0028] In a second aspect, the present application also provides a driving device for multi-person video expressions, including:

[0029] An acquisition module, used for acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size;

[0030] A coefficient determination module, used to perform image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively;

[0031] A matching module, used for determining a matching relationship between a face in the target video image and a virtual person based on the face shape coefficient;

[0032] The driving module is used to obtain the target facial expression coefficient according to the facial expression coefficient, so as to drive the virtual person to present the expression corresponding to the target facial expression coefficient according to the matching relationship.

[0033] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a driving method for multi-person video expressions as described in any one of the above is implemented.

[0034] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for driving multi-person video expressions as described in any one of the above.

[0035] The driving method, device, electronic device and storage medium of multi-person video expressions provided by the present application obtain a video stream and pre-process the video stream to obtain a target video image of a preset size; perform image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively; determine the matching relationship between the face in the target video image and the virtual person based on the face shape coefficient; obtain the target face expression coefficient based on the face expression coefficient, so as to drive the virtual person to present an expression corresponding to the target face expression coefficient based on the matching relationship. The present application determines the matching relationship between the face in the target video image and the virtual person through the face shape coefficient, ensures the uniqueness of the faces in the multi-person video, and solves the problem that different faces may drive the same virtual person. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 This is one of the flow charts of the method for driving multi-person video expressions provided by this application;

[0038] Figure 2 This application provides Figure 1 Schematic diagram of the process of step S120;

[0039] Figure 3 This application provides Figure 1 Schematic diagram of the process of step S130;

[0040] Figure 4 This application provides Figure 3 Schematic diagram of the process of step S310;

[0041] Figure 5 It is a principle block diagram of a driving device for multi-person video expressions provided by the present application;

[0042] Figure 6 This is the second flow chart of the method for driving multi-person video expressions provided by this application;

[0043] Figure 7 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] Figure 1 This is one of the flow charts of the method for driving multi-person video expressions provided by this application, such as Figure 1 As shown, the present application provides a method for driving multi-person video expressions, including:

[0046] S110, acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size; the video stream is acquired by a camera, and preprocessing the video stream includes extracting frames from the video stream to obtain video frames, and then processing the video frames to obtain a target video image of a preset size.

[0047] S120, performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image;

[0048] The preset image processing model is an improved deep learning network model, and the existing facial expression coefficient generation process is to use a face detection algorithm to detect the face area appearing in the video frame in advance, and then scale the captured area after intercepting the face area and input the facial expression coefficient prediction model to generate the facial expression coefficient. However, this method mainly brings two problems: first, the model inference time of face detection in algorithm preprocessing affects the time consumption of the entire process of facial expression driving; second, the cropped face area needs to be scaled and other operations to lose image quality; third, this process cannot efficiently realize the business requirements of multiple people in the video driving multiple virtual people at the same time. In order to solve the above defects, this application uses a deep learning network model to simultaneously perform two tasks of face detection and facial expression system generation for application scenarios with high real-time requirements such as multi-person driving with high real-time requirements, such as multi-person online meetings, online social software, etc.

[0049] S130, based on the face shape coefficient, determine the matching relationship between the face in the target video image and the virtual person; specifically, in the scenario where multiple people drive the virtual person at the same time, the present application constructs a face ID for each face, and there is a one-to-one correspondence between the face ID and the virtual person, thereby ensuring that the face in the video only controls the only virtual person at the remote end.

[0050] S140, obtaining a target facial expression coefficient according to the facial expression coefficient, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship. The target facial expression coefficient is obtained by optimizing the facial expression coefficients corresponding to all target video images, and then, according to the correspondence between the face represented by the matching relationship and the virtual person, the facial expression of the corresponding virtual person is adjusted by the facial expression coefficient corresponding to the target video image.

[0051] Optionally, in step S110, acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size includes:

[0052] The video stream is acquired and frame extraction is performed on the video stream to obtain a video frame; the video frame is first filled and then scaled to obtain the target video image of a preset size. The size of the preset size corresponds to the input requirement of the preset image processing model.

[0053] Optionally, in step S120, the face shape coefficients include face contour coefficients, eye shape coefficients, nose shape coefficients, mouth shape coefficients, and chin shape coefficients, which can be obtained by calculating the feature point coordinates, contour lines, and other information of the face image. The face expression coefficients include the following: eyebrow curvature coefficient, eye closure coefficient, mouth opening coefficient, facial muscle tension coefficient, and eye gaze direction coefficient, which can be obtained by calculating the feature point coordinates, facial texture, muscle movement, and other information of the face image.

[0054] Optionally, in step S140, the facial expression of the virtual person is usually achieved by applying deformation or texture transformation on the three-dimensional model. Specifically, the facial expression coefficient can be used to change the facial shape of the virtual character, such as the raising of eyebrows, the opening of the mouth, etc.; at the same time, the expression coefficient can also be used to adjust the facial texture of the virtual character, such as the degree of eye closure, the degree of lip closure, etc. In order to achieve this process, it is necessary to first establish a face model containing different expressions. The model can be trained through a face data set or use an existing face model library. Then, by adjusting the value of the face expression coefficient, the facial expression of the virtual character can be controlled.

[0055] It can be understood that the present application determines the matching relationship between the face in the target video image and the virtual person through the face shape coefficient, ensures the uniqueness of the faces in multi-person videos, and solves the problem that different faces may drive the same virtual person.

[0056] Figure 2 This application provides Figure 1 The flowchart of step S120 is as follows: Figure 2As shown, in one embodiment, the image processing is performed on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image, including:

[0057] S210, extracting features from the target video image to obtain a facial feature map;

[0058] S220, performing feature fusion on the face feature map to obtain a fused feature map;

[0059] S230, performing regression prediction based on the fused feature map whose receptive field is larger than a preset range to obtain the face shape coefficient and the face expression coefficient.

[0060] The preset image processing model in this application is improved based on the Yolov5 model as the basic framework. The traditional Yolov5 usually uses the backbone network to extract features from the input image. The Neck part performs feature fusion at different scales on the feature maps extracted by the backbone network. The Prediction part performs regression prediction on feature maps of different scales.

[0061] This application is based on the traditional Yolov5 model framework, improves the Prediction part of the Yolov5 model, abandons the detection of small targets, that is, removes the regression prediction of the feature map with the smallest receptive field in the Prediction part of the original Yolov5 model, and only uses feature maps with large and medium receptive fields to detect faces and regress facial expression coefficients.

[0062] Since the common 199-dimensional face shape and 29-dimensional face expression coefficients are redundant, in this application, only 40-dimensional face shape features and 10-dimensional face expression coefficients are regressed and predicted. At the same time, the three degrees of freedom of the face, yaw, row, and pitch, are predicted. In the Prediction part, the feature map output by Neck is processed using 1x1 convolution, and finally the face shape coefficient and face expression coefficient are obtained.

[0063] Among them, Yaw, Roll and Pitch are terms used to describe the rotation of an object or a face in three-dimensional space. Yaw (yaw angle): also known as the heading angle, describes the angle of rotation of an object or a face around an axis perpendicular to itself. In face recognition, the yaw angle is usually used to describe the left and right rotation of a face. Roll (roll angle): describes the angle of rotation of an object or a face around its own front-to-back axis. In face recognition, the roll angle is usually used to describe the left and right tilt of the head of a face. Pitch (pitch angle): describes the angle of rotation of an object or a face around its own lateral axis. In face recognition, the pitch angle is usually used to describe the up and down tilt of the head of a face.

[0064] Specifically, the facial expression coefficient may include a 3DMM coefficient, which is a parameter in a three-dimensional deformable model (3DMM) and is used to describe the three-dimensional shape and texture information of a face. The calculation formula of the 3DMM coefficient is as follows:

[0065]

[0066] Among them, S newFace represents the 3D point cloud coordinate representation of the face in the current video frame, S represents the point cloud coordinate representation of the face with a neutral expression, S i is the point cloud coordinate representation of each face in the sample, E i is the facial point cloud coordinate representation of the basic facial expressions of the sample face, such as opening the mouth, blinking, etc. The algorithm obtains the facial point cloud coordinate representation of the current facial expression by linearly combining the facial models of several other basic expressions. The weight corresponding to a set of basic expressions representing the current facial expression in the linear combination is the expression coefficient corresponding to the current expression.

[0067] It can be understood that the present application performs face detection and expression coefficient prediction on the target video image through an improved deep learning network model, which can reduce data redundancy while ensuring prediction accuracy.

[0068] Figure 3 This application provides Figure 2 The flowchart of step S130 is as follows: Figure 3 As shown, in one embodiment, determining the matching relationship between the face in the target video image and the virtual person based on the face shape coefficient includes:

[0069] S310, obtaining a first facial feature vector according to the facial shape coefficient; converting the facial shape coefficient into a matrix vector to obtain the first facial feature vector.

[0070] S320, determining the similarity between the first facial feature vector and a preset second facial feature vector based on a cosine similarity algorithm, each of the second facial feature vectors corresponding to one of the virtual persons;

[0071] S330: Determine a matching relationship between the human face in the target video image and the virtual human according to the similarity.

[0072] Specifically, a face ID can be set for each face in the video stream to ensure that the face in the video only controls the unique virtual person at the remote end. During the program running process, a data table needs to be maintained, which records the eigenvalues ​​of all second face feature vectors. The initial value of the second face feature vector is the eigenvalue of the face feature vector in the first frame of the video stream. After extracting the face shape coefficient in the second frame of the video frame, the first face feature vector is constructed. According to the similarity between the first face feature vector and the second face feature vector, the first face feature vector and the second face feature vector corresponding to the same face ID are identified, thereby determining the matching relationship between the face in the target video image and the virtual person.

[0073] Figure 4 This application provides Figure 3 The flowchart of step S310 is as follows: Figure 4 As shown, in one embodiment, determining the matching relationship between the face in the target video image and the virtual person according to the similarity includes:

[0074] S410, if the similarity is greater than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector are matched successfully; after the match is successful, the feature parameters of the second facial feature vector are updated using the facial shape parameters of the current frame.

[0075] S420, if the similarity is less than a preset value, and the face corresponding to the first facial feature vector fails to match the virtual person corresponding to the second facial feature vector, a new second facial feature vector is constructed based on the first facial feature vector. If the comparison fails, it means that a new face ID appears in the video, then a new index is created in the data table, and the current features are used as the feature vector of the new ID. When a new ID appears, the user can select any unbound virtual person to drive. After the user selects, the digital person continues to be bound to the user's facial ID. When a face matching this ID continues to not appear in the video for a fixed number of frames, the virtual person is automatically unbound from this ID and becomes selectable.

[0076] It can be understood that the present application determines the matching relationship between the face in the target video image and the virtual person through the face shape coefficient, ensures the uniqueness of the faces in multi-person videos, and solves the problem that different faces may drive the same virtual person.

[0077] In one embodiment, obtaining a target facial expression coefficient according to the facial expression coefficient includes:

[0078] According to the gradient corresponding to the change of the facial expression coefficient, a time window corresponding to the gradient is selected to perform moving average smoothing processing on all the facial expression coefficients to obtain the target facial expression coefficient.

[0079] When the gradient is small, it means that the expression on the face changes little, and a smaller time window is used for moving average smoothing to preserve the subtle expression changes as much as possible. A larger gradient means that the expression changes more drastically, so a larger time window is used to perform moving average smoothing on the expression coefficient. The moving average smoothing calculation formula is as follows:

[0080]

[0081] in, The nth frame is the expression coefficient of the i-th dimension, and k is the moving average time window width.

[0082] It is understandable that in actual application scenarios, affected by the input video frames, the output of the neural network may often have parameter jitter, which may cause the virtual human's facial expression to jitter when driven, affecting the virtual human animation effect. The present application solves the problem of virtual human facial expression jitter affecting the virtual human animation effect by smoothing the facial expression coefficients.

[0083] In one embodiment, obtaining a target facial expression coefficient according to the facial expression coefficient includes:

[0084] The target facial expression coefficient is obtained based on a linear interpolation method according to the facial expression coefficient and the timestamp corresponding to the facial expression coefficient.

[0085] Specifically, the expression change of the virtual human is linear, and this application uses the linear interpolation method to predict the expression of the virtual human between frames. For each facial expression coefficient, the following formula can be used for interpolation between frames:

[0086]

[0087] in, The nth frame is the expression coefficient of the i-th dimension, The timestamp of the nth frame.

[0088] It is understandable that since deep learning algorithms are often time-consuming to run and consume a lot of computing resources, they require certain computing power for the end-side devices. For end-side devices with lower computing power, in order to ensure the continuity of the end-side virtual human expression animation, this application uses the inter-frame interpolation method to generate the expression coefficients between frames, so as to further improve the frame rate of digital human animation without significantly increasing the amount of calculation and time consumption.

[0089] The driving device for multi-person video expressions provided by the present application is described below. The driving device for multi-person video expressions described below and the driving method for multi-person video expressions described above can refer to each other.

[0090] Figure 5 This is a principle block diagram of the driving device for multi-person video expressions provided by the present application. Figure 5 As shown, the present application also provides a driving device for multi-person video expressions, including:

[0091] An acquisition module 510 is used to acquire a video stream and pre-process the video stream to obtain a target video image of a preset size;

[0092] A coefficient determination module 520, configured to perform image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image;

[0093] A matching module 530, configured to determine a matching relationship between a face in the target video image and a virtual person based on the face shape coefficient;

[0094] The driving module 540 is used to obtain a target facial expression coefficient according to the facial expression coefficient, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

[0095] In one embodiment, the driving module 540 is further configured to:

[0096] According to the gradient corresponding to the change of the facial expression coefficient, a time window corresponding to the gradient is selected to perform moving average smoothing processing on all the facial expression coefficients to obtain the target facial expression coefficient.

[0097] In one embodiment, the driving module 540 is further configured to:

[0098] The target facial expression coefficient is obtained based on a linear interpolation method according to the facial expression coefficient and the timestamp corresponding to the facial expression coefficient.

[0099] The performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image includes:

[0100] Extracting features from the target video image to obtain a facial feature map;

[0101] Performing feature fusion on the face feature map to obtain a fused feature map;

[0102] Regression prediction is performed based on the fused feature map whose receptive field is larger than a preset range to obtain the face shape coefficient and the face expression coefficient.

[0103] In one embodiment, the matching module 530 is further configured to:

[0104] Obtaining a first facial feature vector according to the facial shape coefficient;

[0105] Determine the similarity between the first facial feature vector and a preset second facial feature vector based on a cosine similarity algorithm, each of the second facial feature vectors corresponding to one of the virtual persons;

[0106] According to the similarity, a matching relationship between the human face in the target video image and the virtual person is determined.

[0107] In one embodiment, the matching module 530 is further configured to:

[0108] If the similarity is greater than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector are matched successfully;

[0109] If the similarity is less than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector fail to match, and a new second facial feature vector is constructed based on the first facial feature vector.

[0110] In one embodiment, the acquisition module 510 is further used for:

[0111] Acquire the video stream and perform frame extraction processing on the video stream to obtain video frames;

[0112] The video frame is first filled and then scaled to obtain the target video image of a preset size.

[0113] Figure 6 This is the second flow chart of the driving method of multi-person video expressions provided by this application, such as Figure 6 As shown, the present application also proposes a multi-person video expression driving system, including a camera, an image processing device, and a virtual human terminal, wherein the image processing device includes an image acquisition module, an expression coefficient generation module, a face binding module, and a post-processing module.

[0114] The camera is used to shoot video and obtain video stream;

[0115] The image acquisition module is used to obtain the video stream from the camera and pre-process the video stream. The pre-processing includes extracting frames from the video stream, filling the video frames to a fixed size and performing scaling operations to meet the input requirements of the next module.

[0116] The expression coefficient generation module is used to perform image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively.

[0117] The face binding module is used to track the face in the video and determine the matching relationship between the face in the target video image and the virtual person.

[0118] The post-processing module is used to perform post-processing on the facial expression coefficients, obtain the target facial expression coefficients according to the facial expression coefficients, and send the target facial expression coefficients to the virtual human terminal.

[0119] The virtual human terminal is used to present the expression corresponding to the target human face expression coefficient.

[0120] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the driving method of multi-person video expressions, and the method includes:

[0121] Acquire a video stream and preprocess the video stream to obtain a target video image of a preset size;

[0122] Performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively;

[0123] Based on the face shape coefficient, determining a matching relationship between the face in the target video image and the virtual person;

[0124] According to the facial expression coefficient, a target facial expression coefficient is obtained, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

[0125] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0126] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the driving method of multi-person video expressions provided by the above methods, the method includes:

[0127] Acquire a video stream and preprocess the video stream to obtain a target video image of a preset size;

[0128] Performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively;

[0129] Based on the face shape coefficient, determining a matching relationship between the face in the target video image and the virtual person;

[0130] According to the facial expression coefficient, a target facial expression coefficient is obtained, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

[0131] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the driving method of multi-person video expressions provided by the above methods, the method comprising:

[0132] Acquire a video stream and preprocess the video stream to obtain a target video image of a preset size;

[0133] Performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively;

[0134] Based on the face shape coefficient, determining a matching relationship between the face in the target video image and the virtual person;

[0135] According to the facial expression coefficient, a target facial expression coefficient is obtained, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

[0136] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0137] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A driving method for multi-person video expressions, It is characterized in that include: Acquire a video stream and preprocess the video stream to obtain a target video image of a preset size; Performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively; Based on the face shape coefficient, determining a matching relationship between the face in the target video image and the virtual person; According to the facial expression coefficient, a target facial expression coefficient is obtained, so as to drive the virtual person to present an expression corresponding to the target facial expression coefficient according to the matching relationship.

2. The driving method of multi-person video expressions according to claim 1, It is characterized in that The step of obtaining a target facial expression coefficient according to the facial expression coefficient comprises: According to the gradient corresponding to the change of the facial expression coefficient, a time window corresponding to the gradient is selected to perform moving average smoothing processing on all the facial expression coefficients to obtain the target facial expression coefficient.

3. The driving method of multi-person video expressions according to claim 1, It is characterized in that The step of obtaining a target facial expression coefficient according to the facial expression coefficient comprises: The target facial expression coefficient is obtained based on a linear interpolation method according to the facial expression coefficient and the timestamp corresponding to the facial expression coefficient.

4. The method for driving multi-person video expressions according to claim 1, It is characterized in that The performing image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient respectively corresponding to the target video image includes: Extracting features from the target video image to obtain a facial feature map; Performing feature fusion on the face feature map to obtain a fused feature map; Regression prediction is performed based on the fused feature map whose receptive field is larger than a preset range to obtain the face shape coefficient and the face expression coefficient.

5. The method for driving multi-person video expressions according to claim 1, It is characterized in that The determining, based on the face shape coefficient, a matching relationship between the face in the target video image and the virtual person includes: Obtaining a first facial feature vector according to the facial shape coefficient; Determine the similarity between the first facial feature vector and a preset second facial feature vector based on a cosine similarity algorithm, each of the second facial feature vectors corresponding to one of the virtual persons; According to the similarity, a matching relationship between the human face in the target video image and the virtual person is determined.

6. The method for driving multi-person video expressions according to claim 5, It is characterized in that Determining the matching relationship between the face in the target video image and the virtual person according to the similarity includes: If the similarity is greater than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector are matched successfully; If the similarity is less than a preset value, the face corresponding to the first facial feature vector and the virtual person corresponding to the second facial feature vector fail to match, and a new second facial feature vector is constructed based on the first facial feature vector.

7. The method for driving multi-person video expressions according to claim 1, It is characterized in that The step of acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size includes: Acquire the video stream and perform frame extraction processing on the video stream to obtain video frames; The video frame is first filled and then scaled to obtain the target video image of a preset size.

8. A driving device for multi-person video expressions, It is characterized in that include: An acquisition module, used for acquiring a video stream and preprocessing the video stream to obtain a target video image of a preset size; A coefficient determination module, used to perform image processing on the target video image based on a preset image processing model to obtain a face shape coefficient and a face expression coefficient corresponding to the target video image respectively; A matching module, used for determining a matching relationship between a face in the target video image and a virtual person based on the face shape coefficient; The driving module is used to obtain the target facial expression coefficient according to the facial expression coefficient, so as to drive the virtual person to present the expression corresponding to the target facial expression coefficient according to the matching relationship.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the driving method of multi-person video expressions as described in any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the driving method of multi-person video expressions as claimed in any one of claims 1 to 7 is implemented.