Faceless 4 min read
Can a blurred face be unblurred? What AI can and can't do
Mostly, no. A strong blur or pixelation throws away the detail that makes a face recognisable, and AI unblur tools don't bring it back: they draw a new face that fits the blur. A blurred face can still give someone away, though. Software can match a lightly blurred face against photos of known people, and some effects, like a swirl, can be undone completely.
I made Faceless, a free Windows app that blurs, pixelates or blacks out faces in videos and photos. Here's what each method leaves behind, and the settings Faceless uses.
Why a blurred face can't be unblurred
Blurring replaces each pixel with an average of the pixels around it, and pixelation replaces each block of pixels with one colour. Either way, the fine detail is averaged away, and many different faces turn into the same blur. No program can tell which of them it started from.
Faceless pixelates with six blocks across the box it draws around a face, so the face itself ends up about four blocks wide: a handful of colours where there were thousands of pixels. Its blur reaches a fifth of the box's width and runs three times over, which comes close to a Gaussian blur of that size.
A blurry holiday photo is a different problem. Phone tools like Google Photos' Photo Unblur sharpen pictures that came out soft, and for faces they draw on other photos of the same person from your Face Groups (Google). They rebuild a face from pictures they already have, not from the blur.
What AI unblur tools really do
AI upscalers that promise to unblur a face generate one. PULSE, a 2020 research project from Duke University, searches a face generator for a sharp, realistic face that matches the blurry one when it's shrunk back down. Its authors are clear about the limits: PULSE makes imaginary faces of people who do not exist, and it can't identify anyone or reconstruct the original image (PULSE).
The result can look convincing, which is the danger. It's a guess that fits the blur, and many different real faces fit it equally well.
When a blurred face can still be recognised
Recognising a face is easier than rebuilding it. In 2016, three security researchers trained neural networks to identify faces that had been pixelated or blurred with YouTube's blur tool (McPherson, Shokri and Shmatikov). The networks didn't restore the faces. They learned from blurred and pixelated photos of a set of known people, and then picked out who was in new photos hidden the same way.
People also give themselves away around the face:
- Hair, ears and glasses that stick out beyond the blur. Faceless pads each box to cover them.
- Clothes, tattoos, a voice, a name badge, or the people standing next to them.
- A single frame of video where the blur slipped and the face shows.
- The place a photo was taken, stored in its metadata. Faceless removes it, GPS location included, from every photo it saves.
Swirls and twirls can be undone
In October 2007, Interpol asked the public to identify a man whose face had been hidden in photos with a digital swirl. Germany's Federal Criminal Police Office had unscrambled the swirl and rebuilt his face (The Register), and he was identified and arrested in Thailand (Interpol). A swirl moves pixels around without destroying them, so it can be run backwards. Blur and pixelation throw information away.
How to hide a face so it stays hidden
- For anything sensitive, use a solid black box. It replaces the face with black and leaves nothing to recover.
- If you blur or pixelate, use a strong setting that covers the whole head, hair and ears included.
- In a video, play the whole thing back and look for frames where a face shows.
- Check what's around the face: voices, name tags, number plates and captions.
- Never use a swirl, twirl or other distortion to hide a face.
Questions
Can AI unblur a face in a video?
It can draw a face that fits the blur, frame by frame. It can't recover the real face unless it already has other photos of that person to work from.
Is pixelation safer than blurring?
Both throw away detail, and both can be beaten by matching against known faces when the effect is light. Neither is as safe as a black box.
Can the police unblur photos?
No tool can restore detail a strong blur has thrown away. What investigators can do is match a face against photos of known people, or undo effects that only move pixels around, like the swirl in the 2007 case.
Is YouTube's face blur safe?
It hides a face from people watching. The 2016 study recognised faces blurred with YouTube's tool, though, so for footage where a face must not be recognised, use a black box before you upload.
Blur, pixelate or black out faces on your own PC with Faceless. For the steps, see how to blur faces in a video for free on Windows.