Skip to content

burningion/snapchat-lens-effect-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Snapchat Lens Effect in Python

This is the companion repository for the blog post at makeartwithpython.com.

Architecture

Lens Architecture

Usage

You'll need to download the shape_predictor_68 from dlib-models and unzip it in this directory first.

After, you should be able to just pass in the location of that predictor to the Python3 program as a command line argument like so:

$ python3 eye-glitch.py -predictor shape_predictor_68_face_landmarks.dat 

... and by pressing 's' to enable the eye snake, you'll end up with something like this:

Image like this

See the full post at https://www.makeartwithpython.com/blog/building-a-snapchat-lens-effect-in-python/

About

Recreating real time face effects in Python with Dlib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages