Giter Site home page Giter Site logo

breathingcyborg / mediapipe-face-effects Goto Github PK

View Code? Open in Web Editor NEW
45.0 3.0 12.0 30.09 MB

Realtime Face Effects in Browser using mediapipe and three js.

Home Page: https://breathingcyborg.github.io/mediapipe-face-effects/

HTML 0.18% JavaScript 99.16% CSS 0.66%
mediapipe-facemesh mediapipe computer-vision realtime try-on

mediapipe-face-effects's Introduction

Mediapipe Facemesh Effects

Realtime facemesh effects using mediapipe and Three JS. Works realtime even on older CPU like AMD Semprom 145.

Screenshot Screenshot Alt

Demo

Demo Link

Todo

  • add more face effects
  • make it work on older android phones

Building and running on localhost

Install dependencies:

yarn

Start development server:

yarn serve

Open localhost:8080

Preparing glasses 3d model.

When using custom 3d glasses make sure the model is oriented in the right way. You can use three js editor or other tools like gltfviewer to check or correct orientation of glasses.

Top View

Front View

Limitations

Face Transform Module is not available in facemesh javascript. So it does not give proper depth / z coordinates. So 3d effect look weird when using perspective camera.

While writing code to places objects relative to facemesh model, facemesh model UV visualization can be helpful.

mediapipe-face-effects's People

Contributors

breathingcyborg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mediapipe-face-effects's Issues

Hello!

Hi, I know this is not an issue, but can we have a quick chat?
I'm implementing a similar thing with webcam and i'm having some troubles.

Thanks in advance :)

Face morphing?

Interesting work. Do you have any ideas how can I do nose slimming effect? We have the facemesh, but not sure how to morph it to slim nose.

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.