Giter Site home page Giter Site logo

face_effect's Introduction

Welcome to face_effect!

I've always thought instagram/tiktok blur face effect is very aesthetic. I decided to create it myself, and the end result is in this repo, and you can use it yourself! Here it goes some results:

Original         Processed

Original         Processed

How to use it?

First you need to clone and install the project.

git clone https://github.com/mtxslv/face_effect
cd face_effect
poetry install .

Cast a shell to access the dependencies

poetry shell

Once this is done, you can interact with the effect via CLI. There are two main ways of doing so:

  • Webcam (real-time processing)
  • Image folder (batch processing)

The simplest CLI call opens your webcam and lets you see the full effect: blur + greyscale. To do so, just run:

python face_effect/cli.py

If you wanna see the effect in normal colors, just turn off the greyscale:

python face_effect/cli.py --e none

Now let's apply it on an image batch.

python face_effect/cli.py --s path

The terminal will ask you to input a valid full path. Once you do so, it asks an output path (another folder) to save the process images. If you want to save the images in the same place, just type a dot.

Limitations

The way the code is structured, it supposes only one person is visible. Tests with more than just one person were not performed.

The deep learning model employed has its own limitations. To know about them, refer to its Model Card here.

References

Code

Face Detections based on this example.

Test images

face_effect's People

Contributors

mtxslv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.