facerecog / README.md
kamau1's picture
Fix short_description length for HF Spaces
1730ae0
|
Raw History Blame Contribute Delete
1.93 kB
---
title: Face Recognition API
emoji: πŸ‘€
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: FastAPI face recognition with DeepFace and Supabase
tags:
- fastapi
- face-recognition
- deepface
- computer-vision
- machine-learning
---
# Face Recognition API 🎯
A modern FastAPI application for face recognition using DeepFace and Supabase. This API allows users to register faces and perform real-time recognition through various input methods including images, videos, and webcam streams.
## πŸš€ Features
- **Face Registration**: Register user faces with unique identifiers
- **Image Recognition**: Recognize faces in static images
- **Video Recognition**: Process video files for face recognition
- **Real-time Webcam**: WebSocket-based real-time face recognition
- **Vector Similarity Search**: Powered by Supabase pgvector for fast similarity matching
- **RESTful API**: Clean, documented API endpoints
- **Async Processing**: High-performance async operations
## πŸ› οΈ Technology Stack
- **FastAPI**: Modern, fast web framework for building APIs
- **DeepFace**: State-of-the-art face recognition library
- **Supabase**: PostgreSQL database with pgvector extension
- **OpenCV**: Computer vision library for image/video processing
- **TensorFlow**: Deep learning framework for face recognition models
- **Docker**: Containerized deployment
## πŸ“– API Documentation
Once deployed, visit `/docs` to access the interactive Swagger UI documentation.
## πŸ”§ Local Development
1. Clone the repository
2. Copy `.env.example` to `.env` and configure your Supabase credentials
3. Run `./scripts/setup.sh` to set up the development environment
4. Start the development server: `make dev`
## πŸš€ Deployment
This application is configured for deployment on Hugging Face Spaces using Docker.
## πŸ“„ License
MIT License - see LICENSE file for details.