CruxBit
Back to catalog

Webcam-Based Face Mask Compliance Monitor

Added Jun 2025 3 design docs

Hospitals, clinics, laboratories, and food production facilities enforce face covering policies for safety, but relying on staff to visually police compliance at every entrance is impractical and inconsistent. An automated check at the door provides continuous coverage and frees people for higher-value work. The intern builds a Flask web application that captures live webcam video, detects faces in each frame with OpenCV, and classifies each detected face as masked or unmasked using a convolutional neural network trained in TensorFlow. The interface streams the annotated video feed to the browser with bounding boxes and prediction labels overlaid in real time, and the intern tunes the pipeline so detection and classification keep pace with the camera frame rate. The finished system is containerized with Docker, making it straightforward to host in the cloud or drop onto a small machine at a facility entrance. The project teaches the full arc of a deployed vision product: assembling and training a CNN classifier, wiring model inference into a live video loop, serving real-time results through a Python web framework, and packaging everything for repeatable deployment. It is a strong portfolio piece showing the intern can move a model from notebook experiment to a working safety tool.

Related projects

You might also like