Skip to content
Back to projects

Deep Learning · 2026

Face Detection API

OpenCV Haar Cascade face detection from images, video and webcam through FastAPI.

Model

  • Viola-Jones Haar Cascade detector (pretrained, no training run)
  • Grayscale conversion + histogram equalization before detection
  • Same detector reused across image, video and webcam inputs

Dataset

No training data — the shipped Haar cascade XML ships with OpenCV.

Results & metrics

Inputs
image · video · webcam
Latency
real-time on CPU
API
FastAPI endpoints

Deployment steps

  1. 1Load the Haar cascade once at startup
  2. 2Accept image/video/webcam inputs through FastAPI routes
  3. 3Return bounding boxes as JSON
  4. 4Run with uvicorn on CPU — no GPU needed

Tech stack

  • OpenCV
  • FastAPI
M

drawing ideas into systems...