Webcam to Live ASCII Art in the Browser, Nothing Uploaded

AI products · Creator, sole engineer · live

Real-time video-to-ASCII demos usually upload frames to a server, which is both slow and a privacy problem for a webcam feed.

Open: https://ascii-real-time.vercel.app

The detail

This runs entirely in the browser with no build step. Camera frames sample to an offscreen canvas at a dynamic grid size, and each cell's brightness maps to a character from the active palette.

Two details make the output good rather than mushy. Brightness uses perceptual luminance weighting rather than averaging the colour channels, so the mapping matches how the eye actually sees. And emoji mode caches each glyph as a bitmap, because emoji have inconsistent advance widths that would otherwise destroy the grid alignment.

Optional background removal runs client-side too. All processing stays in-browser - the video never leaves the device.

Vanilla JavaScript, Canvas API, MediaPipe.

What I did

  • Built real-time frame sampling and character mapping with no build step at all
  • Used perceptual luminance weighting rather than a naive channel average for accurate brightness mapping
  • Implemented per-glyph bitmap caching to keep emoji output aligned despite inconsistent character widths
  • Integrated optional background segmentation running entirely client-side
  • Kept all processing in-browser so video never leaves the device

Stack

JavaScript, Canvas API, MediaPipe, Computer Vision, Image Processing

Case study: https://www.siddhvasudev.com/projects/webcam-to-live-ascii-art-in