Skip to content

breathingcyborg/mediapipe-face-effects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages