Live face-changing system and method based on AI face recognition

Through the AI ​​face recognition system and 3D processing technology, the problem of difficulty in retaining the special effects of the face behind obstructions in live face-changing has been solved, and a stable and realistic face-changing effect under occlusion has been achieved.

CN118553003BActive Publication Date: 2024-10-01JINHUA TISHU ELECTRONIC TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411029599.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-01
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing live broadcast face-changing technology is difficult to retain the special effects of faces after obstructions appear, resulting in reduced effects.

Method used

Adopting an AI-based face recognition system, through the combination of image acquisition module, image analysis module and AI face-changing module, using 3D processing technology and feature fusion technology, it can track and adjust the three-dimensional coordinates of the face in real time, identify and cover the unobstructed The face image to be replaced in the area ensures the stability and fidelity of the face replacement effect.

Benefits of technology

It effectively retains face special effects under occlusion, improves the effect and stability of live face-changing, and achieves a more natural and realistic face-changing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553003B_ABST
    Figure CN118553003B_ABST
Patent Text Reader

Abstract

The present invention relates to a live face-changing system and method based on AI face recognition, which locates the face area of ​​a real-time live image through a face detection algorithm, and simultaneously identifies key feature points of the face area to obtain a face area image; scales each frame of the obtained face area image to the same size; takes the center of the face area image as the origin to establish an image rectangular coordinate system; compares the feature data of each coordinate of the face area image with the target complete face image, obtains the coordinates where the feature data differs, and determines it as a face occlusion area; determines the face unoccluded area by excluding the coordinates of the face occlusion area; and covers the face image to be replaced with the coordinates of the face unoccluded area on the target complete face image by comparing the coordinates of the face image to be replaced and the target complete face image. The present invention solves the problem that it is still difficult to retain face special effects after an obstruction appears in the face-changing technology, resulting in poor face-changing effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of artificial intelligence and relates to a live face-changing system and method based on AI face recognition. Background Art

[0002] Face-swapping technology is an artificial intelligence image processing technology that can extract a person's facial information and then match it with another person's facial information to generate a new facial image that combines the features of both. Applying face-swapping technology to some entertainment live broadcasts can bring a novel experience to the audience.

[0003] At present, most live face-changing methods are to directly cover the newly generated face with the target face. However, when an occluder blocks part of the face, the special effect is often cancelled because the target face cannot be recognized completely, which greatly reduces the effect of live face-changing. Therefore, how to retain the special effect of the remaining face after an occluder appears becomes the key to solving the problem. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a live face-changing system and method based on AI face recognition.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] In a first aspect, the present application provides a live face-changing system based on AI face recognition, including an image acquisition module, an image analysis module and an AI face-changing module, wherein the image acquisition module, the image analysis module and the AI ​​face-changing module are communicatively connected, wherein:

[0007] The image acquisition module is used to acquire real-time live images in the live video stream;

[0008] The image analysis module is used to identify the face area of ​​the real-time live image, extract and analyze the face image features, and obtain the unobstructed face area;

[0009] The AI ​​face-changing module is used to overlay the coordinates of the face image to be replaced with the target complete face image by comparing the coordinates of the face image to be replaced and the target complete face image.

[0010] Furthermore, the AI ​​face-changing module also applies 3D processing technology, specifically to establish the three-dimensional coordinates of the target face. When the live broadcaster turns his head or face, the face image to be replaced performs a face-changing operation on the target complete face image by tracking the three-dimensional coordinates of the target face, including the following steps:

[0011] T1. Based on the key feature points of the face area detected, a 3D model of the target face is constructed using 3D modeling technology;

[0012] T2, real-time tracking of the target face and estimation of its posture changes in three-dimensional space;

[0013] T3, the face image to be replaced is processed accordingly according to the three-dimensional coordinates and estimated posture of the target face to adapt to the shape and angle of the target face;

[0014] T4, combining the three-dimensional coordinate information of the face image to be replaced and the target complete face image to perform a face replacement operation;

[0015] T5. Make detailed adjustments and optimizations to the face-changing results, including adjustments to color, lighting, and texture.

[0016] Furthermore, the step of identifying the face area of ​​the real-time live broadcast image, extracting and analyzing the face image features, and obtaining the face unobstructed area includes the following steps:

[0017] S1. Face detection: using a face detection algorithm to locate the face area of ​​a live broadcast image, and identifying key feature points of the face area to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair;

[0018] S2, image size standardization: scaling each frame of the face area image to the same size;

[0019] S3, establishing an image coordinate system: taking the center of the face area image as the origin, establishing an image rectangular coordinate system;

[0020] S4, identifying face occlusion features: comparing feature data of each coordinate of the face region image with the target complete face image, obtaining coordinates where feature data differ, and determining the face occlusion region, wherein the target complete face image refers to the face region image when it is not occluded;

[0021] S5. Determine the area where the face is not blocked: Determine the area where the face is not blocked by excluding the coordinates of the area where the face is blocked.

[0022] Furthermore, in step S1, the face detection algorithm is configured as Viola-Jones algorithm, convolutional neural network, HOG algorithm, MTCNN algorithm or YOLO algorithm.

[0023] Furthermore, in step S2, each frame of the obtained face region image is scaled to the same size, and the scaling ratio of the image is also recorded.

[0024] Furthermore, in step S4, the target complete face image is configured as an image of the closest frame before the face is obscured in the live stream.

[0025] Furthermore, in step S4, the feature data of each coordinate of the face region image is compared with the target complete face image to obtain the coordinates where the feature data differs, and determine them as the face occlusion region, including the following steps:

[0026] S41, feature extraction: extracting image features from the face region image and the complete face image, and establishing a feature vector to represent each coordinate point;

[0027] S42, feature comparison: comparing the feature data in the face region image with the feature data of the corresponding coordinates in the complete face image, and calculating the degree of difference between the feature data;

[0028] S43, occlusion area detection: if the difference in feature data of the coordinate point exceeds a set threshold, it is determined that the coordinate point is occluded;

[0029] S44, occlusion area marking: marking the detected occlusion area by drawing a bounding box on the image or adding a marker near the coordinate point.

[0030] Furthermore, in step S41, the image features include the color value, brightness value and gradient information of each coordinate point.

[0031] Furthermore, in step S42, the degree of difference between the feature data is calculated by calculating the Euclidean distance between the feature data in the face region image and the feature data of the corresponding coordinates in the complete face image.

[0032] Furthermore, the AI ​​face-changing module is configured with feature fusion technology.

[0033] Furthermore, the feature fusion technology includes point-to-point alignment, texture fusion, lighting consistency processing, skeletal animation fusion and expression fusion.

[0034] In a second aspect, the present application provides a live face-changing method based on AI face recognition, which is applied to a live face-changing system based on AI face recognition as described above, comprising the following steps:

[0035] Capture real-time live images from live video streams;

[0036] A face detection algorithm is used to locate the face area of ​​the real-time live broadcast image, and key feature points of the face area are identified to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair;

[0037] Scale each frame of the acquired face region image to the same size;

[0038] Take the center of the face area image as the origin and establish the image rectangular coordinate system;

[0039] Comparing the feature data of each coordinate of the face region image with the target complete face image, obtaining the coordinates where the feature data differ, and determining them as the face occlusion region, wherein the target complete face image refers to the face region image when it is not occluded;

[0040] By excluding the coordinates of the face occluded area, the unoccluded face area is determined;

[0041] By comparing the coordinates of the face image to be replaced and the target complete face image, the face image to be replaced with the coordinates of the unobstructed face area is overlaid on the target complete face image.

[0042] Beneficial effects of the present invention:

[0043] By collecting real-time live images in live video streams; using face detection algorithms to locate the face area of ​​the real-time live images, and identifying key feature points of the face area, obtaining face area images; scaling each frame of the obtained face area images to the same size; using the center of the face area image as the origin, establishing an image rectangular coordinate system; comparing the feature data of each coordinate of the face area image with the target complete face image, obtaining the coordinates where the feature data differs, and determining them as face occlusion areas; determining the unoccluded face area by excluding the coordinates of the face occlusion area; by comparing the coordinates of the face image to be replaced and the target complete face image, the face image to be replaced of the coordinates of the unoccluded face area is overlaid on the target complete face image. The present invention solves the problem that it is still difficult to retain face special effects after an obstruction appears in the face-changing technology, resulting in poor face-changing effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0045] Figure 1 This is a structural diagram of a live face-changing system based on AI face recognition in the present invention. DETAILED DESCRIPTION

[0046] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation mode, structure, characteristics and effects of the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0047] See also Figure 1In the first aspect, the present application provides a live face-changing system based on AI face recognition, including an image acquisition module, an image analysis module and an AI face-changing module, wherein the image acquisition module, the image analysis module and the AI ​​face-changing module are communicatively connected, wherein:

[0048] The image acquisition module is used to acquire real-time live images in the live video stream;

[0049] In this embodiment, the image acquisition module is usually an important component of the live face-changing system, and its function is to capture images from the live video stream in real time. Through this module, the system can continuously obtain real-time image data in the live video, providing a data basis for subsequent face recognition, feature extraction, and face-changing processing. This module needs to quickly and accurately capture images in the video stream to ensure the real-time and smoothness of the face-changing effect.

[0050] The image analysis module is used to identify the face area of ​​the real-time live image, extract and analyze the face image features, and obtain the area where the face is blocked;

[0051] In this embodiment, the image analysis module can accurately locate the face position, analyze the face features, and infer the parts that may be blocked. These functions enable the system to understand the face information more comprehensively and can handle it even if part of the face is blocked. This comprehensive analysis provides the system with more processing and correction possibilities in the case of face blockage, improving the robustness and performance of the system. In this way, even if the face is blocked, the system can still effectively apply special effects and maintain the stability and accuracy of the face-changing effect.

[0052] Furthermore, the step of identifying the face area of ​​the real-time live broadcast image, extracting and analyzing the face image features, and obtaining the face obscured area includes the following steps:

[0053] S1. Face detection: using a face detection algorithm to locate the face area of ​​a live broadcast image, and identifying key feature points of the face area to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair;

[0054] In this embodiment, the face detection algorithm can help the system recognize faces in real-time live images. The face detection algorithms that can be used include Viola-Jones algorithm, convolutional neural network (CNN), HOG algorithm, MTCNN algorithm and YOLO algorithm. The Viola-Jones algorithm uses Haar-like features to detect faces. It first converts the image into an integral image to speed up the calculation, and then trains the cascaded weak classifiers through the AdaBoost algorithm to gradually reduce the false positive rate and finally determine the face area. CNN is a deep learning structure that learns features through convolutional layers, pooling layers, and fully connected layers. In face detection, CNN can learn image features by training a large number of data sets to achieve accurate face detection. The HOG algorithm describes image features by calculating the gradient histogram of the local area in the image. In face detection, these gradient histograms can be used to represent the shape and edges of the face, thereby detecting the face area. MTCNN is a joint detection network that contains three cascaded CNN models, which are used for rough face frame detection, face key point location, and fine adjustment of the face frame. It can simultaneously complete face detection and face key point location tasks. YOLO is a real-time target detection algorithm that can quickly and accurately detect multiple objects in an image. In face detection, YOLO can be used to locate the face in the entire image and mark its position.

[0055] S2, image size standardization: scaling each frame of the face area image to the same size;

[0056] Furthermore, in step S2, each frame of the obtained face region image is scaled to the same size, and the scaling ratio of the image is also recorded.

[0057] In actual work, the size of a face will change with the distance between the anchor and the camera, which will make the obtained face area images difficult to compare. Therefore, this embodiment standardizes the images, that is, scales each frame of the obtained face area image to the same size and records the scaling ratio. The scaling ratio is recorded in order to restore the scaled image according to the scaling ratio in subsequent processing, so that the processed image conforms to the size in the actual live broadcast.

[0058] S3, establishing an image coordinate system: taking the center of the face area image as the origin, establishing an image rectangular coordinate system;

[0059] It should be noted that the purpose of establishing the rectangular coordinate system of the image is to assign coordinate values ​​to each area of ​​the face so that the system can quickly locate each area of ​​the face and process the obscured parts of the face.

[0060] When establishing an image rectangular coordinate system, the center point of the face area image is usually used as the origin to determine the horizontal and vertical coordinate axes. First, determine the center coordinates of the face area, which can be obtained through face detection and key point positioning technology; then, take the center point of the face as the origin of the coordinate system, usually select the horizontal central axis of the face as the horizontal direction of the coordinate system, and the direction perpendicular to the central axis as the vertical direction, and construct the x and y coordinate axes respectively; then, in order to achieve the positioning of each area of ​​the face, the face image can be divided into different areas, such as the left eye, right eye, nose, mouth, etc., and each area is assigned a specific coordinate value. Through the coordinate system, the location information of each area can be accurately recorded, which is convenient for the system to analyze and process facial features. When dealing with occluded faces, establishing a coordinate system can help the system identify the location of the occluded area and process it. Establishing an image rectangular coordinate system provides the system with a convenient and fast positioning and processing method, which helps to improve the accuracy and efficiency of face recognition and image processing.

