Tag

Opencv

1 article tagged with "Opencv"

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

ComponentTechnology
Face TrackingMediaPipe Face Mesh
Image ProcessingOpenCV
GUITkinter
Virtual Camerapyvirtualcam
PlatformWindows

How It Works

  1. MediaPipe detects 468 facial landmarks at 30 FPS
  2. Head rotation calculated from nose and eye positions
  3. Minecraft skin texture mapped to 3D quad with perspective correction
  4. Avatar output sent to virtual camera for use in other apps