
Face detection vs face recognition is the difference between “there is a face here” and “this face belongs to Maria.” Detection finds faces in an image. Recognition works out whose face it is.
The two are easy to confuse, because recognition always starts with detection. But they carry very different privacy risks and are treated differently by the law. This guide explains how each works, where you meet them and why the line between them matters.
Face detection vs face recognition at a glance
| Area | Face detection | Face recognition |
|---|---|---|
| Question answered | Is there a face, and where? | Whose face is this? |
| Output | A box around each face | A name, an ID or a match score |
| Needs a database of faces | No | Yes, at least one stored face |
| Identifies a person | No | Yes |
| Everyday examples | Camera focus, photo filters, people counting | Phone unlock, airport gates, photo tagging |
| Treated as biometric data under GDPR | Usually not on its own | Yes, when used to identify someone |
What is face detection?
Face detection scans an image and marks where faces are. It looks for patterns such as two eyes above a nose and mouth. It does not know or care who the person is.
Fast detection became practical in 2001, when Paul Viola and Michael Jones published a real-time object detection method that worked on ordinary computers. Modern detectors use deep learning, but the job is the same.
You use face detection many times a day. Your phone camera finds faces to set focus and exposure. Video calls use it to blur or replace your background. Shops sometimes use it to count visitors without knowing who they are.
How detectors find faces
A modern detector scans the image at many sizes and positions. For each region it outputs a score for how likely it is to be a face. Regions above a threshold get a box.
Many detectors also mark landmarks, such as the corners of the eyes, the tip of the nose and the corners of the mouth. Those points let filters stick glasses on your face or let a recognition system line the face up before measuring it.
What is face recognition?
Face recognition goes further. It takes a detected face, measures its features and turns them into a template, which is a set of numbers. It then compares that template with stored ones to find a match.
There are two kinds of recognition. Verification is a 1:1 check, such as unlocking your phone. Identification is a 1:N search, such as a police system comparing a photo with a database. Our guide to face recognition apps covers the everyday verification side.
The middle ground: face analysis
Between detection and recognition sits a third job, face analysis. It looks at a detected face and estimates something about it, such as age, expression or whether the eyes are open. It still does not say who the person is.
NIST runs this as its own test program, the Face Analysis Technology Evaluation. In its framing, recognition asks who is in an image, while analysis asks what can be said about the face in it. Its first public age estimation report, published in May 2024, tested six algorithms and found a wide range in performance.
Age checks are the best known example. Some apps and websites now estimate your age from a selfie instead of asking for ID. That is analysis, not recognition, though it raises its own questions about accuracy and fairness.
How face detection vs face recognition differ in practice
Data kept
A detection-only system can discard each image after counting or focusing. A recognition system must keep templates of known faces, or it has nothing to compare against. That stored data is the main privacy risk.
Accuracy questions
Detection errors mean a face is missed or a shadow is counted as a face. Recognition errors are more serious: a false match can point to the wrong person. A 2019 NIST study of 189 algorithms found that many made more false matches for some demographic groups.
Consent
Detection usually happens without anyone being identified, so consent questions are lighter. Recognition links a face to a person, which in many places needs a legal basis or clear consent.
Why the law treats them differently
Under the EU’s GDPR, biometric data means data from specific technical processing that can confirm or establish a person’s unique identity. A photo with a face box usually does not meet that test. A face template used to identify someone does.
The EU AI Act draws similar lines. It defines biometric identification as recognizing people by comparing their data with a reference database. It treats biometric categorisation, such as sorting faces by age or hair color, as a separate category with its own rules.
That is why some companies switch off recognition but keep detection. In 2021, Meta announced it would shut down Facebook’s face recognition system and delete more than a billion templates. Its alt text feature kept counting faces in photos but stopped naming people.
Where you meet each one
- Phone camera: detection for focus. Face unlock is recognition.
- Social media filters: detection and landmark tracking. No identity needed.
- Photo apps that group people: recognition, often run on your device.
- Airport gates: recognition against your passport photo. See our guide to airport face recognition.
- Store cameras: could be either. People counting is detection, while watchlist alerts are recognition.
Security cameras are where the line matters most. Our guide to CCTV facial recognition explains what changes when a camera moves from detecting faces to identifying them.
Face detection vs face recognition scorecard
| Area | Face detection | Face recognition |
|---|---|---|
| Privacy risk | Low to moderate | High |
| Needs enrolment | No | Yes |
| Hardware needed | Any camera | Any camera, plus storage and matching software |
| Legal requirements | Lighter | Heavier: consent, notices, impact assessments in many places |
| Value for security | Counting, alerts for motion | Access control, finding known people |
The debate
Supporters of recognition point to convenience and safety: faster boarding, phone security and finding missing people. Critics say the same technology enables tracking without consent, and that errors fall unevenly.
Detection raises fewer concerns, but not none. Some argue that counting and analyzing faces still feels like surveillance to the people being watched. For a wider look, see our comparison of face recognition vs fingerprint.
FAQ
What is the difference between face detection and face recognition?
Face detection finds faces in an image. Face recognition identifies or verifies who those faces belong to by comparing them with stored faces.
Is face detection a form of biometrics?
Not on its own. It does not identify anyone. It becomes part of a biometric system when it feeds a recognition step.
Does face unlock use detection or recognition?
Both. The phone first detects your face, then recognizes it by matching it with the face you enrolled.
Can face detection tell age or emotion?
Some systems estimate age, expression or gender from a detected face. That is called face analysis or categorisation, and EU law treats it as its own category.
Is face recognition legal?
It depends on where and how it is used. Many countries allow it with consent for things like phone unlock, but restrict it in public spaces.
Questions for readers
- Should shops have to tell customers whether their cameras detect faces or recognize them?
- Is face detection for people counting acceptable if no images are stored?
- Should face recognition always be opt-in, even for convenience features?
Sources
- Viola and Jones, Rapid Object Detection using a Boosted Cascade of Simple Features (CVPR 2001)
- NIST, Face Recognition Vendor Test Part 3: Demographic Effects
- GDPR Article 4(14), definition of biometric data
- EU AI Act, Recital 15
- EU AI Act, Recital 16
- Meta, An Update on Our Use of Face Recognition (November 2021)
- NIST IR 8525, Face Analysis Technology Evaluation: Age Estimation and Verification (2024)
- NIST, FATE Age Estimation and Verification

