Real-Time Face Mask Detection System

A computer vision system developed to detect whether individuals are wearing face masks in real-time video streams, leveraging OpenCV and MobileNetV2 for low-latency edge deployment during the COVID-19 pandemic.
Critical friction and failure modes observed in existing workflows
During public health crises, manual monitoring of mask compliance in crowded spaces (hospitals, transit hubs, educational institutions) is labor-intensive, error-prone, and exposes monitoring personnel to significant infection risks.
Engineering methodology, model selection, and pipeline design
Implemented a two-stage deep learning pipeline: face localization using an OpenCV SSD/Caffe detector combined with transfer learning on MobileNetV2 for mask classification. Optimized the model with TensorFlow and Keras to run efficiently on standard CPU and webcam hardware without requiring dedicated GPU acceleration.
Validated benchmarks, latency figures, and operational efficiency
Achieved 98.4% classification accuracy in varied lighting conditions with real-time inference (>30 FPS on standard webcam streams), enabling automated, non-intrusive compliance auditing.
Real-time face detection and mask classification from live video feeds
Lightweight MobileNetV2 architecture optimized for edge devices
Bounding box visualization with confidence scoring and status alerts
High accuracy across diverse facial orientations and mask styles
Trained on comprehensive datasets of masked and unmasked individuals
Low-latency inference capable of 30+ FPS on consumer hardware
The system provides real-time detection and classification of face mask usage, with visual bounding boxes, confidence scores, and accuracy metrics displayed on-screen.
Production libraries, architectural components, and runtimes used in this system:
Let's discuss architecture, production deployment, or building high-performance intelligence solutions.