Facial recognition explained: how it works, where you'll meet it and what EU law bans

Unlocking your phone with your face, going through airport checks and being identified by a street camera are not the same thing. Here's how facial recognition works in four steps, why it makes mistakes and what's banned in the European Union.

Illustration about images created and edited with artificial intelligence
Image: Best AI Today

You probably use facial recognition every day without thinking about it: to unlock your phone or log in to your banking app. But the same technology does very different jobs, from boarding a plane without showing a ticket to searching for one person among thousands of faces caught on camera. That’s why it’s one of the parts of artificial intelligence that the law watches most closely.

Here it is in plain language.

How it works, in four steps

Almost every system follows the same path:

Step What it does Simple example
1. Detect Finds whether there’s a face in the image and separates it from the background The box that appears on your phone camera
2. Align Straightens the face and corrects size, angle and lighting Like straightening a passport photo
3. Extract features Measures eyes, nose, mouth, distances… and turns them into a list of numbers A kind of numeric “fingerprint” of your face
4. Compare Checks those numbers against the ones it has stored Close enough? Yes or no

Step 3 is the key: the system doesn’t keep your photo to compare it, but that “number summary” of your face (experts call it a feature vector). The AI, trained on millions of faces, is what has learned which measurements tell one person from another.

“Verifying” is not the same as “identifying”

This difference is the most important one for understanding the controversies:

  • Verification (one-to-one). You say who you are and the system checks whether your face matches a single reference. That’s what your phone does, or an airport e-gate comparing your face with your passport. You asked for it and you know it’s happening.
  • Identification (one-to-many). The system takes a face and searches for it in a database of many people to find out who it is. That’s what a surveillance camera recognizing passers-by would do. It can happen without you knowing.

The first is generally low-risk. The second is what worries privacy advocates and what European law restricts most.

Where you’ll run into it

  • On your phone and in banking apps, to unlock or confirm payments (verification).
  • At airports. Many countries use automated border gates that compare your face with your passport. In Spain, for example, the national police have used them for years: in 2018 there were more than 450 at airports such as Madrid, Barcelona, Palma, Málaga and Alicante, according to Maldita.es. Spanish airport operator Aena has also tested boarding with your face since 2019 (Menorca, Madrid-Barajas and Barcelona-El Prat), and in those trials it was voluntary: you signed up in the Aena app or at a kiosk. If you’d like to use it, check with your airport or airline.
  • On social media, to tag photos. Meta shut down Facebook’s facial recognition system in 2021 and deleted the face “templates” of more than a billion users.
  • In surveillance and police investigations, which is where the legal limits come in.

Why it gets things wrong (and why that matters)

No system is right 100% of the time. Errors go up with poor lighting, faces turned sideways, glasses, masks or low-quality images.

On top of that, some systems have been shown to fail more often with some people than others. The best-known study, Gender Shades (2018), by researchers from MIT and Microsoft Research, found that several commercial systems made far more mistakes with darker-skinned women than with lighter-skinned men when classifying faces. The cause is usually the training data: if a system has seen few faces of one kind, it’s worse at telling them apart. Later studies have produced different results, so the debate is still open, but the lesson is clear: a match is not proof, and a person should always review it.

What the law says in Europe

The European Union’s AI Act (we cover it fully in the EU AI Act, explained simply) treats facial recognition with special care. According to the European Commission:

Banned since February 2, 2025

  • Mass collection of faces from the internet or CCTV footage to build or expand facial recognition databases.
  • Emotion recognition in workplaces and schools.
  • Using biometric data to infer protected characteristics (such as political views, religion or sexual orientation).
  • “Real-time” remote biometric identification in public spaces by police. The law has very narrow exceptions; the Commission’s page doesn’t list them and points to the regulation’s text.

Allowed, but as “high risk”

Remote biometric identification (for example, identifying a shoplifter afterwards from recordings), emotion recognition outside those settings and biometric categorization are classed as high-risk. They’ll have to meet rules on data quality, logging, documentation and human oversight. According to the Commission, those obligations apply from December 2, 2027.

And before the AI Act, there was the GDPR

Your face is biometric data, and the EU’s data protection law (GDPR) already gives that kind of information extra protection. One example: in May 2024 the Dutch data protection authority fined Clearview AI, a US company that offers police a face search engine, €30.5 million. According to the decision, it processed biometric data of people in the Netherlands with no legal basis, without telling them and without answering people who asked to see their data.

What you can do

  1. Use face unlock if it’s convenient: it’s verification, and the data usually stays on the phone itself (check your brand’s settings).
  2. If you’re asked to register your face (at an airport, a gym, an office), ask whether it’s voluntary, what it’s used for, who stores the data and for how long. You have a right to know.
  3. Think before posting photos of other people, especially children, in public places. More tips in what not to tell AI to protect your privacy.
  4. If you think a company is using your face without permission, you can complain to your country’s data protection authority (in the EU, every country has one). For specific cases, it’s best to talk to a legal professional.

Sources