Download

Technology

How We Built People Matching: Face and Voice Recognition

FrameQuery can match faces and voices across your entire video library. Face and voice templates are created and stored on your computer, encrypted, and FrameQuery never receives them.

FrameQuery Team23 February 20265 min read

FrameQuery can now match people across your entire video library by face and voice. Assign a name to someone once, and every video they appear in becomes searchable by who is in it. The find-people guide covers how to search once people are matched; this post covers how the matching works.

Building this required integrating face and voice recognition models, designing an encrypted local biometric database, and building around the consent, retention and deletion requirements in laws such as GDPR, CCPA and BIPA. The privacy constraints shaped most of the architecture. The face and voice recognition page is the current summary of how this data is handled.

The Problem

Queries like "CEO speaking" or "Alice B-roll" require knowing who is in the footage. Manual tagging does not scale to a library of thousands of videos, so the matching has to be automatic.

This breaks down into two distinct problems: recognising faces across different videos, lighting conditions, and angles, and identifying speakers across different recordings, microphones, and acoustic environments.

Face Matching

Face recognition runs a two-stage process: detection finds faces in frames and returns bounding boxes, then a recognition model takes each cropped face and produces a mathematical representation (an embedding) that uniquely characterises that face.

The processing flow:

  1. You turn face recognition on in the desktop app and tick the consent box
  2. Detection runs locally on your machine, finding where faces are in frames
  3. Recognition runs locally, using the SFace model to turn each face into a 128-dimension embedding (a template)
  4. Templates and face thumbnails are stored encrypted on your local disk
  5. You review the groups of faces and assign names

Both detection and recognition happen on your machine. Cloud indexing uploads extracted frames and an audio track to produce captions, object tags and transcripts. Those frames can show faces, but they are not used to recognise anyone.

How matching works

When you identify a person, FrameQuery compares their face embedding against all other detected faces in your library using similarity scoring. Results come back ranked by confidence, and the top matches get linked to the person record in your local database.

Face templates and face thumbnails are encrypted at rest using AES-256-GCM, with the key held in your operating system's keychain or credential store. The matching index used to find similar faces quickly is not encrypted; it is protected by your computer's user account.

Voice Matching

Voice identification uses a speaker recognition model that takes audio and outputs a compact mathematical representation of the speaker's voice. This works alongside the existing transcript data, which already includes speaker diarization from cloud processing.

The pipeline:

  1. For each speaker segment in the transcript, the desktop extracts the longest continuous audio chunk (minimum three seconds)
  2. Audio is preprocessed into a format suitable for the voice recognition model
  3. The model produces a voice embedding
  4. The embedding is stored encrypted alongside face embeddings

Voice recognition runs locally on your machine, using a pure Rust audio processing pipeline with no external dependencies. The diarization that produces labels such as "Speaker 1" runs in the cloud on each file's audio, and no voice template or profile is stored there.

When you link a voice embedding to a person who also has face embeddings, you can find them by either modality: face in frame, or voice in the audio track.

What You Can Search For

Once people are set up:

  • "Alice" resolves the name to all linked biometric data (face and voice), then queries across your library
  • "Alice speaking" narrows to voice matches with timestamp ranges
  • People panel on a video shows all matched people with their appearance types and confidence scores

You can also merge duplicate person records if you realise two entries are the same individual, and all biometric links transfer to the merged record.

Privacy: Why the Architecture Looks This Way

GDPR, CCPA, and BIPA have enforcement mechanisms and specific requirements around biometric data. Compliance was a design constraint from the start.

Templates Stay on Your Computer

Face and voice templates are stored in an encrypted database on your local disk. The encryption uses AES-256-GCM with the key held in your operating system's keychain or credential store. Each encryption operation generates a fresh random initialisation vector.

FrameQuery's servers never receive face or voice templates, or the names you assign to people. Names are stored in your library database, which is not encrypted. If you move your library folder to a network drive, that database (including the names) moves with it, while templates and voice clips stay on your computer.

Consent

Illinois' Biometric Information Privacy Act is one of the strictest biometric privacy laws in the US. It requires informed written consent before collection, a published retention schedule, and a plan for destruction.

Face recognition and voice recognition are off until you turn them on, and they are separate choices. Before any biometric processing begins, the app presents a setup dialogue with explicit checkboxes. No boxes are pre-checked. The app records:

  • Whether consent was given, and when (ISO-8601 timestamp)
  • The consent version, so we can handle changes to terms
  • Whether the retention period was acknowledged

Every consent action gets logged to a local audit table.

That consent is your own choice to use the features. It is not consent from the people in your footage. If you recognise people in footage you work with, having a lawful basis is your responsibility, and that usually means their explicit consent (written consent where BIPA applies).

Retention and Deletion

A retention process runs regularly and deletes biometric data that has not been used for one year, logging each deletion.

You can delete data yourself at any time:

  1. Deleting a person removes their face and voice data
  2. "Delete all biometric data" in Settings removes all of it, including thumbnails and index files
  3. Withdrawing consent in Settings deletes all of it and turns both features off

Uninstalling the app does not delete local data, so use Settings first if you want it gone.

Shared Indexes and Biometric Data

Biometric data is never included in shared or exported indexes. When you publish or share an index, all face templates, voice templates, and person names are automatically stripped. Only non-biometric metadata (descriptions, transcripts, tags, and timestamps) travels with the shared index. Templates and names are also never included in backups, reviews or team libraries, and face and voice recognition are not available in team libraries.

If a recipient has access to the underlying video files, they can run their own face and voice recognition locally on their own machine and assign their own labels. That processing is independent of your biometric data. It generates fresh embeddings on their device, governed by their own consent.

What We Do Not Collect

FrameQuery's analytics never include people's names, faces, file names or search text. You can turn analytics off in Settings. The privacy policy describes what analytics collect and the legal basis for each kind.

Trade-offs

Running recognition locally means the models ship with the app. They download on first use, so the bandwidth cost applies only if you enable people matching.

Local-only storage also means templates are not backed up. Backups never include templates or the names you assign, so if your machine dies, face and voice matches and names have to be recreated after you restore.

Download FrameQuery to try people matching.

More in Technology