How Face ID turns a face into a depth map

A flat photograph contains color and texture, but not the face’s three-dimensional shape. TrueDepth uses infrared light to capture that shape: a dot projector casts a pattern of thousands of infrared points onto the face, and an infrared camera reads how the pattern falls across its contours. The system uses those distortions to build a depth map, alongside an infrared image.

Infrared light is invisible to the user and works in the dark, so Face ID does not depend on ordinary room lighting or a camera’s color picture. The important difference is not simply that the phone sees more facial detail; it measures spatial structure that a flat print cannot reproduce.

Why a photograph is not enough

During setup, the phone records a mathematical representation of the enrolled face. At unlock, it captures a fresh depth map and compares the new facial data with that representation. A photograph may resemble the person in two dimensions, but it lacks the changing depth pattern of a real face at the phone’s viewing distance. That makes a print or an image on a screen much harder to use than it was against older systems that relied mainly on a conventional camera.

This is a security check, not a scientific test that proves someone is biologically alive. Three-dimensional replicas are a different challenge, and no single sensor can make every possible impersonation impossible. Face ID combines depth sensing with other checks, including whether the user is looking toward the phone when attention detection is enabled.

The practical consequence

The system can authenticate a face without asking the user to pose for a visible photograph or turn on a bright light. Its infrared projector and camera do the measuring quietly, while the depth map makes a convincing flat image an inadequate key. That distinction—shape rather than just appearance—is what lets a glance replace a passcode in ordinary use.