Retail AI Video Analytics for Operational Intelligence
DATAFOREST developed an AI-powered video analytics platform that transforms CCTV footage into actionable retail intelligence. Using computer vision and edge AI, the solution tracks customer traffic and movement, detects queues and operational gaps, and centralizes insights across locations. Built for retail, the platform provides a scalable foundation for multi-site deployment and expansion into other industries.
~
92
%
customer-count accuracy
<
2
event detection latency
5
+
Retail Operations Insights Tracked

The client is a Saudi Arabia-based technology company serving large organizations across multiple sectors. It was looking for a reliable AI and computer vision partner to develop a retail-focused platform while building a scalable foundation for future video analytics solutions across other industries.
Ultralytics YOLO
ByteTrack
Python
FastApi
PostgreSQL
THE CHALLENGE
Turning Passive CCTV Footage into Reliable Retail Intelligence
Retail locations already generate large volumes of CCTV footage, but operators often lack structured data on visitor traffic, customer movement, staff availability, and service bottlenecks.
The challenge was to convert live video into trustworthy operational events while accounting for real store conditions and preparing the solution for multi-site growth.
Accurate customer counting across complex store journeys
Simple detection can count the same person more than once when a visitor changes zones, leaves, or re-enters. The platform needed persistent tracking and configurable counting logic to reduce duplicates and report traffic by camera, zone, and time period.
Separating employees from customers without disrupting operations
Staff movement can distort visitor metrics. The solution needed a practical approach to employee and customer differentiation, with performance validated against representative client footage and real camera views.

Understanding movement beyond basic footfall totals
A total visitor count does not show where shoppers spend time or which areas receive little traffic. Store teams needed movement and presence heatmaps to support layout, merchandising, and operational decisions.
Detecting operational gaps from existing camera feeds
Managers cannot continuously review video for unattended counters, employee absence from assigned zones, or developing queues. The solution needed timestamped operational events with optional visual evidence.
Maintaining performance across edge, network, and cloud environments
Real-time analysis requires stable video ingestion, local compute, secure data transmission, and recovery from connectivity interruptions. The architecture also needed centralized monitoring across cameras, devices, branches, and models.
Validating AI under real-world retail conditions
Camera position, lighting, occlusion, resolution, store layout, and traffic patterns directly affect model performance. Accuracy targets could only be finalized after environment assessment, calibration, and solution validation.
THE SOLUTION
From CCTV Footage to Centralized, Actionable Store Intelligence
DATAFOREST developed an AI-powered platform combining computer vision, centralized analytics, and operational dashboards to transform CCTV footage into actionable business insights. The platform sends structured events, analytics, and system health data to a centralized cloud environment, enabling low-latency processing, reduced bandwidth usage, offline tolerance, and scalable multi-location deployment.
Initially designed for retail, the platform provides a scalable foundation for expansion into construction, logistics, industrial facilities, municipalities, and other commercial environments.
Detection, tracking, and identity-aware counting
YOLO and ByteTrack detect and track customers as they move through the store. Appearance-based re-identification helps reduce duplicate counts across more complex customer journeys, where camera conditions and available data support reliable identification.
Heatmaps and movement analytics
The platform converts movement and zone presence into historical heatmaps, occupancy data, and traffic analytics, helping teams understand where customers spend time and how different store areas perform.
Local video processing and secure cloud aggregation
OpenCV and GStreamer ingest RTSP/ONVIF camera streams, while computer vision models run locally on NVIDIA Jetson-class edge devices. FastAPI services process validated events, PostgreSQL stores operational and analytical data, and local buffering with automatic synchronization helps preserve event continuity during network interruptions.
Employee and customer differentiation
Appearance-based re-identification and configurable tracking rules help distinguish employees from customers and exclude staff activity from visitor counts. Performance is calibrated and validated using representative store footage and actual camera views.
Queues and operational event detection
Computer vision models identify operational conditions such as developing queues, employee absence from assigned zones, and unattended checkout counters. Selected events can include timestamps, branch and camera identifiers, confidence scores, and optional visual evidence.
Real-world AI validation and centralized monitoring
DATAFOREST calibrates the system in representative stores and measures counting, tracking, event, and platform performance against agreed criteria.
A React dashboard centralizes customer counts, heatmaps, queues, employee events, historical trends, alerts, and camera health, while an API layer supports future integrations and expansion into additional use cases.
THE RESULT
AI Video Analytics Platform That Transforms CCTV Footage into Store Operations Insights
The solution transformed CCTV streams into structured operational data that retail teams could use to monitor customer traffic, understand in-store movement, identify queues, and detect service gaps.
Edge processing enabled low-latency video analysis, while centralized dashboards provided visibility into customer activity, employee presence, operational events, historical trends, and camera health. Local buffering and automatic synchronization supported continuity during network interruptions.
The solution also produces accuracy, business value, and production readiness assessments to support wider deployment decisions.
Designed as the first phase of a broader AI Operations Intelligence Platform, the solution provides a scalable foundation for expansion into construction, industrial facilities, municipalities, logistics, and other commercial environments.
Key Results:
- More reliable customer counts through detection, tracking, and duplicate-count reduction
- Historical heatmaps showing high-traffic and low-traffic store areas
- Automated detection of queues, unattended counters, and employee absence from assigned zones
- Timestamped operational events with camera, branch, confidence, and optional visual evidence
- Centralized monitoring of customer activity, operational events, and camera health
Customer-Count Accuracy
Event Detection Latency
Retail Operations Insights Tracked
Latest publications
All publicationsLatest publications
All publicationsWe’d love to hear from you
Share project details, like scope or challenges. We'll review and follow up with next steps.










.webp)

.webp)