DevAtomicRelease
Initial deployment: Face Recognition Web App
3216a1f
|
Raw History Blame Contribute Delete
1.31 kB
metadata
title: Face Recognition with Embeddings
emoji: πŸ”
colorFrom: indigo
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: Real-time face recognition using MTCNN + InceptionResnetV1

Face Recognition Web App

Real-time browser-based face recognition using MTCNN for face detection and InceptionResnetV1 (FaceNet) for embedding generation.

Features

  • πŸŽ₯ Video Registration β€” Record a short clip to register your face
  • πŸ“Έ Image Upload β€” Upload 3-10 face images for registration
  • ⚑ Real-Time Recognition β€” Live webcam face matching via WebSocket
  • πŸ”’ Session Isolation β€” All data is ephemeral and auto-purged
  • 🧠 Cosine Similarity β€” Identity matching with configurable threshold

How It Works

  1. Register β€” Enter your name and record a video or upload images
  2. Process β€” MTCNN detects faces β†’ InceptionResnetV1 generates 512-dim embeddings
  3. Recognize β€” Live webcam stream matches faces against stored embeddings

Tech Stack

  • Backend: FastAPI + WebSocket
  • ML: PyTorch, facenet-pytorch (MTCNN + InceptionResnetV1)
  • Frontend: Vanilla JS, HTML5, CSS3

Local Development

pip install -r requirements.txt
uvicorn server.app:app --host 0.0.0.0 --port 8000