Skip to content

Pipeline to do headswap using face segmentation and face landmarks

License

Notifications You must be signed in to change notification settings

ramgendeploy/headswap-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation and required libs

pip3 install opencv-python
sudo apt-get install libsm6 libxrender1 libfontconfig1
pip install opencv-contrib-python pip3 install -r requirements.txt \

Usage

result = headTransfer.Swap(
source_path='./tests/source_1.jpg', 
ref_path='./tests/target_img.jpg', 
headless_path='./tests/headless_template.jpg',
)
cv2.imwrite("./tests/test_result.jpg", result)

About

Pipeline to do headswap using face segmentation and face landmarks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published