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.

Use it
- Mosaic Mask 2 (C++, part of Atelier): download
MosaicMask-win64.zipfrom Releases, unzip it, runinstall.bat. It comes with 27 AI-generated faces. Or the Python version: - Put face images in
faces/(the repo comes with 27). - Start
run.bat(orrun.ps1,run.sh). The first time it sets itself up: Python 3.11 with MediaPipe, OpenCV and pyvirtualcam. - 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
| M | mosaic on / off |
| O | occlusion on / off: hands, hair, a cup stay in front |
| A | voice: off, female, male, disguise |
| V | virtual camera on / off |
| C | record: picture and voice to recordings/ |
| R | reload faces/ |
| Q Esc | quit |
Sliders
| fragments | how many pieces the face is cut into |
| swap ms | how often each piece changes to someone else |
| fade ms | how 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
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.
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.
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.
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
| System | Windows 10 or 11, 64-bit; Linux for the Python version |
|---|---|
| Processor | any 64-bit processor (about 30 fps at 720p on the CPU) |
| Memory | 4 GB RAM |
| Graphics | no GPU needed |
| Disk | 250 MB (Mosaic Mask 2); about 1 GB for the Python version |
| Other | a webcam; VB-Audio Virtual Cable for the voice on calls |
