- Install dependencies
- Import dependencies
- Setup Webcam and canvas
- Define references to the webcam and canvas
- Load Facemesh
- Detect function
- Drawing utilities
- Load triangulation
- Setup triangle path
- Setup point drawing
- Add drawMesh to detect function
- @tensorflow/tfjs
- @tensorflow-models/face-landmarks-detection
- react-webcam
npm i @tensorflow/tfjs
npm i @tensorflow-models/face-landmarks-detection
npm i react-webcam
npm run start