Skip to content

(Old college project) Application for automatically tweaking a photo of a face, e.g. adding beard, changing eye color, making it smile

Notifications You must be signed in to change notification settings

victorvianna/face-tweaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceTweaking

Scalable application for tweaking a photo of a face. Ex: Adding beard, changing eye color, making her smile

Eye color changing
Beard addition

Keywords: Image morphing, seamless cloning, factory design pattern

Authors

Cauim de Souza Lima
Gabriel Fedrigo Barcik
Victor Hugo Vianna

Requirements

Java 1.8
OpenCV 3.2
JavaFX

Instructions

Setup the JAVA_HOME environment variable. To compile, open a shell and run

$ ./COMPILE.sh

To start the application, add the desired image file as image.jpg (jpg, not jpeg) to the project root, open a shell and run

$ ./RUN.sh

Choose which tweak you want to apply and the option (Ex: Change eye color / Blue eyes).
Important: After the tweaked image is shown, PRESS SPACE TO CONTINUE. Do not close the image!

Scalability: Implementing new features

To implement a new feature, it suffices to create a new folder in lib/features that contains YourClass.h/YourClass.cpp (inheriting from BaseFeature) and a 'media' directory with the images you will use during the morphing. You also need to adapt engine/main.cpp accordingly.

Acknowledgements

https://github.com/spmallick/learnopencv

About

(Old college project) Application for automatically tweaking a photo of a face, e.g. adding beard, changing eye color, making it smile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •