Skip to content

unwraps your face into a 2D image from a video. I made this after watching William Osman's video on YouTube

License

Notifications You must be signed in to change notification settings

0jk6/Face-Unwrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face-Unwrap

unwraps your face into 2D image from a video

What this script is going to do?

This script will take in a video file and extract every frame from it and save it into a folder called "frames". Then it will take all the extracted frames from the "frames" folder and crop them into 1 pixel width without changing its height and saves them into "framecrop" folder Now, all the cropped frames are combined to form an image that will unwrap your face

What type of video is better?

For best results, use mp4 format video video should be 360 degrees showing your head(I already included a video head.mp4, every video should be of that type)

Requirements:

OpenCV PIL

NOTE:

There are two files named "deleteme.txt", you need to delete them first in order to use the code.

Everytime you want to create a new composite image, you must delete all the cropped and extracted frames from "frames" and "framecrop" folders.

Also, you need to change the path in pixelcrop() function. I'm too lazy to do it but I might add it later. That's all for this.

About

unwraps your face into a 2D image from a video. I made this after watching William Osman's video on YouTube

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages