This source code is the implementation of the paper under title:

Video Face Replacement System Using a Modified Poisson Blending Technique

http://ieeexplore.ieee.org/document/7024453/

So if you will use this code, please cite the original paper.

Watch the video:

https://www.youtube.com/watch?v=sVP5kSt8LuM

Run the demo of the software using>>demoBe sure, the dataset located in the root folder of the source code folder "../dataset".If you need to apply the software to your own videos, you must:1- Convert the videos into sequnce of frames, see the dataset.2- Target video frames should be in the format %5d.jpg and start from frame 00000.jpg3- Source video frames should be in the format %5d.png and start from frame 00000.png4- Source video frames should be stabilized first using, stabilizing function5- Convert the stabilized frames of the source actor into png frames that contain the interesting region of the actor.Notes:- The stabilized frames should have alpha channel to be used for extracting the mask.- Adjust the cropped interesting region frames for getting your desirable results.- See the dataset "target folders".

Citation

Afifi, Mahmoud; Hussain, Khaled F.; Ibrahim, Hosny M.; Omar, Nagwa M., “Video Face Replacement System Using a Modified Poisson Blending Technique,” Intelligent Signal Processing and Communication Systems (ISPACS), 2014 International Symposium on , vol., no., pp.205,210, 1-4 Dec. 2014