real-time face detection experiment using WebRTC and canvas. cyberpunk aesthetic with japanese influences.
adapted from wesbos/HTML5-Face-Detection
- real-time face detection via webcam
- visual effects: mesh overlay, glitch mode, color inversion
- neon cyberpunk UI with CRT effects
- fps counter and face tracking
clone and serve locally:
git clone https://github.com/eznj/face-detection.git
cd face-detectionthe app needs to run on localhost or https for camera access:
# using python
python -m http.server 8000
# or using node
npx servethen open http://localhost:8000 in your browser.
- GLASSES - toggle groucho marx overlay
- MESH - enable detection grid
- GLITCH - chromatic aberration effect
- INVERT - invert colors
- modern getUserMedia API
- ES6+ javascript
- CCV.js for face detection
- canvas 2D API
requires modern browser with webcam support. works best in chrome/firefox/edge.