Skip to content

Real time webcam face detection, protect yourself from COVID19 with a virtual mask / The tribal marks are part of culture and are usually inscribed on the body by burning or cutting of the skin during childhood. The primary function of the tribal marks is for identification of a person's tribe, family or patrilineal heritage. Other secondary fun…

License

Notifications You must be signed in to change notification settings

OlaIsrael/Face-Mask-TRIBAL-MARKS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face-Mask

Image and Real time webcam face detection, protect yourself from COVID19 with a virtual face mask.

Utilize tensorflowjs facemesh model.

Live Demo

https://bensonruan.com/face-mask-for-trump-with-face-landmark-detection

mask-for-Trump

Installing

Clone this repository to your local computer

git https://github.com/bensonruan/Face-Mask.git

Point your localhost to the cloned root directory

Browse to http://localhost/index.html

Face Keypoints

The facemesh detected keypoints that used for overlay the mask:

  • Forehead : 10
  • Left Cheek : 234
  • Chin : 152
  • Right Cheek : 454

face-landmarks

Put Mask On

  • Click on 'Put Mask On' button to detect face on image and cover by mask
  • Turn on the Webcam switch and allowing the browser to access your webcam
  • Wait for a few seconds to Load Model for face landmark detection
  • Choose the face mask you would like to try on, watch yourself cover up

facemesh-mask-demo

Notes

  • Please note that on iOS Safari, cameras can only be accessed via the https protocol
  • Facemesh model is designed for front-facing cameras on mobile devices, where faces in view tend to occupy a relatively large fraction of the canvas. MediaPipe Facemesh may struggle to identify far-away faces.

Library

  • jquery - JQuery
  • webcam-easy.js - javascript library for accessing webcam stream and taking photos
  • facemesh - MediaPipe Facemesh is a lightweight machine learning pipeline predicting 486 3D facial landmarks to infer the approximate surface geometry of a human face

About

Real time webcam face detection, protect yourself from COVID19 with a virtual mask / The tribal marks are part of culture and are usually inscribed on the body by burning or cutting of the skin during childhood. The primary function of the tribal marks is for identification of a person's tribe, family or patrilineal heritage. Other secondary fun…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.5%
  • HTML 24.2%
  • CSS 20.3%