Real-Time Face Swapping via Guided GAN and Delaunay Triangulation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing face swapping technologies fail to produce realistic results, struggle with significant differences in color and contrast, pose correction, and require lengthy training times, making them unsuitable for real-time applications.

Innovation Solution

A system utilizing a Guided Generative Adversarial Network (GAN) with Delaunay Triangulation, Pyramid Blending, and Hessian aided error compensation to optimize face reconstruction and swapping, enabling real-time face swapping without explicit training on the faces.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If Generative Adversarial Networks are used for face swapping, then the realism of the swapped face is improved, but the training time increases significantly making it unsuitable for real-time applications

Engineering Contradiction:
Improverealism of swapped faceVSAvoidtraining time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-processing the source and target images through face detection, alignment, and feature extraction before the actual swapping operation. This preparation work is done in advance to enable faster real-time processing during actual use, reducing the computational burden during the swapping operation itself

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates a composite face by copying and combining features from the source face (identity characteristics) and target face (appearance characteristics). Instead of training a GAN model from scratch, the system copies relevant facial features and synthesizes a new face that combines these copied elements, achieving realistic results without extensive training

Inventive Principle:
Principle #26Copying

2Adaptability or versatility

If face swapping is performed with different lighting and background conditions, then the adaptability of the system is improved, but the color and contrast differences between swapped region and target face increase

Engineering Contradiction:
Improvehandling of varying lighting and backgroundsVSAvoidcolor and contrast consistency
Core Design Contradiction:
Adaptability or versatilityVSManufacturing precision

Solution Approach 1:

The system applies local quality adjustments by performing color matching and contrast normalization specifically on the swapped facial region. Instead of processing the entire image uniformly, the system identifies the swapped region and applies targeted adjustments to match the lighting conditions and color characteristics of the target face, ensuring local consistency while maintaining overall adaptability

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system changes parameters such as color balance, brightness, and contrast of the swapped region to match the target face's lighting conditions. By adjusting these parameters dynamically based on the target image characteristics, the system maintains color and contrast consistency across varying lighting and background conditions

Inventive Principle:
Principle #35Parameter changes

3Device complexity

If traditional face swapping methods are used, then the device complexity is reduced, but the ability to handle pose correction and occlusions is insufficient

Engineering Contradiction:
Improvesystem simplicityVSAvoidpose correction and occlusion handling
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The system segments the face into multiple key regions (eyes, nose, mouth, cheeks) and processes each region separately to handle pose variations and occlusions. By dividing the complex face swapping task into smaller regional operations, the system can apply specific transformations to each segment, improving reliability in handling diverse poses and occlusion scenarios while maintaining manageable system complexity

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20230237778A1Real time face swapping system and methods thereof
Publication Date: 2023.07.27 JIO PLATFORMS LTD
  • US20230237778A1 patent drawing
  • US20230237778A1 patent drawing
  • US20230237778A1 patent drawing

AI summary

The present invention provides a robust and effective solution to an entity or an organization by enabling them to implement a system for swapping one or more faces without any explicit training on the one or more faces. The proposed method can be further implemented in real time.