← Back to Studio

FaceFilter AR

Face-controlled AR game using real-time facial landmark tracking.

Intro

FaceFilter AR is a browser-based augmented reality experiment where facial gestures control gameplay. Using MediaPipe FaceMesh, the system tracks facial landmarks in real time and detects when the player opens their mouth to catch falling objects.

The project explores how computer vision can be used as a natural input interface for playful human-computer interaction directly in the browser.

Live Demo

Try the game directly in your browser. Allow camera access and catch the falling items using your mouth.

Launch Demo →

Camera permission is required for the demo.

System

Webcam
MediaPipe FaceMesh
Lip Landmark Tracking
Game Logic
Canvas Rendering

The system tracks facial landmarks and measures the distance between lip points to detect when the mouth is open. This gesture becomes the interaction mechanism used to catch falling items in the game.

Tech Stack

  • MediaPipe FaceMesh
  • WebRTC Webcam
  • HTML Canvas Rendering
  • JavaScript Game Logic
  • Web Audio API

Approach

The main challenge was connecting real-time facial tracking with responsive gameplay mechanics. The system continuously analyzes mouth movement and calculates proximity between the detected mouth position and falling objects rendered on the canvas.

Difficulty increases dynamically by adjusting spawn rate and object speed as the player's score increases.

Outcome

The result is a playful AR interaction where users control gameplay entirely through facial gestures. The project demonstrates how browser-based computer vision can enable lightweight augmented reality experiences without requiring native applications.