FaceTrust
By Fadhil Abdulla

Face Liveness Detection: What It Is and Why It Matters

A face verification system that can be fooled by a photograph is not a real security control. Liveness detection closes that gap.

What is a Liveness Attack?

A liveness attack — also called a presentation attack — is when someone tries to fool a face recognition system using a photo, video, or 3D mask of the target person instead of their live face.

Without liveness detection, a basic face verification system can be defeated by simply holding up a printed photo or playing a video on a phone screen.

How Liveness Detection Works

Modern liveness systems use a combination of techniques:

  • Active challenges — Ask the user to blink, turn their head, or smile. A static image cannot comply.
  • Passive analysis — Analyse texture, depth cues, and light reflection patterns that differ between a live face and a flat image.
  • 3D depth sensing — On supported hardware, use depth maps to confirm a real face is present.

FaceTrust's Approach

FaceTrust implements liveness via a session-based flow:

  1. Your server calls the session API to create a liveness check.
  2. The API returns a token used to load a webview or iframe on the client device.
  3. The client-side component guides the user through the detection flow.
  4. The result is sent to your server via webhook — pass or fail, with a confidence score.

This architecture keeps the detection logic up to date without requiring app updates on the client side.

Learn more about FaceTrust

Keep reading

More from Pyalm

Jun 8, 2026

FaceTrust (AI): Self-Hosted Identity Verification Without the Cloud Lock-In

FaceTrust is a self-hosted platform that covers face verification, document OCR, liveness detection, and face search — all through a single REST API.

Aug 1, 2026

Invoice vs Delivery Note: What Each One Actually Does

They often carry the same line items, but only one of them asks for money and only one of them proves the goods arrived. Here is where each document belongs.

Aug 1, 2026

Quotation vs Proforma Invoice: Which One Should You Send?

Both go out before the sale and neither is a tax invoice — but they make very different promises. Here is when each one is the right document.

Aug 1, 2026

Credit Note vs Debit Note: Which One Corrects Your Invoice?

One reduces what a customer owes, the other increases it. Getting the direction wrong quietly misstates your VAT return — here is how to tell them apart.

Aug 1, 2026

Invoice vs Receipt: The Difference That Trips Up Most Businesses

An invoice asks for money. A receipt confirms it arrived. Sending the wrong one — or only one — is how businesses lose track of who has actually paid.

Aug 1, 2026

Purchase Order vs Purchase Invoice: Controlling What You Spend

A purchase order is what you agreed to buy. A purchase invoice is what your supplier says you owe. The gap between the two is where overspending hides.

Self-Hosted AI Identity Verification

FaceTrust covers face verification, liveness detection, document OCR, and face search — all via a REST API on your own infrastructure.

About FaceTrust Get in touch