# face_recognition

> The world's simplest facial recognition api for Python and the command line

- Type: agent or tool
- Field: Image & Design
- Repository: https://github.com/ageitgey/face_recognition
- GitHub stars: 56918
- Licence: MIT
- Language: Python
- Last push: 2026-06-25
- Page: https://imutechz.in/agents/face_recognition

## What it is
Face Recognition is a Python library and command-line tool for detecting, analyzing, and identifying faces in images. It uses dlib's deep learning model with 99.38% accuracy on the LFW benchmark. The library provides simple APIs for face location, facial landmark detection, and face comparison. It works on macOS and Linux with Python 3.3+ or 2.7.

## Features
- Detect face locations in images
- Extract facial landmarks (eyes, nose, mouth, chin)
- Compare face encodings for identification
- Command-line tools for batch processing
- Real-time webcam face recognition support

## Best for
- Adding face detection to Python applications
- Building face recognition systems
- Batch processing photo collections
- Real-time webcam face identification

## Pros
- Simple Python API with minimal code
- High accuracy (99.38% on LFW benchmark)
- Includes command-line interface
- Works with real-time video streams

## Cons
- Windows not officially supported
- Requires dlib with Python bindings installed first
- Needs cmake for installation

## Install
```
pip3 install face_recognition
```

## Usage
```
import face_recognition
image = face_recognition.load_image_file("your_file.jpg")
face_locations = face_recognition.face_locations(image)
```

Tags: face-recognition, computer-vision, dlib, python, cli, deep-learning, facial-landmarks, image-processing
