Overview
Real-time computer vision workforce attendance platform that connects to existing CCTV streams, recognizes employees the moment they walk in, verifies on-site presence with GPS, and syncs attendance straight into HRM workflows.
The problem
Biometric and RFID attendance creates queues at shift changes, fails when hands are wet, dusty or gloved on industrial sites, and stays vulnerable to proxy punching and manual tampering across distributed locations. Rolling out new hardware per site is slow and expensive.
The solution
Built a software-only attendance layer on top of cameras the client already owns. Face detection and recognition run on live RTSP streams, each recognition is paired with GPS and timestamp verification, and events stream into a monitoring dashboard plus the HRM system. No new biometric hardware, no per-employee enrolment hardware cost.
Project gallery
Technical architecture
Camera-ingest, recognition, and attendance-sync pipeline with site-level verification
Stream Ingest Service
Pulls RTSP feeds from existing site cameras, samples frames at a configurable rate and normalizes resolution before recognition.
Face Detection & Recognition Engine
Detects faces, extracts embeddings and matches them against enrolled employees, with confidence thresholds and duplicate-event suppression.
Presence & GPS Verifier
Confirms the recognition came from the expected site and shift window, flagging mismatches for supervisor review instead of silently accepting them.
Attendance API & HRM Sync
Exposes attendance records through FastAPI and pushes check-in and check-out events into HRM so payroll sees one source of truth.
Methodology
- Mapped each client site's camera layout and defined recognition zones at entry and exit points
- Built an enrolment flow that captures multiple angles and lighting conditions per employee
- Tuned similarity thresholds per site to balance false accepts against missed punches
- Added offline buffering so cameras or network drops never lose an attendance event
- Validated against manual attendance sheets for a full payroll cycle before go-live
Results & impact
Key impact
- Removed shift-change queues at biometric terminals
- Eliminated proxy attendance through face plus location verification
- Gave supervisors a live presence board instead of end-of-day reconciliation
- Payroll and HRM records now populate automatically from real attendance events
Challenges & solutions
Harsh Lighting and Dusty Lenses
Per-camera exposure normalization plus a quality gate that defers low-confidence frames to the next clean frame instead of guessing
Multiple People in One Frame
Per-face tracking so one walking group produces one attendance event per employee, not a burst of duplicates
Privacy Expectations
Face embeddings are stored instead of raw frames, and only attendance events and audit metadata are retained long term
Key implementation
Recognition and Attendance Event
def process_frame(frame, site_id, known_faces):
"""Match detected faces against enrolled employees."""
detections = detector.detect(frame)
events = []
for det in detections:
embedding = encoder.embed(frame, det.bbox)
employee, score = known_faces.match(embedding)
if employee is None or score < site_threshold(site_id):
continue
if debounce.seen(employee.id, window=90):
continue
events.append({
"employee_id": employee.id,
"site_id": site_id,
"confidence": round(score, 3),
"captured_at": utc_now(),
"direction": classify_direction(det.bbox),
})
return events