Minecraft Webcam
Minecraft Webcam
Real-time face tracking that transforms your webcam feed into a Minecraft character with facial animations. Eyes blink when you blink, mouth opens when you talk.
Features
- Real-time Face Tracking — 30 FPS with 468 facial landmarks via MediaPipe
- Head Movement — Pitch (up/down), yaw (left/right), roll (tilt)
- Facial Animations — Eyes blink automatically, mouth opens when talking
- Custom Skins — Supports any standard Minecraft skin (64x64 format)
- Animated Skin Support — Create custom facial expressions stored in unused texture space
- Virtual Camera Output — Use the avatar in video calls or streaming (via OBS)
- System Tray Integration — Runs minimized while active
Technical Highlights
- MediaPipe Face Mesh — 468 3D facial landmarks
- Minecraft Skin Parser — Exact specification compliance (64x32 and 64x64)
- Perspective-correct rendering — Smooth 60 FPS UI updates
- Unused texture space — Rows 32-40 store custom animations
- Depth sorting — Painter’s algorithm for proper rendering order
Tech Stack
| Component | Technology |
|---|---|
| Face Tracking | MediaPipe Face Mesh |
| Image Processing | OpenCV |
| GUI | Tkinter |
| Virtual Camera | pyvirtualcam |
| Platform | Windows |
How It Works
- MediaPipe detects 468 facial landmarks at 30 FPS
- Head rotation calculated from nose and eye positions
- Minecraft skin texture mapped to 3D quad with perspective correction
- Avatar output sent to virtual camera for use in other apps