https://github.com/itx-jd/face-comparison-api-from-urls
A Flask-based face comparison API that takes image URLs as input and compares the faces using DeepFace.
https://github.com/itx-jd/face-comparison-api-from-urls
deepface face-comparison face-recognition flask-api image-url
Last synced: 4 months ago
JSON representation
A Flask-based face comparison API that takes image URLs as input and compares the faces using DeepFace.
- Host: GitHub
- URL: https://github.com/itx-jd/face-comparison-api-from-urls
- Owner: itx-jd
- Created: 2024-09-13T11:06:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-08T20:25:49.000Z (8 months ago)
- Last Synced: 2025-02-08T21:25:07.801Z (8 months ago)
- Topics: deepface, face-comparison, face-recognition, flask-api, image-url
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Comparison from URLs
This simple Flask-based API allows you to compare faces from two images using their URLs. Powered by DeepFace, it quickly checks if the faces match.
## Features
- **Face Comparison**: Compare two images using just URLs.
- **Powered by DeepFace**: Accurate face verification.
- **Easy to Use**: No base64 encoding required, just provide image URLs.## How It Works
1. Send a POST request with two image URLs (`base_image` and `comparison_image`).
2. The API compares the faces and returns whether they match (`verified`) and their similarity (`distance`).## Endpoint & Request Example
`POST /verify`### Request Body Example
```json
{
"base_image": "https://example.com/image1.jpg",
"comparison_image": "https://example.com/image2.jpg"
}
```### Response Example
```json
{
"verified": true,
"distance": 0.22
}
```## Why Use This?
- Quick and easy face comparison via URLs.
- No need for complex setup or base64 encoding.
- Ideal for security and face recognition projects.### Get Started
1. Clone the repo.
2. Install dependencies.
3. Run the Flask app and make requests to `/verify`.