Majid Hussain

01 — Project

Retail Footfall Analytics

Multi-camera edge CV that turns RTSP feeds into footfall, attendance, demographics, and uniform compliance.

OpenVINOFastAPIFAISSQdrant
Edge computer vision system with cameras, AI inference, analytics, and API

5

RTSP Cameras

30+

FPS Processing

~15%

CPU Load

REST

API Endpoints

Edge

Local Agents

01 — Overview

High level system flow

Local edge agents run OpenVINO inference on RTSP feeds and push structured events to REST APIs.

RTSP Ingest

Detect

Track

Recognition

Analytics

REST API

OpenCV · OpenVINO · ByteTrack · FAISS · FastAPI

02 — Impact

Business impact

!

The Problem

Manual counting, badge systems, and audits don't scale across hundreds of retail cameras.

The Solution

Local edge agents run OpenVINO inference on RTSP feeds and push structured events to REST APIs.

The Result

Stable multi-camera footfall and attendance with dramatically lower CPU load.

~0%

CPU Load per Stream

(from ~60%)

30+

FPS Sustained

across 8 streams

8

Camera Streams

on Intel CPU

Real-time

Events to API

structured REST events

03 — Architecture

Edge architecture at a glance

Each component is optimized for low latency, reliability, and deterministic behavior on resource-constrained PCs.

04 — Challenge

Engineering Story

From hostile CCTV conditions to a production-safe edge pipeline.

  1. 01 · Problem

    Production CCTV is hostile to naive CV — lighting, angles, and false employee matches.

  2. 02 · Naive approach

    Run full-precision GPU models and simple nearest-neighbor face match.

  3. 03 · Why it failed

    Edge PCs lack GPU budget; false biometric matches poison attendance and footfall.

  4. 04 · Our approach

    OpenVINO INT8 edge inference plus FAISS top-2 margin gates for employee disambiguation.

  5. 05 · Result

    Stable multi-camera footfall and attendance with dramatically lower CPU load.

05 — Engineering

Tech stack highlights

OpenVINO

Optimized CPU inference

ByteTrack

Robust multi-object tracking

FAISS + Qdrant

Fast & accurate face matching

FastAPI

Async REST APIs at the edge

PyInstaller

Single-file exe deployment

Engineering Notes

Edge cases, deployment, and operational detail.

Occlusion, reconnect loops, operating-hour aware recovery, and anti-double-count cooldowns.

06 — Performance

Performance snapshot

CPU Usage

Per Stream

↓ from ~60%

FPS (Avg)

Across Streams

30+

Latency (P95)

End-to-end

120ms

Uptime

Last 30 Days

99.8%

Interested in how we built it?

Multi-camera edge CV that turns RTSP feeds into footfall, attendance, demographics, and uniform compliance.