Real-time Face Tracking in Minecraft
Real-time Face Tracking in Minecraft
How Minecraft Webcam transforms your face into a blocky avatar.
The Concept
Your webcam sees your face. Minecraft Webcam tracks it and renders a Minecraft character that mirrors your expressions and head movements. The result: a Minecraft version of yourself, animated in real-time.
How Face Tracking Works
MediaPipe Face Mesh detects 468 facial landmarks at 30 FPS. From these landmarks, the system calculates:
- Head pitch — Looking up/down (from nose position relative to eyes)
- Head yaw — Looking left/right (from nose position relative to face center)
- Head roll — Tilting (from line between eyes)
- Blink detection — Eye aspect ratio from landmark distances
- Mouth openness — Vertical distance between lip landmarks
Rendering the Avatar
Minecraft skins are 64x64 PNG files. The renderer: