VisionTrack CV
AI Multi-Face Attendance & Mask Analytics Suite
The Engineering Problem
A production-grade computer vision suite engineered for automated multi-face batch recognition, mask compliance scoring, and thread-safe SQLite WAL attendance logging.
- ▶Consistent 60 FPS GUI responsiveness under continuous live video stream processing.
- ▶Zero database corruption during high-frequency concurrent worker thread writes.
- ▶Real-time face vector matching against serialized 128-dimensional embedding stores without blocking the main render loop.
Decouples video frame capture and YOLOv8/Dlib model inference into background worker threads communicating via thread queues, maintaining a smooth 60 FPS GUI experience.
Combines Ultralytics YOLOv8 for mask compliance bounding boxes with Dlib 128-dimensional facial vector matching for high accuracy.
Uses WAL mode with explicit mutex locking (threading.Lock) to guarantee database integrity across concurrent background worker threads.
Background thread evaluates daily cutoff timestamps (e.g. 09:00 AM) and dispatches automated absentee email notices to parents/students.
HOVER NODES TO INSPECT SERVICE BOUNDARIES AND IMPLEMENTATION DETAILS
OpenCV VideoCapture / RTSP
OpenCV / NumPy
YOLOv8 / Dlib / OpenCV
CustomTkinter / Python
SQLite WAL / Thread Lock
Captures live video streams from USB webcams and IP RTSP camera streams.




4 MASTER SUBSYSTEMS — 3 SQLITE TABLES — 8 CORE PYTHON MODULES
Modern dual-theme presentation suite (Dashboard, Register, Attendance, Records, Settings) running background worker threads for 60 FPS UI responsiveness.
Batch multi-face detection, Ultralytics YOLOv8 mask compliance bounding boxes (Mask, No Mask, Incorrect), and 128-d Dlib face embedding vector matching.
Write-Ahead Logging database engine with explicit threading.Lock mutex guards across students, attendance logs, and audit records.
Background thread daemon scanning arrival timestamps against daily cutoff settings (e.g. 09:00 AM) and dispatching automated email notices.
Thread-Safe SQLite Write-Ahead Logging
Concurrent writes from background face detection threads and GUI operations caused database lock contention and crashes.
Configured SQLite Write-Ahead Logging (WAL) mode paired with explicit Python threading.Lock mutex guards.
Multi-Face Real-Time Batch Detection
Extracting 128-d facial embeddings for multiple students in a single frame dropped video FPS dramatically.
Engineered asynchronous worker threads and a single-item queue buffer system to detect, embed, and identify multiple faces simultaneously without main thread blocking.
Threaded Desktop GUI Architecture
Running computer vision models on the main UI thread caused interface freezing and unresponsive controls.
Isolated video capture and model execution inside background worker threads communicating via thread queues.