GithubHelp home page GithubHelp logo

altunenes / part-whole Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 16.49 MB

Swap facial landmarks(or whole facial area) for the part-whole task with OpenCV + dlib and MediaPipe.

License: GNU General Public License v3.0

Python 100.00%
dlib mediapipe opencv face psychology neuroscience-methods part-whole

part-whole's Introduction

CodeFactor

Update for Media Pipe

Since dlib library is getting older, I edited main code and apply with the Media Pipe library. It's faster than dlib but I don't think it giving better results. I added faces that are processed with media pipe, so try both; and use the best result :)

Slayt1

Part-Whole

Swap facial landmarks for the part-whole task

The part-whole task is a well-known task among face researchers especially studying face processing. It has been developed by (Tanaka & Farah, 1993) https://doi.org/10.1080/14640749308401045.

This script provides you a realistic results with seamlessClone function.

In order to get clear results, use high-quality images as much as possible. But if you have low-quality faces you probably need to use some extra filter methods to edges (Gaussian is working well in most scenarios).

Referance for the trained detector: https://github.com/codeniko/shape_predictor_81_face_landmarks

Example for facial parts:

New Microsoft PowerPoint Presentation

(the leftmost is nose+mouth) TEST

testttt

Faces from: https://thispersondoesnotexist.com/

part-whole's People

Contributors

altunenes avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.