Skip to content

deconstructed & resynthesized textures (Python, OpenCV, NumPy)

Notifications You must be signed in to change notification settings

xaliceli/eternal-face

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eternal-face

Overview

Collection of tools to generate artistically interesting distortions of facial image inputs. Renders human portraits and abstract patterns in synthesized, patch-based textures. Texture synthesis algorithm is implemented from Efros & Freeman (2001).

The full pipeline allows the user to take a facial image, deconstruct it into regions either equidistant or distinguished by feature points, and render the image in a synthesized texture based on these deconstructed regions.

Individually there are also functions for facial averaging, facial warping, and texture synthesis/transfer for any source image.

Examples

Averages

Facial Average #1 Facial Average #2
avg1 avg2

Texture Synthesis

Synthesized Texture #1 Synthesized Texture #2
texture1 texture2

Texture Transfer

Transfer #1 - Larger Window Size Transfer #2 - Smaller Window Size
transfer1 transfer2
Transfer #3 - Larger Window Size Transfer #4 - Smaller Window Size
transfer3 transfer4

Requirements

  • python 2.7.14
  • dlib 19.1
  • imageio 2.4.1
  • numpy 1.15.4
  • opencv 2.4.13

About

deconstructed & resynthesized textures (Python, OpenCV, NumPy)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages