A full-stack facial recognition web application using:
- Next.js → frontend (UI + API routes)
- Python (FastAPI) → backend AI service (face detection, embeddings, recognition)
- MongoDB → database for user info, embeddings, and recognition logs
- User signup with face image
- Face login (no password required)
- Enroll multiple faces per user
- Verify identity (1:1 face check)
- Recognize user (1:N search across DB)
- Recognition history & logs
facial-recognition-app/
│── frontend/ # Next.js app
│── backend/ # Python FastAPI app
│── database/ # MongoDB setup
│── docker-compose.yml # Local deployment
│── Context.md # Project background & docs
│── README.md # Main readme
POST /api/auth/signup→ Register user with facePOST /api/auth/login→ Login via face recognitionPOST /api/face/enroll→ Add new face embeddingPOST /api/face/verify→ Verify identity (1:1)POST /api/face/recognize→ Recognize face (1:N)GET /api/logs→ View recognition history
- users → user info + embeddings
- logs → history of logins/recognitions
- sessions → optional JWT token storage
- Clone repo:
git clone https://github.com/Deviskalo/TrueFace.git cd TrueFace - Install dependencies for frontend & backend:
cd frontend && npm install cd ../backend && pip install -r requirements.txt
- Configure
.envfor MongoDB + JWT secrets. - Run services with Docker Compose:
docker-compose up --build
- Add liveness detection (prevent photo spoofing)
- Integrate 2FA (face + OTP)
- Optimize embeddings search with Faiss/Annoy
Built by Dev Iskalo - 2025