[0061] S4, identifying face occlusion features: comparing feature data of each coordinate of the face region image with the target complete face image, obtaining coordinates where feature data differ, and determining the face occlusion region, wherein the target complete face image refers to the face region image when it is not occluded;

[0062] When detecting face occlusion, the occluded face image is compared with the unoccluded face image in the nearest frame, which can more accurately determine the occluded area. By comparing the unoccluded face image of the nearest current frame, the occluded part can be detected more effectively, and it helps to process and repair the occluded area in real time, improving face recognition and image quality.

[0063] When performing face occlusion area detection, it is first necessary to obtain feature data from the face area image and the complete face image. These feature data may include the location of facial key points, color distribution, texture information, etc. By comparing these feature data, the occlusion area in the face area image can be determined. Specifically, the following are the detailed steps:

[0064] S41, feature extraction: extract features from the face region image and the complete face image, extract features such as color value, brightness value, gradient information, etc. of each coordinate point, and establish a feature vector to represent each coordinate point;

[0065] S42, feature comparison: comparing the feature data in the face region image with the feature data of the corresponding coordinates in the complete face image, such as Euclidean distance, similarity measurement, etc., to calculate the degree of difference between the feature data;

[0066] S43, occlusion area detection: if the feature data difference of a certain coordinate point exceeds a set threshold, it is determined that the coordinate point is occluded;

[0067] S44, occlusion area marking: marking the detected occlusion area by drawing a bounding box on the image or adding a marker near the coordinate point.

[0068] S5. Determine the area where the face is not blocked: Determine the area where the face is not blocked by excluding the coordinates of the area where the face is blocked.

[0069] Furthermore, the target complete face image is configured as an image of the closest frame before the face is obscured in the live stream.

[0070] The AI ​​face-changing module is used to overlay the coordinates of the face image to be replaced with the target complete face image by comparing the coordinates of the face image to be replaced and the target complete face image.

[0071] The AI ​​face-changing module can usually overlay the corresponding coordinates of the face image to be replaced on the corresponding area of ​​the original face image according to the unobstructed area of ​​the face, thereby achieving the effect of face-changing. By aligning the key point coordinates of the face image to be replaced and the original image, and through technologies such as feature fusion, a natural and smooth face-changing effect can be achieved.

[0072] Furthermore, the AI ​​face-changing module also applies 3D processing technology, specifically to establish the three-dimensional coordinates of the target face. When the live broadcaster turns his head or face, the face image to be replaced performs a face-changing operation on the target complete face image by tracking the three-dimensional coordinates of the target face, including the following steps:

[0073] T1. Based on the key feature points of the face area detected, a three-dimensional model of the target face is constructed using 3D modeling technology; through this step, the system can obtain the geometric shape and position information of the target face in three-dimensional space.

[0074] T2. Track the target face in real time and estimate its posture changes in three-dimensional space; through continuous tracking and posture estimation, the system can accurately capture the dynamic changes of the target face.

[0075] T3. The face image to be replaced is processed accordingly according to the three-dimensional coordinates and estimated posture of the target face to adapt to the shape and angle of the target face; the processing includes deforming, rotating, scaling and other operations on the face image to be replaced so that it better matches the target face.

[0076] T4. Combining the three-dimensional coordinate information of the face image to be replaced and the target complete face image, perform the face-changing operation; by fusing the features of the two, the face image to be replaced is naturally embedded in the position of the target face.

[0077] T5. Make detailed adjustments and optimizations to the face-changing results, including adjustments to color, lighting, and texture.

[0078] The AI ​​face-changing operation combined with 3D processing technology has significant advantages in technical effects. First, by building a three-dimensional model of the target face, the shape, outline and features of the face can be captured more accurately, achieving a more realistic face-changing effect; secondly, real-time tracking and posture estimation can ensure that the face-changing effect remains stable and natural when the target face changes posture; at the same time, the processing of detail optimization can enhance the delicacy and realism of the face-changing effect, including light and shadow effects, texture details and other aspects. With these advantages working together, the AI ​​face-changing operation combined with 3D processing technology can not only enhance the realism and attractiveness of the visual effects, but also meet the user's demand for more creative and interactive experiences, bringing more colorful possibilities and experiences to video production and live broadcast scenes.

