Skip to content
Technology

The Difference Between Face Detection and Face Recognition

Face detection vs face recognition: face detection finds where faces are in a photo, and face recognition works out whose face it is, or who it looks like. They're separate steps with separate models, and detection always comes first. Ollie uses YuNet to detect your face and five landmarks, aligns it, and only then runs its own recognition network to find your celebrity lookalike.

The Ollie teamSeptember 17, 2026 · 3 min read
Illustration of a phone projecting a 3D face mesh
Image: mikemacmarketing, CC BY 2.0, via Wikimedia Commons (resized)

Two Different Questions

Face detectionFace recognition
QuestionIs there a face, and where?Whose face is this, or who does it look like?
OutputBoxes and landmark pointsAn embedding or a name
Needs to know anyone?NoYes, a gallery of known faces to compare with
Everyday exampleThe yellow box on your camera screenFace ID unlocking your phone
Privacy riskLow on its ownHigher, because it links faces to identities

They run in order. Recognition can't start until detection has found a face and marked where its eyes, nose and mouth are.

How Face Detection Evolved

Viola-Jones (2001)

Paul Viola and Michael Jones built the first detector fast enough for real time on ordinary hardware. It scanned the image for simple light-dark patterns (the eye region is darker than the cheeks; the bridge of the nose is lighter than the eyes) using thousands of tiny tests arranged in a cascade, so most of the image was rejected after a few quick checks. It powered the face boxes on digital cameras for years, but struggled with turned heads and poor light.

Deep learning detectors

From around 2015, neural networks took over. MTCNN (2016) used a cascade of three small networks and also predicted five landmarks. RetinaFace (2019), from the same InsightFace team behind ArcFace, predicts boxes, landmarks and more in a single pass and works on tiny, blurry and partly hidden faces. These detectors are trained and tested on WIDER FACE, a dataset of 32,203 images with 393,703 labelled faces in crowds, at all scales.

Read more: How Does AI Facial Recognition Actually Work? A Plain-English Guide

The Bridge: Landmarks and Alignment

Modern detectors don't just draw a box. They mark landmark points. Ollie uses YuNet, which finds five: both eye centres, the nose tip and both mouth corners.

Those points feed alignment, the step between detection and recognition. The face is rotated, scaled and shifted so the five points land on fixed positions in a 112 by 112 pixel crop. The recognition network was trained on crops aligned exactly this way, so getting this step right matters as much as the network itself. See the maths of face recognition for how the transform is calculated.

How Recognition Works

Recognition takes the aligned crop and turns it into numbers. Ollie's network is a 20-layer convolutional network trained from scratch on about 5.8 million photos of 85,742 people. It outputs 512 numbers, an embedding, and two faces are compared by how close their embeddings are.

For Ollie, recognition doesn't mean naming you. It means comparing your embedding with the stored embeddings of 40,000+ celebrity photos and returning the closest. For the full walk-through, see how face recognition works.

Read more: The Math Behind Your Face: How Machines Read Bone Structure

Get new guides by email

By joining, you agree that Ollie can email you about new features and style tips. Every email has an unsubscribe link. Privacy

Reading Errors: Which Step Failed?

Knowing the two steps helps you fix a bad result.

"No face found" means detection failed

  • The face is turned too far to the side.
  • It's too small in the frame, or too blurry.
  • It's too dark, or backlit into a silhouette.
  • Sunglasses, a mask or hands hide the landmarks.

A face was found but the matches feel off: a recognition-quality problem

  • A close selfie distorted your proportions.
  • Side lighting changed how your features read.
  • A big expression reshaped your eyes and cheeks.
  • The wrong face was picked: Ollie uses the largest face, which in a group photo might not be you.

Both are usually fixed with one clear, front-facing photo in soft light. See the best photo for a celebrity match.

Why the Difference Matters for Privacy

Detection alone doesn't identify anyone. It's used to blur faces in street-view photos, focus cameras and count people in a queue. Recognition is the step that links a face to an identity, which is why most laws and debates focus on it.

Ollie keeps recognition narrow on purpose: it compares you only with a fixed list of public figures, never tells anyone who a stranger is, and doesn't store your photo. See privacy and face recognition.

Frequently Asked Questions

What is the difference between face detection and face recognition?

Detection finds where faces are in an image. Recognition works out whose face it is, or who it looks like. Detection always runs first.

Why does face alignment matter?

Recognition networks are trained on faces lined up in a standard position. Alignment uses landmark points to put every face in that position before matching.

Why can't Ollie find my face?

Usually the face is turned too far, too small, too dark, or covered by sunglasses or a mask. Try a clear, front-facing photo in soft light.

Is face detection a privacy risk?

Much less than recognition. Detection only finds faces; recognition links them to identities.

Try it yourself

Find your celebrity lookalike

Upload a photo and see which celebrities you look most like. Free to try, and your photo is never stored.

Find my celebrity look alike

About the author

The Ollie teamWrites for Ollie, a free celebrity lookalike AI

The Ollie team wrote and trained Ollie's own face-recognition model from scratch, and writes these guides to explain how face matching works in plain English. Questions or corrections are welcome on the contact page, and the FAQ covers how Ollie works and what happens to your photo.

Related Articles