Book a free call

Facial Recognition for Access Control: How It Works

Facial recognition access control matches a face against an enrolled template to open a door. Here is how it works, where it fits, and what to get right on privacy.

Hertiv engineering teamReviewed by a senior engineer
7 min read
Facial Recognition for Access Control: How It Works
On this page

Short answer

Facial recognition access control is a system that identifies a person from a camera image and opens a door, gate or turnstile when the face matches an enrolled template. It replaces cards and PINs with a check that takes a second or two, and it keeps a log of every entry, but it needs careful handling of biometric data and consent.

What is facial recognition access control?

Facial recognition access control is a system that uses a camera and matching software to decide whether a person may enter a building, room or secure area. Instead of a card, PIN or key, the person looks at a camera, and the door opens when the face matches an enrolled template.

The system does not store a photo and compare pictures. During enrolment it converts the face into a mathematical template, a set of numbers that describes the distances and proportions of facial features. At the door it builds a fresh template from the live image and checks whether it is close enough to a stored one.

It is used where hands-free entry matters or where cards are a problem: offices, factories, warehouses, data centres and gyms. It is also used alongside other methods, for example a face check plus a card for high-security doors. The same technology in a different setting is covered in AI face recognition attendance systems.

How does it work, step by step?

Access by face follows a short sequence each time someone arrives at a door. The steps are the same whether the door is an office entrance or a factory gate.

  1. Enrolment. A person stands in front of a camera and the system records a template from several angles, linked to their identity and access rights.
  2. Detection. The camera at the door detects a face in the frame and checks that it is a live person, not a photo or screen.
  3. Matching. The system builds a template from the live face and compares it with the enrolled templates, producing a similarity score.
  4. Decision. If the score passes the threshold and the person has access to that door, the lock releases. If not, the door stays shut and the attempt is logged.
  5. Logging. Every attempt, successful or not, is recorded with a time and a door, so security teams can review who entered and when.

The whole check usually takes one to two seconds. The threshold is a trade-off: a strict threshold rejects more genuine users, while a loose one lets more strangers through. Most systems let the operator tune it per door.

What hardware does an access control setup need?

A face-based access setup needs a camera, a matching unit, a door controller and a way to manage enrolment. The table below lists the parts and what each one does.

PartWhat it doesWhat to check
Camera terminalCaptures the face and runs the matchWorks in low light, has liveness sensors
Door controllerReleases the lock on a matchSupports your lock type and fails safe
Management softwareEnrolment, permissions, logsEasy to revoke access fast
Network linkSyncs templates and logsWorks offline if the link drops
Backup readerCard or PIN if face failsAvailable at every door

Many terminals run matching on the device itself, so the door still works when the network is down. The management software can be on site or in the cloud, but templates should be stored where the organisation controls access to them.

Lighting matters more than most buyers expect. A camera facing a bright window will struggle, while a shaded position with even light gives reliable matches. Test the camera in the real doorway, at the times people actually arrive, before committing to a supplier.

How does it stop spoofing?

Spoofing is presenting something that is not a live face: a printed photo, a phone screen, a video, or a mask. A system that only compares a flat image can be fooled by a good photo, so modern terminals add liveness checks that confirm a real person is present.

The common liveness methods work together. Depth sensing builds a three-dimensional map of the face, so a flat photo fails. Infrared imaging checks for the heat and reflection pattern of real skin, which a screen cannot reproduce. Some systems ask for a small movement, such as a blink or a head turn, before accepting the match.

No single method is perfect on its own, so vendors combine two or three and score them together. A photo held up to a camera with depth sensing fails the depth check, and a video on a phone fails the infrared check. The combination is what makes spoofing hard in practice.

Testing matters here. Ask the vendor to demonstrate the system against photos, videos and masks, and check the results against the standard the organisation needs. A system that passes a demo in a bright office may fail at a dim warehouse door.

How does it compare with cards, PINs and fingerprints?

Face recognition is one of several ways to open a door, and each method has different strengths. The table below compares the four common options on the points that decide which one fits a site.

MethodSpeedWhat can go wrongBest for
Face recognition1-2 secondsPoor light, spoofingHands-free, high traffic
Access card1-2 secondsLost, shared, clonedLow cost, simple sites
PIN code3-5 secondsShared, watched, forgottenLow traffic doors
Fingerprint1-2 secondsDirty or wet handsSmall teams, single doors

Cards are cheap and familiar, but they are lost, lent and cloned, and replacing them costs time. PINs need no hardware in the pocket, but they are shared between colleagues and watched over shoulders. Fingerprints are accurate, but dirty or wet hands cause failures in factories and warehouses.

