--- 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.