Face Swapping via Pose Bin Alignment and Candidate Selection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods fail to effectively address the issue of privacy concerns in digital images by not providing efficient mechanisms for face de-identification or swapping, especially when faces are undesirable due to factors like closed eyes, non-smiling, or unfavorable angles.

Innovation Solution

A face swapping system that uses face detection, pose bin alignment, and candidate face selection based on pose, resolution, and color limits to create realistic face-swapped images by aligning detected faces with generic faces from a library, adjusting color and lighting, and combining face portions from different images.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If face detection and swapping mechanisms are implemented, then privacy protection and user control over digital images are improved, but device complexity and processing requirements increase

Engineering Contradiction:
Improveprivacy protectionVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The face swapping system is divided into distinct functional modules: face detection module, pose bin identification module, candidate face selection module, and image synthesis module. Each module handles a specific aspect of the face swapping process, making the overall complex system manageable and maintainable while providing robust privacy protection functionality

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A generic face library serves as an intermediary between the detected face and the final swapped image. The system selects candidate faces from this pre-prepared library based on pose, resolution, and color matching, rather than generating faces from scratch or requiring manual selection, thus reducing real-time processing complexity while maintaining privacy protection effectiveness

Inventive Principle:
Principle #24Intermediary (Mediator)

2Manufacturing precision

If multiple candidate faces are selected and processed, then the quality and realism of face-swapped images are improved, but processing time and computational resources increase

Engineering Contradiction:
Improveface swapping qualityVSAvoidprocessing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

Candidate faces are pre-processed and organized into pose bins during system initialization or offline preparation. This preliminary organization allows the runtime system to quickly retrieve and select appropriate candidate faces based on the detected face's pose, resolution, and color characteristics, reducing real-time processing time while maintaining high face swapping quality through multiple candidate evaluation

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system adjusts multiple parameters including pose angle thresholds, resolution matching criteria, and color space tolerances to balance quality and processing speed. By dynamically adjusting these parameters based on input image characteristics and processing requirements, the system can maintain high face swapping quality while optimizing processing time for different scenarios

Inventive Principle:
Principle #35Parameter changes

3Stability of the object's composition

If face alignment to generic faces is performed, then the consistency and realism of swapped faces are improved, but measurement precision requirements and processing complexity increase

Engineering Contradiction:
Improveface consistencyVSAvoidpose detection precision
Core Design Contradiction:
Stability of the object's compositionVSMeasurement precision

Solution Approach 1:

The face alignment process focuses on matching specific local features (eyes, nose, mouth positions) rather than requiring perfect global alignment. The pose bin system categorizes faces based on key landmark positions, allowing for local feature matching that maintains face consistency while reducing the overall precision requirements compared to pixel-perfect alignment approaches

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS8472722B2Methods, systems, and media for swapping faces in images
Publication Date: 2013.06.25 THE TRUSTEES OF COLUMBIA UNIV IN THE CITY OF NEW YORK
  • US8472722B2 patent drawing
  • US8472722B2 patent drawing
  • US8472722B2 patent drawing

AI summary

Methods, systems, and media for swapping faces in images are provided. In some embodiments, a detected face and face data corresponding to an input image is received. A pose bin associated with the detected face is then identified based on the face data. Next, the detected face is aligned to a generic face associated with the pose bin. At least a portion of a candidate face associated with the pose bin is selected. The at least a portion of the candidate face is then copied to a copy of the input image that is aligned with the generic image to form a swapped-face image. The swapped-face image is next aligned to the input image to form an output image, and then the output image is outputted to a display.