---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

Search & Discovery

8 min read

Updated 2026-11-07

# How Do I Find Every Photo of One Person in a Large Photo Library?

To find every photo of one person, detect the faces in each photo, turn each face into a face embedding, and search with a few reference photos of that person. This explains how the phone apps do it, how to do it across an archive of millions, why matches get missed, and the consent rules that apply to faces.

![Ethan Steininger](/people/ethan.webp)

By [Ethan Steininger](/blog/authors/ethan), Founder & CEO, Mixpeek

Face Search

Face Recognition

Photo Library

Face Embeddings

Digital Asset Management

[Run this on your own data. Try it as you read.Search your own archive →](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)

[Try it live, no keyCelebrity and public figure face matchUpload a photo and find the public figures in it.Try it](/marketplace/celebrity-face-match)

## How do I find every photo of one person in a large photo library?

  
  
Search by face. Detect every face in every photo, turn each face into a face embedding (a list of numbers that is close for two photos of the same person and far apart for different people), and compare those embeddings with a few reference photos of the person you want. Every face within a set distance of the references is a match. For a personal library, Apple Photos, Google Photos and the open-source Immich already do this. For an archive of hundreds of thousands of photos, you run the same three steps yourself or with a service, then check the borderline matches by hand.  
  

## How do the photo apps find a person?

  
  
