Data used
- Camera frames in Camera mode.
- A demonstration video and simulated metrics in Demo mode.
Project case study
Driver attention and fatigue estimation from the face, with a Canvas web showcase and a local Python engine.

Drowsiness and distraction at the wheel are hard to notice in time.
Face signals need to become a simple indicator to follow.
The project draws a clear line between what the demo simulates and what the camera measures.
Full case details, collapsed for optional reading.
System that estimates driver attention and fatigue from the face, with a web showcase and a local Python engine.
On the web, the MediaPipe Face Landmarker computes the eyes' EAR and an approximate head pose; an attention score subtracts closed eyes, off pose and lost tracking.
The page opens in Demo mode, with metrics simulated by sine functions over a video; only Camera mode uses real data and asks for permission.
The Python engine uses OpenCV, solvePnP for pose and YOLO to detect phones, and runs on the local machine only.
JavaScript showcase with MediaPipe Tasks Vision and Canvas 2D; local Python engine with OpenCV, MediaPipe, Ultralytics YOLO and PyTorch.
Technical architecture
Driver attention and fatigue estimation from the face, with a Canvas web showcase and a local Python engine.
Developed by Matheus Siqueira - https://www.matheusdev.tech
Three.js 3D object controlled by 7 hand gestures read from the camera with MediaPipe, without touching the device.
View full case