Article

How AI Background Removal Actually 'Sees' a Photo

Published 2026-09-14

The old way: tracing edges

Before machine learning became practical for this, background removal tools worked by detecting hard edges and color boundaries — essentially guessing where a subject ends and the background begins based on contrast. This worked reasonably well for a product photographed on a plain white background, but broke down badly on a busy or low-contrast background, or anywhere the subject's edge wasn't a clean, high-contrast line.

The modern way: a per-pixel probability prediction

A modern AI segmentation model takes a completely different approach: instead of tracing edges, it was trained on a large number of example photos where humans had already marked exactly which pixels belonged to a person, and it learned to recognize the visual patterns — skin tone, hair texture, clothing shapes, typical body proportions — that distinguish a person from everything else, regardless of what's actually behind them.

Confidence, not a hard yes/no

The model's actual output for each pixel isn't a simple "person" or "not person" label — it's a confidence score between 0 and 1, representing how certain the model is. A pixel deep inside a face might score 0.99, while a wispy strand of hair at the very edge might score 0.4, reflecting genuine visual ambiguity. Using that confidence value directly to control transparency (rather than forcing every pixel to a hard in-or-out decision) is exactly what produces the softer, more natural-looking edges around hair and other fine detail.

Why it still runs entirely in your browser

Running this kind of model traditionally required a server with real computing power, meaning photos had to be uploaded somewhere for processing. Modern browser technology (WebAssembly) now lets a pre-trained model run directly on your own device at reasonable speed, which is what lets a tool like this remove a photo's background without the image ever leaving your computer.

Try it yourself

Our Remove Background tool uses exactly this approach — Google's open-source MediaPipe person-segmentation model, running entirely on your device.

Ready to try it yourself?
Open the Remove Background →