*   **Apple Photos** groups faces into the People album on your device. Name a person and Photos
[shows every photo they appear in](https://support.apple.com/guide/photos/find-people-and-pets-phtad9d981ab/mac).*   **Google Photos** does it with [Face Groups](https://support.google.com/photos/answer/6128838),
which you turn on in settings. Google says the feature is not available in every region.*   **[Immich](https://immich.app/docs/features/facial-recognition)**, a self-hosted, open-source
photo server, recognises faces in photos and videos, groups them into people and lets you search by name.  
  
These work well on one person's camera roll. They stop being enough when the photos sit in a shared drive, an agency archive or a cloud bucket, when several teams need the same search, or when you need the results in your own software.  
  

## How does face search work across millions of photos?

  
  

Step

What happens

Typical tools

1\. Detect

Find each face and its box in the photo, with landmarks for the eyes, nose and mouth

RetinaFace, SCRFD

2\. Align

Rotate and crop each face to a standard pose so the model sees faces the same way

Landmark-based alignment

3\. Embed

Turn each aligned face into a face embedding, often 512 numbers

ArcFace-family models

4\. Index

Store the embeddings in a vector index next to the photo's ID and the face's box

Any vector database

5\. Search

Embed 3 to 5 reference photos of the person and return every face within a distance threshold

Cosine similarity

6\. Group (optional)

Cluster all faces so each unknown person becomes a group you can name later

DBSCAN, HDBSCAN

  
  
Search and grouping answer different questions. Search starts from someone you can show a photo of. Grouping starts from nothing and sorts the whole archive into people, which is what the phone apps do before you ever type a name. A [face embedding](/glossary/face-embedding) differs from face recognition the way a fingerprint scan differs from a match against a database: the embedding is the measurement, and recognition is what you do with it.  
  

## Why are some photos of the person missing from the results?

  
  
*   **Side profiles, sunglasses, masks and hats.** Detection finds fewer faces and the embeddings drift.
Use reference photos that include a profile and an outdoor shot.*   **Small faces.** A face 30 pixels wide in a group photo carries little detail. Run detection on
the full-resolution photo.*   **Age.** A child photographed ten years apart can fall outside the threshold. Add a reference photo
from each period.*   **The threshold.** A strict cut-off misses real matches, and a loose one pulls in relatives and
lookalikes. Label a few hundred pairs from your own archive and set it where same-person and different-person scores separate.*   **One reference photo.** Search with several and keep a face if it is close to any of them.
  
  
Benchmarks of frontal, well-lit faces overstate how a model does on a real archive, so measure on your own photos before you trust a number.  
  

## What rules apply to searching faces?

  
  
A face embedding used to identify someone is biometric data. Under the GDPR it falls under the special categories in [Article 9](https://gdpr-info.eu/art-9-gdpr/), which needs an explicit legal basis such as consent, and Illinois' Biometric Information Privacy Act requires written consent before collecting it. Searching your own family photos is a different situation from searching photos of employees, customers or the public, so check with counsel before you index other people's faces at scale. Some widely used pretrained face models are also licensed for non-commercial research only, so check the licence of the weights you deploy.  
  

## How do I do this with Mixpeek?

  
  
Point Mixpeek at the bucket where the photos already live. The [face identity extractor](/extractors/face-identity) detects each face with SCRFD, aligns it and embeds it with ArcFace into a 512-number vector, for images, video frames and PDF pages. A retriever takes your reference photos and returns every matching face with its photo and box, and clustering groups the unknown faces across the archive. The photos stay in your storage. On the [pricing page](/pricing), face detection and identity is $1.00 per thousand images, and clustering is included.  
  
Related: [face recognition and identity clustering in video](/guides/face-recognition-identity-clustering), [the best face recognition APIs](/curated-lists/best-face-recognition-apis), [how to find duplicate photos, including edited copies](/guides/how-to-find-duplicate-photos-including-edited-copies) and the [InsightFace buffalo\_l model](/models/insightface-buffalo-l).  
  

## Frequently Asked Questions

  
  

### Can I search my photos with one photo of a person's face?

  
  
Yes. Upload the photo, the face is turned into an embedding, and every face in the library close to it comes back. Results are better with three to five reference photos taken at different angles and ages.  
  

### Why does my photo app not show some photos of a person?

  
  
The app did not detect the face (turned away, small, covered) or the face fell outside its match threshold. Most apps let you confirm suggested matches or add a photo to a person by hand, which also helps later matches.  
  

### How do I find photos of a person in thousands of videos?

  
  
Sample frames from each video, run the same detect, align and embed steps on each frame, and store the timestamp with each face. A search then returns the video and the moment the person appears.  
  

### Is it legal to search photos for a specific person's face?

  
  
It depends on whose faces they are and where you operate. Face embeddings used for identification are biometric data under the GDPR and under Illinois' biometric privacy law, which require a legal basis or written consent. Get advice before indexing faces of people who have not agreed to it.

## Run this on your own data

Point Mixpeek at the storage you already have and search your video, images, audio, and documents the way this guide describes. Build starts at $25/mo for up to 1M vectors.

[Search your own archive](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=guide_cta&utm_campaign=mvs_onramp)[Read Docs](/docs)

[Explore MVS](/mvs)[See pricing](/pricing)

## Related guides

[

Search & Discovery

### How to Search Inside Videos in iconik with Natural Language

iconik search matches metadata, so finding a moment by what is on screen needs an index built from the footage. Compare iconik's own AI search, the iconik and TwelveLabs connector, and syncing iconik to Mixpeek, with setup steps, costs and FAQs.

Read guide →](/guides/iconik-video-search)[

Search & Discovery

### How Do I Stop Duplicate Videos Showing Up in My Search Results?

Your video search or library returns the same video several times: re-uploads, re-encoded copies, trimmed versions, or many clips from one long video. This explains where each kind of duplicate comes from and how to stop it, at ingest and in the results, for a library or search app you run.

Read guide →](/guides/how-to-stop-duplicate-videos-showing-up-in-search-results)[

Search & Discovery

### How Do I Find Duplicate Photos, Including Edited and Resized Copies?

A resized, recompressed, cropped or filtered photo has different bytes from the original, so a simple duplicate finder misses it. This explains the three ways to compare photos, what each one catches, the tools for a personal library and for an archive of millions, and how to set the threshold so you keep the right copy.

Read guide →](/guides/how-to-find-duplicate-photos-including-edited-copies)