# DeepFace

> Python face recognition library: verify two faces, search a folder of faces, and estimate age, gender and emotion.

Source: https://osinttools.io/tools/deepface/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Image
- **Category:** Data analysis and case notes
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python library
- **Website:** https://github.com/serengil/deepface
- **GitHub:** serengil/deepface, 23,739 stars · Python · MIT · last commit 2026-11-20
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

DeepFace wraps state-of-the-art face recognition models behind a few function calls. verify compares two images and says whether they show the same person; find searches a folder or database of images for matches; analyze estimates facial attributes such as age, gender, emotion and race. It runs on ONNX Runtime, TensorFlow or PyTorch.

Investigators use it to compare a face in a new photo against known images of a subject or to cluster faces in a collection of pictures. Everything runs locally, so images do not leave your machine.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- Face verification between two images
- Face search across a folder or database
- Age, gender and emotion estimation
- Multiple recognition and detection models
- Real-time video stream mode
- Local REST API option

## Pros

- Very widely used and actively maintained
- Runs locally on your own data
- Simple Python interface
- Free and open source (MIT)

## Cons

- Requires Python coding
- Face matches are probabilistic and can mislead
- Attribute estimates such as race and emotion are unreliable

## When to use it

- Use it when you need to test whether two photos likely show the same person.
- Use it when you want to find every image of one face in a large local collection.

## Quick start

Install with pip:

```
pip install deepface
```

## Alternatives

- [Copyfish](https://osinttools.io/tools/copyfish/): Open-source browser extension that OCRs and translates text from any part of the screen, including images, videos and PDFs. (Open source · Image · passive · 426 GitHub stars)
- [CrowdCounter](https://osinttools.io/tools/crowdcounter/): Browser tool by Henk van Ess that estimates how many people are in a photo using the Jacobs area-times-density method. (Free · Image · passive)
- [Depix](https://osinttools.io/tools/depix/): Proof-of-concept tool that recovers text from pixelated screenshots by matching blocks against a reference image. (Open source · Image · passive)
- [EXIF Viewer Pro](https://osinttools.io/tools/exif-viewer-pro/): Chrome extension that shows an image's EXIF metadata in a side panel when you right-click it on a web page. (Free · Image · passive)
- [Exify](https://osinttools.io/tools/exify/): Browser extension that shows EXIF data and C2PA Content Credentials when you hover over an image on any website. (Free · Image · passive)
- [Illuminarty](https://osinttools.io/tools/illuminarty/): Detector for AI-generated images and text that estimates the probability, the likely generator and which regions were synthesised. (Freemium · Image · passive)

All alternatives to DeepFace in one table: https://osinttools.io/tools/deepface/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
