Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1013 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 1013 Bytes

Modified Laplacian Pyramid Blending

Implementation of Image Blending from High-Resolution Neural Face Swapping for Visual Effects

Usage

import cv2
import numpy as np
from laplacian_pyramid_blend import LaplacianPyramidBlender

img1 = cv2.imread("./images/west_1.jpeg")
img2 = cv2.imread("./images/west_2.jpeg")
mask = cv2.imread("./images/mask.png")

blender = LaplacianPyramidBlender()

composite = blender(img1, img2, mask)

cv2.imwrite("./images/composite.png", composite)

Install

pip install laplacian-pyramid-blend

Citations

@inproceedings{Naruniec2020NeuralFaceSwap,
    title   = {High-Resolution Neural Face Swapping for Visual Effects},
    author  = {Jacek Naruniec, Leonhard Helminger, Christopher Schroers, Romann M. Weber},
    year    = {2020}
}