[0079] Furthermore, the AI ​​face-changing module is configured with feature fusion technology.

[0080] Furthermore, the feature fusion technology includes point-to-point alignment, texture fusion, lighting consistency processing, skeletal animation fusion and expression fusion.

[0081] Feature fusion is an artificial intelligence technology that is commonly used in image processing and computer vision. In tasks such as face swapping, feature fusion technology achieves a natural synthesis effect by fusing the features of different faces together. This technology usually analyzes information such as facial feature points, texture, and lighting, and then matches and fuses the features of the face to be fused with the features of the original face. Through feature fusion, the effect of face synthesis in tasks such as face swapping can be achieved, making the synthesized image look more realistic and consistent with visual perception.

[0082] Feature fusion technology mainly includes the following methods:

[0083] 1) Point-to-point alignment: The face image to be replaced and the original face image are aligned point-to-point (such as facial key point alignment) to ensure that the corresponding feature points of the two are accurately matched;

[0084] 2) Texture fusion: The texture information of the face image to be replaced is fused into the original face image to present a more realistic synthesis effect;

[0085] 3) Lighting consistency processing: Considering the lighting conditions in face synthesis, the synthesized image is processed for lighting consistency to make the synthesis effect more realistic;

[0086] 4) Skeletal animation fusion: In tasks such as video face swapping, skeletal animation technology is combined to make the expression and movement of the face image to be replaced consistent with the original face image;

[0087] 5) Expression fusion: Based on the expression features of the original face, the expression features of the face image to be replaced are integrated to achieve a natural transition of expression.

[0088] These feature fusion methods are usually used in combination to achieve a more realistic and natural face synthesis effect. In applications, selecting the appropriate feature fusion method according to specific needs can improve the quality and realism of the synthesis effect.

[0089] In a second aspect, the present application provides a live face-changing method based on AI face recognition, which is applied to a live face-changing system based on AI face recognition as described above, comprising the following steps:

[0090] Capture real-time live images from live video streams;

[0091] A face detection algorithm is used to locate the face area of ​​the real-time live broadcast image, and key feature points of the face area are identified to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair;

[0092] Scale each frame of the acquired face region image to the same size;

[0093] Take the center of the face area image as the origin and establish the image rectangular coordinate system;

[0094] Comparing the feature data of each coordinate of the face region image with the target complete face image, obtaining the coordinates where the feature data differ, and determining them as the face occlusion region, wherein the target complete face image refers to the face region image when it is not occluded;

[0095] By excluding the coordinates of the face occluded area, the unoccluded face area is determined;

[0096] By comparing the coordinates of the face image to be replaced and the target complete face image, the face image to be replaced with the coordinates of the unobstructed face area is overlaid on the target complete face image.

[0097] Beneficial effects of the present invention:

[0098] By collecting real-time live images in live video streams; using face detection algorithms to locate the face area of ​​the real-time live images, and identifying key feature points of the face area, obtaining face area images; scaling each frame of the obtained face area images to the same size; using the center of the face area image as the origin, establishing an image rectangular coordinate system; comparing the feature data of each coordinate of the face area image with the target complete face image, obtaining the coordinates where the feature data differs, and determining them as face occlusion areas; determining the unoccluded face area by excluding the coordinates of the face occlusion area; by comparing the coordinates of the face image to be replaced and the target complete face image, the face image to be replaced of the coordinates of the unoccluded face area is overlaid on the target complete face image. The present invention solves the problem that it is still difficult to retain face special effects after an obstruction appears in the face-changing technology, resulting in poor face-changing effects.

[0099] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. A live face-changing system based on AI face recognition, Features: It includes an image acquisition module, an image analysis module and an AI face-changing module, and the image acquisition module, the image analysis module and the AI ​​face-changing module are communicatively connected, wherein: The image acquisition module is used to acquire real-time live images in the live video stream; The image analysis module is used to identify the face area of ​​the real-time live image, extract and analyze the face image features, and obtain the unobstructed face area, including the following steps: S1. Face detection: using a face detection algorithm to locate the face area of ​​a live broadcast image, and identifying key feature points of the face area to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair; S2, image size standardization: scaling each frame of the face area image to the same size; S3, establishing an image coordinate system: taking the center of the face area image as the origin, establishing an image rectangular coordinate system; S4, identifying face occlusion features: comparing feature data of each coordinate of the face region image with the target complete face image, obtaining coordinates where feature data differ, and determining the face occlusion region, wherein the target complete face image refers to an image of the face region when it is not occluded; the target complete face image is configured as an image of the nearest frame before the occlusion of the face occurs in the live stream; S5, determining the unobstructed area of ​​the face: determining the unobstructed area of ​​the face by excluding the coordinates of the obstructed area of ​​the face; The AI ​​face-changing module is used to overlay the coordinates of the face image to be replaced with the target complete face image by comparing the coordinates of the face image to be replaced and the target complete face image; wherein each frame of the face area image obtained is scaled to the same size, and the feature data of each coordinate of the face area image is compared with the target complete face image; The AI ​​face-changing module also applies 3D processing technology, specifically to establish the three-dimensional coordinates of the target face. When the live broadcaster turns his head or face, the face image to be replaced tracks the three-dimensional coordinates of the target face and performs a face-changing operation on the target complete face image, including the following steps: T1. Based on the key feature points of the face area detected, a 3D model of the target face is constructed using 3D modeling technology; T2, real-time tracking of the target face and estimation of its posture changes in three-dimensional space; T3, the face image to be replaced is processed accordingly according to the three-dimensional coordinates and estimated posture of the target face to adapt to the shape and angle of the target face; T4, combining the three-dimensional coordinate information of the face image to be replaced and the target complete face image to perform a face replacement operation; T5. Make detailed adjustments and optimizations to the face-changing results, including adjustments to color, lighting, and texture.

2. According to the AI ​​face recognition-based live face-changing system of claim 1, Features: In step S1, the face detection algorithm is configured as Viola-Jones algorithm, convolutional neural network, HOG algorithm, MTCNN algorithm or YOLO algorithm.

3. According to the AI ​​face recognition-based live face-changing system of claim 1, Features: In step S2, each frame of the obtained face region image is scaled to the same size, and the scaling ratio of the image is also recorded.

4. According to claim 1, a live face-changing system based on AI face recognition, Features: In step S4, the feature data of each coordinate of the face region image is compared with the target complete face image to obtain the coordinates where the feature data differs, and determine them as the face occlusion region, including the following steps: S41, feature extraction: extracting image features from the face region image and the complete face image, and establishing a feature vector to represent each coordinate point; S42, feature comparison: comparing the feature data in the face region image with the feature data of the corresponding coordinates in the complete face image, and calculating the degree of difference between the feature data; S43, occlusion area detection: if the difference in feature data of the coordinate point exceeds a set threshold, it is determined that the coordinate point is occluded; S44, occlusion area marking: marking the detected occlusion area by drawing a bounding box on the image or adding a marker near the coordinate point.

5. According to claim 4, a live face-changing system based on AI face recognition, Features: In step S41, the image features include the color value, brightness value and gradient information of each coordinate point.

6. A live face-changing system based on AI face recognition according to claim 4, Features: In step S42, the degree of difference between the feature data is calculated by calculating the Euclidean distance between the feature data in the face region image and the feature data of the corresponding coordinates in the complete face image.

7. The live face-changing system based on AI face recognition according to claim 1, Features: The AI ​​face-changing module is also equipped with feature fusion technology.

8. A live face-changing system based on AI face recognition according to claim 7, Features: The feature fusion technology includes point-to-point alignment, texture fusion, lighting consistency processing, skeletal animation fusion and expression fusion.

9. A live face-changing method based on AI face recognition, applied to a live face-changing system based on AI face recognition as claimed in any one of claims 1 to 8, The following steps are involved: Capture real-time live images from live video streams; A face detection algorithm is used to locate the face area of ​​the real-time live broadcast image, and key feature points of the face area are identified to obtain a face area image, wherein the key feature points include eyes, nose, mouth, ears, face and hair; Scale each frame of the acquired face region image to the same size; Take the center of the face area image as the origin and establish the image rectangular coordinate system; Comparing the feature data of each coordinate of the face region image with the target complete face image, obtaining the coordinates where the feature data differ, and determining them as the face occlusion region, wherein the target complete face image refers to the face region image when it is not occluded; By excluding the coordinates of the face occluded area, the unoccluded face area is determined; By comparing the coordinates of the face image to be replaced and the target complete face image, the face image to be replaced with the coordinates of the unobstructed face area is overlaid on the target complete face image.