Spaces:
Sleeping
Sleeping
metadata
title: Face Recognition API
emoji: ποΈ
colorFrom: purple
colorTo: blue
sdk: docker
pinned: false
license: mit
Face Recognition API with FastAPI
A real-time face detection and recognition API with WebSocket support for streaming video frames.
Features
- π― Face Detection: MTCNN or YOLO face detection
- π Face Recognition: FaceNet embeddings with ChromaDB vector storage
- π‘ WebSocket Streaming: Real-time face detection over WebSockets
- πΌοΈ REST API: Embed, update, delete, and recognize faces
- π¨ Data Augmentation: Automatic face augmentation for better recognition
- π Live Demo UI: Built-in HTML interface for testing
Quick Start
- Access the API at the public URL provided by Hugging Face Spaces
- Use the built-in UI at
/AutoProctor/v1/for live testing - Check API docs at
/docsfor Swagger documentation
API Endpoints
Base Endpoints
GET /AutoProctor/v1/- Web interface for testingGET /AutoProctor/v1/health- Health checkGET /AutoProctor/v1/config- Get current configurationGET /AutoProctor/v1/count- Count stored embeddings
Face Management
POST /AutoProctor/v1/data/embed/{user_id}- Add face embeddingsPOST /AutoProctor/v1/data/update/{user_id}- Update face embeddingsPOST /AutoProctor/v1/data/delete/{user_id}- Delete user embeddings
Recognition
POST /AutoProctor/v1/data/detect/frame- Detect faces in single framePOST /AutoProctor/v1/data/recognize/frame- Recognize face in frameWebSocket /AutoProctor/v1/data/detect/stream- Real-time streaming
Example Usage
Add Face Embedding
curl -X POST "https://your-space.hf.space/AutoProctor/v1/data/embed/user123" \
-F "file=@face.jpg"