Face recognition avoids the lost-card problem and works hands-free, which matters where staff carry tools or goods. Its main costs are the camera hardware and the privacy work, which cards and PINs do not need. Many sites combine methods, such as face plus card for sensitive areas.

Face data is biometric data, which means it identifies a person from their body and cannot be changed like a password. That makes privacy the most important part of any face-based access project, and the part most teams underestimate.

Three practices matter most. First, store templates, not photos, and store them encrypted, ideally on the device or on a server the organisation controls. Second, collect only what the system needs: enrolment should capture the face and nothing else. Third, set a retention rule, so templates are deleted when a person leaves and logs are kept only as long as the security policy requires.

Consent and notice come before installation. Staff should be told what is collected, why, where it is stored, and how to use the backup method if they prefer not to enrol. In many regions the law requires a clear legal basis and a privacy assessment before biometric systems are switched on. The same care applies in health settings, as described in AI face recognition in healthcare.

Privacy also shapes the vendor choice. Ask where templates are processed, whether any data leaves the site, and how the vendor handles a data request or a breach. If the answers are vague, the vendor is the wrong one.

Example (hypothetical): a 200-person office replaces cards

Example (hypothetical): an office with 200 staff replaces cards with face recognition at its main entrance. Each person enters twice a day on average, so the door handles 400 entries a day.

With cards, each entry took about 4 seconds: find the card, tap, wait for the beep. With face recognition, each entry takes about 1 second. The saving is 3 seconds per entry, or 1,200 seconds a day, which is 20 minutes of queue time removed from the morning rush.

The office also counted lost cards. Before the change it replaced about 6 cards a month, and each replacement took a security officer 15 minutes, or 90 minutes a month. After the change that work disappeared, because there are no cards to lose. The gain was small in money terms, but the morning queue and the lost-card desk both went away.

What are the common mistakes?

The most common face recognition access mistakes are installing cameras in bad light, skipping the privacy work, and having no fallback when the system cannot match someone.

  • Bad camera placement. A camera facing a bright window or a dark corridor fails at the times people actually arrive. Test in real conditions.
  • No backup method. If the system cannot match a person, there must be a card, PIN or staffed desk, or people are locked out.
  • Skipping consent and notice. Switching on biometric checks without telling staff what is collected and why destroys trust fast.
  • Storing photos instead of templates. Photos are far more sensitive than templates and harder to protect. Store templates, encrypted.
  • Setting the threshold once and forgetting it. False rejections rise as seasons and lighting change. Review match rates monthly and retune.
  • Buying on demo accuracy alone. A demo in a bright showroom says little about a dim warehouse door. Test on your own site.

For teams building the vision side of such a system, computer vision development covers how the underlying models are built and trained.

Data handling questions belong with data security and compliance specialists, who can review storage, retention and consent before the system goes live.

Key takeaways

  • Face access control matches a live face against an enrolled template and opens the door in one to two seconds
  • Liveness checks using depth and infrared are what stop photos, screens and masks from fooling the system
  • Templates, not photos, should be stored, encrypted, and deleted when a person leaves
  • Face beats cards on lost credentials and hands-free entry, but needs more privacy work
  • A pilot on one real door, in real light, is the only reliable test before a site-wide rollout

Frequently asked questions

Is facial recognition access control accurate in low light?

Modern terminals use infrared light, so they work in dim corridors and at night. Accuracy still depends on the camera position, so test the terminal in the real doorway at the times people actually arrive before buying.

Does it store photos of people's faces?

Good systems store mathematical templates, not photos. A template is a set of numbers describing facial proportions and cannot be turned back into a photo. Ask the vendor to confirm this and to show how templates are encrypted.

Can a photo fool the system?

A system that only compares flat images can be fooled by a good photo. Modern terminals add depth sensing and infrared checks, which a photo or phone screen fails. Combined liveness checks make spoofing hard in practice.

What happens if the system cannot recognise someone?

The person should fall back to a card, a PIN or a staffed desk. Every door needs a backup method, because faces change with glasses, masks and lighting, and nobody should be locked out by a failed match.

Is facial recognition access control legal?

It depends on the country and the setting. Face data is biometric data in many laws, which means a legal basis, staff notice and a privacy assessment are usually required before switching the system on. Check local rules before installing.

How long does it take to install?

A single door usually takes a day or two, including the camera, controller and wiring. Enrolling staff takes a few minutes per person. The longer work is the privacy assessment, the enrolment plan and the pilot, which should run for at least two weeks.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning face-based access control for your building and want it done right? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Computer Vision service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call