VI
AI
Internal

Face Tracking Service

Standalone AI inference microservice for check-ins: detection → tracking → liveness → embedding → verification.

Design & development

5

Pipeline stages

CPU-only

Hardware

Role

An internal AI service for face-recognition attendance in Core CMS (mobile app and in-store kiosk). It runs as its own microservice so heavy inference never affects the business API.

Pipeline

  1. Face detection — SCRFD
  2. Tracking across frames — ByteTrack
  3. Anti-spoofing (printed photos, screens) — MiniFASNet
  4. Feature extraction — ArcFace (MobileFaceNet, 512-dimensional vectors)
  5. 1:1 verification against the employee's enrolled face

Everything runs on CPU with ONNX Runtime — no GPU needed, a good fit for self-hosted infrastructure.

Integration

  • API: verification, embedding extraction, tracking, WebSocket streaming, image quality checks at enrollment, health checks.
  • Employee logic, face enrollment and attendance live in Core CMS; embeddings are stored in PostgreSQL (pgvector).
  • Runs only inside the cluster (not public), with Prometheus metrics.
Face Tracking Service — a project by Vũ Xuân Bình