Snap your fingers and vanish from the video call. It detects the gesture and the sound in real time, erases you from the video with one of 14 effects and sends the result to a virtual camera that works in Meet, Zoom, Teams or OBS.
Four of the effects, rendered with the project's actual code.
The challenge
Making a person disappear from live video takes three things at once: knowing which pixels are the person, knowing what was behind them, and drawing the transition without freezing the call. All on a laptop CPU, at 30 frames per second.
Robust trigger: the snap is confirmed by the camera (thumb and middle finger together) and the microphone (a sharp sound) at the same time, so random noise doesn't fire it.
Background: captured from the empty room or learned as you move. What was never seen is rebuilt by copying real room texture (exemplar-based completion), not by stretching edges.
Effects as plugins: each effect is a class that inherits from Vanish and registers itself with a decorator; the base handles states, background, particles and physics.
Technical decisions
I tried LaMa (an inpainting neural network) to fill the background: with person-sized holes it left a person-shaped shadow, took 3–4 s on CPU and weighed 208 MB. I dropped it for a classical method that works better here.
The slow fill (~2 s) runs in the background while a fast one is used, so the video never stalls.
Blurry layers (flames, smoke, glows) are computed at 1/4 resolution to keep every frame under 25 ms.
Quality
Every effect has automated tests that run the full cycle (vanish → invisible → reappear) and check that no trace of the person is left. They run on GitHub Actions with Python 3.10 and 3.12.