a disguise for video calls

Mosaic Mask

Your face, as a shifting mosaic of strangers

Every part of your face (eyes, brows, nose, mouth, cheeks, chin, forehead) comes from a different person and keeps changing, so nobody on the call ever sees one face. It follows you as you talk, turn and frown, and goes to Zoom, Teams, Discord or Meet as an ordinary camera. The strangers are AI-generated people who don't exist.

MediaPipe Face MeshOpenCVOBS Virtual Cameravoice changer 30 fps on a CPUC++ (Atelier)Python
A face on the left, the same face on the right as a shifting mosaic of strangers

The scramble suit

Inspired by the scramble suit in A Scanner Darkly by Philip K. Dick (the 1977 novel, and Richard Linklater's 2006 film of it): the undercover agents' disguise, a shroud that shows a constantly shifting blur of thousands of different people's faces and bodies, so the wearer is nobody in particular. Mosaic Mask does the face, live, on a webcam.

What it looks like

Each row is one face: as the camera sees it, then as the mosaic half a second, a second and a second and a half later. Every piece follows the face's own shape, and every piece changes on its own timer, so the face never settles. Click to enlarge.

Four faces, each as the camera sees it, then as the mosaic at three moments half a second apart

Use it

  1. Mosaic Mask 2 (C++, part of Atelier): download MosaicMask-win64.zip from Releases, unzip it, run install.bat. It comes with 27 AI-generated faces. Or the Python version:
  2. Put face images in faces/ (the repo comes with 27).
  3. Start run.bat (or run.ps1, run.sh). The first time it sets itself up: Python 3.11 with MediaPipe, OpenCV and pyvirtualcam.
  4. In your call, pick the camera OBS Virtual Camera. OBS Studio must be installed for its virtual camera; it doesn't have to be running.

Keys

Mmosaic on / off
Oocclusion on / off: hands, hair, a cup stay in front
Avoice: off, female, male, disguise
Vvirtual camera on / off
Crecord: picture and voice to recordings/
Rreload faces/
Q Escquit

Sliders

fragmentshow many pieces the face is cut into
swap mshow often each piece changes to someone else
fade mshow long a piece blends into the next face
colour %how much the mosaic takes on your skin tone

The voice

Press A to cycle your voice. Female and male take your pitch to a woman's (about 210 Hz) or a man's (about 115 Hz), the formants with it; disguise lets pitch and formants drift slowly at random, so you sound like nobody in particular. It's a phase vocoder on one continuous stream, about a tenth of a second behind, on the CPU. The voice reaches your call through VB-Audio Virtual Cable: pick CABLE Output as the microphone.

The faces

The more there are, the less any one of them shows: 100 or more is good. Generate them rather than using photos of real people: a disguise made of real people's faces isn't fair on them. What works best: looking at the camera, the whole face visible, even light, a neutral face or a slight smile, and every age, skin tone and gender. The mix is the point.

How it works

1

The face pool

Every face in faces/ is read once: MediaPipe Face Mesh finds 468 points on it, and it's unwrapped onto one shared layout, so a piece of any face lines up with the same piece of any other.

2

The mosaic

The shared face is cut into a patchwork around the eyes, brows, nose, mouth, cheeks, chin, jaw and forehead. Each piece shows a different face and swaps to a new one on its own timer, blending as it goes.

3

Onto you

Every frame, Face Mesh finds your face and the patchwork is warped onto it triangle by triangle, so the borrowed mouth moves with yours. Its colour leans towards your skin, its edge melts into your head.

4

Out

The finished frame goes to OBS's virtual camera, about 30 times a second at 720p, on the CPU: only the face's box is worked on.

Minimum requirements

SystemWindows 10 or 11, 64-bit; Linux for the Python version
Processorany 64-bit processor (about 30 fps at 720p on the CPU)
Memory4 GB RAM
Graphicsno GPU needed
Disk250 MB (Mosaic Mask 2); about 1 GB for the Python version
Othera webcam; VB-Audio Virtual Cable for the voice on calls