Method and system for generating digital human image based on video call
By calculating and analyzing the stability coefficient of each frame of image during the video call, selecting high-quality images and generating avatars, the problem of poor image quality during video calls is solved, and the quality and stability of digital human avatar generation are improved.
Patent Information
- Application Number
- CN202410568636.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-05-09
AI Technical Summary
During a video call, how to select an image with high imaging quality as a digital human image to improve the quality of digital human image generation.
Each frame of interface image and its corresponding stability data are obtained through the data acquisition module. The data analysis module calculates the stability coefficient. The image selection module compares the stability coefficient with the range value, selects high-quality images, and analyzes the image stability trend through the trend generation module. , select high-quality images to generate avatars.
It effectively improves the quality of digital human image generation, ensures image clarity and stability, and improves digital human image performance in video calls.
Smart Images

Figure CN118474450B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital human image generation, and in particular to a method and system for generating digital human image based on video calls. Background Art
[0002] Chinese patent CN115914505B discloses a video generation method and system based on a voice-driven digital human model, the method comprising: obtaining a driving voice, authority verification information and a driven object of a driving object; obtaining a digital human model and a reference image of the driven object when the authority verification information satisfies the authority verification condition of the driven object; obtaining facial features corresponding to the driven object according to the digital human model, obtaining multiple groups of portrait parameters according to the driving voice and the facial features, and generating multiple portrait representation vectors according to the portrait parameters and the facial features; obtaining a temporal position code of each portrait representation vector, generating a frame of driven image corresponding to each portrait representation vector through a trained neural network generator according to the reference image, each portrait representation vector and each temporal position code, and generating a driven video, wherein the mouth movement of the driven object in the driven video matches the driving voice;
[0003] In the prior art, during a video call, how to select an image with high imaging quality from a plurality of images generated by the video as a digital human image to improve the quality of digital human image generation. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for generating a digital human image based on a video call, so as to solve the following technical problem: during a video call, how to select an image with high imaging quality from a plurality of images generated by a video as a digital human image, so as to improve the quality of digital human image generation.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] The digital human image generation system based on video call includes:
[0007] The data acquisition module acquires each frame of the interface image and the acquisition time corresponding to each frame of the interface image during the video call, and then acquires the stable data corresponding to the interface image based on the acquisition time;
[0008] Among them, stable data includes image stable data and acquisition stable data;
[0009] The data analysis module calculates the stability coefficient corresponding to each frame of the interface image based on the stability data;
[0010] The image selection module obtains the stability coefficient XWt from the data analysis module and compares the stability coefficient XWt with the stability coefficient range value;
[0011] If the stability coefficient XWt is within the stability coefficient range, the image is selected as a high-quality image;
[0012] If the stability coefficient XWt is not within the stability coefficient range, the image is selected as a low-quality image.
[0013] As a further aspect of the present invention: the image stabilization data includes ratios between facial points;
[0014] The ratios between facial points include a transverse facial ratio, which includes the ratio of the distance from the endpoint of the left eye to the midpoint of the nose bridge to the distance from the endpoint of the right eye to the midpoint of the nose bridge, and is marked as Kh.
[0015] As a further solution of the present invention: the ratio between facial points also includes a longitudinal facial ratio, and the longitudinal facial ratio also includes the ratio between the distance from the hairline to the glabella, the distance from the glabella to the subnasal point, and the distance from the subnasal point to the subchinal point, and is marked as Kz.
[0016] As a further solution of the present invention: the collected stable data includes a terminal jitter difference, and the terminal jitter difference is obtained in the following manner: the real-time value of the current terminal jitter and the preset standard value of the terminal jitter are obtained, and the jitter difference is obtained by subtracting the preset standard value of the terminal jitter from the real-time value of the current terminal jitter to obtain the jitter difference; if the jitter difference is greater than zero, the obtained jitter difference is marked as the terminal jitter difference Cd; if the jitter difference is less than or equal to zero, the obtained jitter difference is marked as zero.
[0017] As a further solution of the present invention: collecting stable data also includes a terminal focus value, and the terminal focus value is obtained in the following manner: obtaining a current focus distance value and marking it as Ld, and the focus distance value is the distance between the camera lens and the photographed object.
[0018] As a further solution of the present invention: the specific working process of the data analysis module is as follows:
[0019] Step 1: Obtain the horizontal facial ratio Kh and the vertical facial ratio Kz, add the horizontal facial ratio Kh and the vertical facial ratio Kz together to obtain the facial ratio value, which is marked as ZMb;
[0020] Step 2: Obtain the terminal jitter difference Cd and the focus distance value Ld, add the terminal jitter difference Cd and the focus distance value Ld to obtain the terminal stability value, marked as ZZw;
[0021] Step 3: Substitute the obtained facial ratio value ZMb and terminal stability value ZZw into the formula XWt=a1*ZMb+a2*ZZw to calculate the stability coefficient XWt; where a1 and a2 are weight coefficients.
[0022] As a further solution of the present invention: extract high-quality images and construct a high-quality image set {XWt1, XWt2, ..., XWti}, perform difference calculations on all subsets in the high-quality image set and the middle value of the stability coefficient range, and obtain a high-quality image difference set {CWt1, CWt2, ..., CWti}; thereby selecting the image with the smallest CWti value in the set as the captured image of the digital human image, and generating the corresponding virtual image based on the captured image.
[0023] As a further solution of the present invention: the specific process of generating the trend module is as follows:
[0024] The stability coefficient XWt of each frame image in each time node is obtained, and a rectangular coordinate system is established with time as the X-axis and the stability coefficient XWt as the Y-axis, and the stability coefficient XWt curve is drawn by drawing points, and the stability coefficient XWt curve is compared and analyzed with the preset stability coefficient curve recorded and stored internally, and the overlap between the stability coefficient curve and the preset stability coefficient curve is obtained, wherein the overlap refers to the overlap of the curve change trend, and it is marked as the stability trend overlap, and the stability trend overlap is compared with the preset stability trend overlap threshold recorded and stored internally for ratio analysis.
[0025] As a further solution of the present invention: if the ratio of the stability trend coincidence to the preset stability trend coincidence threshold is greater than one, a stability signal is generated;
[0026] If the ratio of the stable trend coincidence to the preset stable trend coincidence threshold is less than one, a fluctuation signal is generated.
[0027] The method for generating a digital human image based on a video call comprises the following steps:
[0028] Step 1: During the video call, each frame of the interface image and the acquisition time corresponding to each frame of the interface image are obtained, and then stable data corresponding to the interface image is obtained based on the acquisition time; wherein the stable data includes image stable data and acquisition stable data;
[0029] Step 2: Based on the stability data, calculate the stability coefficient corresponding to each frame of the interface image;
[0030] Step 3: Obtain the stability coefficient XWt of the data analysis module, compare the stability coefficient XWt with the stability coefficient range value, and obtain an image quality signal; wherein the image quality signal includes a quality image and a low-quality image;
[0031] Step 4: Obtain the stability coefficient XWt and analyze and evaluate the image stability trend during the video call.
[0032] Beneficial effects of the present invention:
[0033] (1) The present invention uses a data acquisition module to obtain each frame of interface image and the acquisition time corresponding to each frame of interface image during a video call, and then obtains stability data corresponding to the interface image based on the acquisition time. The data analysis module calculates the stability coefficient corresponding to each frame of interface image based on the stability data. The image selection module obtains the stability coefficient XWt of the data analysis module, compares the stability coefficient XWt with the stability coefficient range value, and then selects a high-quality image to generate a corresponding virtual image based on this. The embodiment of the present invention collects images in the call video, and judges the quality of each frame of image data through image stability data and acquisition stability data, thereby selecting a high-quality image data as the corresponding virtual image, thereby effectively improving the quality of digital human image generation;
[0034] (2) The embodiment of the present invention generates a trend module, obtains the stability coefficient XWt, and analyzes and evaluates the image stability trend during the video call. The embodiment of the present invention evaluates and analyzes the trend of the stability coefficient of each frame of the interface image in the historical time during the video call to obtain the trend change of its image generation, so as to give suggestions to the user, improve the image quality, and ensure the quality of the generated digital human image. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention will be further described below in conjunction with the accompanying drawings.
[0036] Figure 1 is a system block diagram of a digital human image generation system based on video calling according to a first embodiment of the present invention;
[0037] Figure 2 is a system block diagram of a digital human image generation system based on video calling according to a second embodiment of the present invention;
[0038] Figure 3 It is a flowchart of a method for generating a digital human image based on video calling according to the third embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Embodiment 1
[0041] See also Figure 1 As shown, the present invention is a method and system for generating a digital human image based on video calls, comprising:
[0042] The explanation of digital human image generation is as follows: the video call interface provides users with the option to set the digital human image in real time, including head portrait, full-body virtual image and its background; after the user selects a digital human image, the other party can see the replaced digital human image; it supports generating the corresponding virtual image based on a photo uploaded or taken by a real person, and provides face pinching (facial features, hairstyle), dressing (clothing, accessories), background and other options for users to deeply customize the image; the full-body virtual image and its background are rendered by the terminal to generate a video and then transmitted to the other end user through the network; it supports the expression and body movements of the image driven by the real person; it supports the export of the video of your own digital human to the mobile phone album for storage and sharing during the call, and the user can share his own digital human video to WeChat and Weibo clients;
[0043] The digital human image generation system includes:
[0044] The data acquisition module acquires each frame of the interface image and the acquisition time corresponding to each frame of the interface image during the video call, and then acquires the stable data corresponding to the interface image based on the acquisition time;
[0045] Among them, stable data includes image stable data and acquisition stable data:
[0046] Image stabilization data includes ratios between facial points;
[0047] The ratios between facial points include a transverse facial ratio, which includes the ratio of the distance from the end point of the left eye to the midpoint of the nose bridge to the distance from the end point of the right eye to the midpoint of the nose bridge, and is marked as Kh;
[0048] The ratios between facial points also include the longitudinal facial ratio, which includes the ratios between the distances from the hairline to the glabella, the distances from the glabella to the subnasal point, and the distances from the subnasal point to the subchinal point, and is marked as Kz;
[0049] The collected stable data includes the terminal jitter difference. The terminal jitter difference is obtained by: obtaining the real-time value of the current terminal jitter and the preset standard value of the terminal jitter, subtracting the preset standard value of the terminal jitter from the real-time value of the current terminal jitter to obtain the jitter difference. If the jitter difference is greater than zero, the obtained jitter difference is marked as the terminal jitter difference Cd. If the jitter difference is less than or equal to zero, the obtained jitter difference is marked as zero.
[0050] The collected stable data also includes the terminal focus value. The terminal focus value is obtained by: obtaining the current focus distance value and marking it as Ld. The focus distance value is the distance between the camera lens and the photographed object;
[0051] The data analysis module calculates the stability coefficient corresponding to each frame of the interface image based on the stability data;
[0052] The specific working process of the data analysis module is as follows:
[0053] Step 1: Obtain the horizontal facial ratio Kh and the vertical facial ratio Kz, add the horizontal facial ratio Kh and the vertical facial ratio Kz together to obtain the facial ratio value, which is marked as ZMb;
[0054] Step 2: Obtain the terminal jitter difference Cd and the focus distance value Ld, add the terminal jitter difference Cd and the focus distance value Ld to obtain the terminal stability value, marked as ZZw;
[0055] Step 3: Substitute the obtained facial ratio value ZMb and terminal stability value ZZw into the formula XWt=a1*ZMb+a2*ZZw to calculate the stability coefficient XWt; where a1 and a2 are weight coefficients, a1+a2=1, and a1 and a2 are both greater than zero;
[0056] The image selection module obtains the stability coefficient XWt from the data analysis module and compares the stability coefficient XWt with the stability coefficient range value;
[0057] If the stability coefficient XWt is within the stability coefficient range, the image is selected as a high-quality image;
[0058] If the stability coefficient XWt is not within the stability coefficient range, the image is selected as a low-quality image;
[0059] Among them, the high-quality image means that during the video process, the image of the interface image of this frame is clear and the imaging quality is good, and the low-quality image means that during the video process, the image module and imaging quality of the interface image of this frame are poor;
[0060] Extract high-quality images and construct a high-quality image set {XWt1, XWt2, ..., XWti}. Perform difference calculations on all subsets in the high-quality image set and the middle value of the stability coefficient range to obtain a high-quality image difference set {CWt1, CWt2, ..., CWti}; thereby select the image with the smallest CWti value in the set as the acquisition image of the digital human image, and generate the corresponding virtual image based on the acquisition image.
[0061] The technical solution of the embodiment of the present invention is as follows: through the data acquisition module, during the video call, each frame of the interface image and the acquisition time corresponding to each frame of the interface image are obtained, and then the stability data corresponding to the interface image is obtained based on the acquisition time. The data analysis module calculates the stability coefficient corresponding to each frame of the interface image based on the stability data. The image selection module obtains the stability coefficient XWt of the data analysis module, compares the stability coefficient XWt with the stability coefficient range value, and then based on this, selects a high-quality image to generate a corresponding virtual image; the embodiment of the present invention collects images in the call video, and through the image stability data and the acquisition stability data, the quality of each frame of the image data is determined, so as to select a high-quality image data as the corresponding virtual image, thereby effectively improving the quality of digital human image generation.
[0062] Embodiment 2
[0063] See also Figure 2 As shown, the present invention is a digital human image generation system based on video calling, and also includes:
[0064] Generate a trend module, obtain the stability coefficient XWt, and analyze and evaluate the image stability trend during the video call;
[0065] The specific process of generating trend module is as follows:
[0066] Step 1: Obtain the stability coefficient XWt of each frame image at each time node, and establish a rectangular coordinate system with time as the X-axis and the stability coefficient XWt as the Y-axis, and draw the stability coefficient XWt curve by plotting points, and compare and analyze the stability coefficient XWt curve with the preset stability coefficient curve stored internally, and obtain the overlap between the stability coefficient curve and the preset stability coefficient curve, where the overlap refers to the overlap of the curve change trend, and mark it as the stability trend overlap, and perform a ratio analysis between the stability trend overlap and the preset stability trend overlap threshold stored internally:
[0067] If the ratio of the stability trend coincidence to the preset stability trend coincidence threshold is greater than one, a stability signal is generated;
[0068] If the ratio of the stable trend coincidence to the preset stable trend coincidence threshold is less than one, a fluctuation signal is generated;
[0069] Among them, the stable signal indicates that during the video call, the overall quality of the interface image is high and the stability is good, and its image stability data and acquisition stability data both have good performance, while the fluctuation signal indicates that during the video call, the overall quality of the interface image is unstable, and its image stability data and acquisition stability data have large fluctuations, which affects the quality of digital human image generation, and it is necessary to remind the user to keep the device stable and the focus distance stable;
[0070] The technical solution of the embodiment of the present invention: generate a trend module, obtain the stability coefficient XWt, and analyze and evaluate the image stability trend during the video call; the embodiment of the present invention evaluates and analyzes the trend of the stability coefficient of each frame of the interface image in the historical time during the video call, and obtains the trend change of its image generation, so as to give suggestions to the user, improve the image quality, and ensure the quality of the generated digital human image.
[0071] Embodiment 3
[0072] See also Figure 2 As shown, the present invention is a method for generating a digital human image based on video calling, comprising the following steps:
[0073] Step 1: During the video call, each frame of the interface image and the acquisition time corresponding to each frame of the interface image are obtained, and then stable data corresponding to the interface image is obtained based on the acquisition time; wherein the stable data includes image stable data and acquisition stable data;
[0074] Step 2: Based on the stability data, calculate the stability coefficient corresponding to each frame of the interface image;
[0075] Step 3: Obtain the stability coefficient XWt of the data analysis module, compare the stability coefficient XWt with the stability coefficient range value, and obtain an image quality signal; wherein the image quality signal includes a quality image and a low-quality image;
[0076] Step 4: Obtain the stability coefficient XWt and analyze and evaluate the image stability trend during the video call.
[0077] Working principle of the present invention: The present invention obtains each frame of interface image and the acquisition time corresponding to each frame of interface image through the data acquisition module during the video call, and then obtains the stability data corresponding to the interface image based on the acquisition time. The data analysis module calculates the stability coefficient corresponding to each frame of interface image based on the stability data. The image selection module obtains the stability coefficient XWt of the data analysis module, compares the stability coefficient XWt with the stability coefficient range value, and then selects a high-quality image based on this to generate a corresponding virtual image;
[0078] Generate a trend module, obtain the stability coefficient XWt, and analyze and evaluate the image stability trend during the video call.
[0079] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0080] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A digital human image generation system based on video calls, characterized in that: include: The data acquisition module acquires each frame of the interface image and the acquisition time corresponding to each frame of the interface image during the video call, and then acquires the stable data corresponding to the interface image based on the acquisition time; Among them, stable data includes image stable data and acquisition stable data; The data analysis module calculates the stability coefficient corresponding to each frame of the interface image based on the stability data; The image selection module obtains the stability coefficient XWt from the data analysis module and compares the stability coefficient XWt with the stability coefficient range value; If the stability coefficient XWt is within the stability coefficient range, the image is selected as a high-quality image; If the stability coefficient XWt is not within the stability coefficient range, the image is selected as a low-quality image; Image stabilization data includes ratios between facial points; The ratios between facial points include a transverse facial ratio, which includes the ratio of the distance from the end point of the left eye to the midpoint of the nose bridge to the distance from the end point of the right eye to the midpoint of the nose bridge, and is marked as Kh; The ratios between facial points also include the longitudinal facial ratio, which includes the ratios between the distances from the hairline to the glabella, the distances from the glabella to the subnasal point, and the distances from the subnasal point to the subchinal point, and is marked as Kz; The specific working process of the data analysis module is as follows: Step 1: Obtain the horizontal facial ratio Kh and the vertical facial ratio Kz, add the horizontal facial ratio Kh and the vertical facial ratio Kz together to obtain the facial ratio value, which is marked as ZMb; Step 2: Obtain the terminal jitter difference Cd and the focus distance value Ld, add the terminal jitter difference Cd and the focus distance value Ld to obtain the terminal stability value, marked as ZZw; Step 3: Substitute the obtained facial ratio value ZMb and terminal stability value ZZw into the formula The stability coefficient XWt is calculated, where a1 and a2 are weight coefficients; Extract high-quality images and construct a high-quality image set {XWt1, XWt2, ..., XWt i }, calculate the difference between all subsets in the high-quality image set and the middle value of the stability coefficient range, and obtain the high-quality image difference set {CWt1, CWt2, ..., CWt i }; thus selecting CWt in the collection i The image with the smallest value is used as the captured image of the digital human image, and the corresponding virtual image is generated based on the captured image.
2. The digital human image generation system based on video call according to claim 1, characterized in that: The collected stable data includes the terminal jitter difference. The terminal jitter difference is obtained in the following way: obtain the real-time value of the current terminal jitter and the preset standard value of the terminal jitter, subtract the preset standard value of the terminal jitter from the real-time value of the current terminal jitter to obtain the jitter difference. If the jitter difference is greater than zero, the obtained jitter difference is marked as the terminal jitter difference Cd. If the jitter difference is less than or equal to zero, the obtained jitter difference is marked as zero.
3. The digital human image generation system based on video call according to claim 2, characterized in that: The collected stable data also includes the terminal focus value. The terminal focus value is obtained by obtaining the current focus distance value and marking it as Ld. The focus distance value is the distance between the camera lens and the subject.
4. The digital human image generation system based on video call according to claim 1, characterized in that: It also includes a trend generation module. The specific working process of the trend generation module is as follows: The stability coefficient XWt of each frame image in each time node is obtained, and a rectangular coordinate system is established with time as the X-axis and the stability coefficient XWt as the Y-axis, and the stability coefficient XWt curve is drawn by drawing points, and the stability coefficient XWt curve is compared and analyzed with the preset stability coefficient curve recorded and stored internally, and the overlap between the stability coefficient curve and the preset stability coefficient curve is obtained, wherein the overlap refers to the overlap of the curve change trend, and it is marked as the stability trend overlap, and the stability trend overlap is compared with the preset stability trend overlap threshold recorded and stored internally for ratio analysis.
5. The digital human image generation system based on video call according to claim 4, characterized in that: If the ratio of the stability trend coincidence to the preset stability trend coincidence threshold is greater than one, a stability signal is generated; If the ratio of the stable trend coincidence to the preset stable trend coincidence threshold is less than one, a fluctuation signal is generated.
Citation Information
Patent Citations
A Video Generation Method and System Based on Voice-Driven Digital Human Model
CN115914505B
Human body posture recognition tracking method based on neural network
CN115578787A
Video generation method and system based on voice-driven digital human model
CN115914505A
