Home / Insights / AI and Machine Learning

AI and Machine Learning

Video Analytics for Retail Stores: Footfall, Queues and Privacy by Design

Most of the operational value in retail video analytics comes from counting and timing, not from knowing who anyone is. This guide explains how to measure footfall, dwell and queues with an architecture that avoids identification, what EU, UK and Australian regulators expect, and how to roll it out store by store.

TopicsAI and Machine LearningBusiness Operations and Integration

Key takeaways

  • Footfall, occupancy, dwell and queue length can be measured from anonymous detections; none of these use cases needs facial recognition or persistent identities.
  • Process video at the edge, keep only aggregate counts and events, and discard frames quickly: that single design choice removes most privacy and security risk.
  • Regulators draw a sharp line at identification. The EDPB treats simple counting as outside special-category rules, while the Australian Information Commissioner found Bunnings’ facial recognition breached the Privacy Act.
  • Accuracy depends on camera placement, lighting and occlusion more than on the model; budget for a site survey and for measuring counts against manual ground truth.
  • Start with one decision you want to change, such as staffing tills or opening hours, and prove the data improves it in a few pilot stores before scaling.

Store operators have always wanted to know how many people come in, where they go, how long they wait and when the queue gets too long. Door counters and till data answer part of that. Modern computer vision can answer much more from cameras many stores already have, and edge hardware has made it affordable to run models inside the store rather than streaming video to the cloud.

The difficulty is that cameras pointed at customers raise legitimate privacy concerns, and regulators have become specific about where the lines are. A project that starts as “count shoppers at the entrance” can drift into tracking returning customers or estimating demographics, and each step changes the legal position. This article is for retail operations directors, heads of store technology and CTOs evaluating video analytics. It covers which use cases deliver value, an architecture that avoids identifying anyone, the regulatory picture in the EU, UK and Australia as of mid-2025, accuracy and cost drivers, and a rollout plan.

Our Computer Vision Development team builds detection, counting and video analytics systems that run in the cloud, on edge hardware or on mobile devices, with attention to faces and other personal data such as blurring or not storing personal features. The approach below reflects how we would scope a retail deployment.

Which retail questions video analytics can answer

It is worth separating use cases by the decision they support, because that determines the accuracy you need and the data you must keep.

Use caseDecision it supportsData neededIdentification needed?
Footfall counting at entrancesStaffing, opening hours, marketing effectiveness, conversion rate with till dataLine-crossing counts per time intervalNo
OccupancyCapacity limits, heating and cooling, cleaning schedulesRunning count in and outNo
Zone dwell and heatmapsLayout, merchandising, promotional placementAnonymous detections per zone over timeNo
Queue length and wait timeOpening additional tills, self-checkout allocationCount in queue zone; estimated waitNo
Shelf gaps and planogram checksReplenishmentShelf images, no peopleNo
Demographic estimates (age, gender)MarketingInferred attributesNot strictly, but higher risk and often low value
Recognising returning or banned individualsSecurity, loyaltyBiometric templatesYes: highest legal risk

The first five rows are where most of the operational return sits, and none of them requires knowing who anyone is. Shelf monitoring does not even need to capture people. The last two rows are where projects get into trouble, and in our view the business case rarely justifies the risk.

Combine video with data you already hold

Counts become far more useful when joined to point-of-sale transactions, staffing rosters and promotions. Footfall plus transactions gives conversion; queue length plus till staffing shows where labour is misallocated. Plan these integrations from the start, because they determine the time resolution and store identifiers the analytics must produce.

A privacy-by-design architecture

The most effective privacy control is architectural: do not create or keep data that could identify people. The pattern below achieves that for all the non-identifying use cases in the table.

Reference flow

  1. Capture. Cameras positioned for the task: overhead or high-angle for counting, which also reduces facial detail. Audio disabled.
  2. Edge inference. A small computer in the store runs person detection and tracking within the camera’s field of view. Track identifiers are short-lived and reset when a person leaves the frame or after a short time.
  3. Aggregation at the edge. The device converts tracks into counts, line crossings, zone occupancy and queue lengths per interval.
  4. Discard frames. Raw frames are dropped immediately after inference. If any image retention is needed for model validation, it is a separate, time-limited process with masking or blurring.
  5. Send aggregates only. The cloud receives numbers and events, never video. Dashboards and integrations use these aggregates.

Why edge processing matters

Streaming video to the cloud means personal data leaves the store, crosses networks and sits in storage you must secure and justify. Processing at the edge keeps the sensitive part local and transient. It also reduces bandwidth and works when connectivity is poor. The trade-off is managing a fleet of devices: updates, monitoring and hardware failures. Our article on computer vision for fitness apps with privacy by design discusses similar on-device trade-offs in a consumer setting.

Controls that support the design

  • Privacy masks on camera views to exclude areas such as staff rooms, toilets, pharmacy counters or the street outside.
  • No re-identification across cameras; each camera counts independently, or cross-camera matching uses only coarse location and timing.
  • Encrypted device storage, signed software updates and logged remote access.
  • A documented list of what the system can and cannot do, so that scope creep is a visible decision rather than a configuration change.

What regulators expect: EU, UK and Australia

This is not legal advice, and you should involve your data protection officer or counsel. But the regulatory direction is consistent across markets: counting is manageable; identification is high risk.

European Union and UK GDPR

The European Data Protection Board’s Guidelines 3/2019 on processing personal data through video devices, adopted in January 2020, remain the most detailed reference. Key points for retail analytics:

  • Video is not automatically biometric data. It becomes biometric when processed with measurements to uniquely identify a person.
  • Simply counting people, or classifying them for statistics without creating templates to identify individuals, does not fall under the special-category rules in Article 9, provided no other special-category data is processed.
  • Using facial templates to recognise returning individuals is biometric identification and generally requires explicit consent from everyone captured, which is impractical in a shop.
  • Controllers relying on legitimate interests must consider less intrusive means, and a data protection impact assessment is likely for many video uses.
  • Signage should be layered: a first-layer sign at eye level stating the purpose, controller, rights, storage period and the main impacts, with fuller second-layer information available, for example through a QR code.
  • The guidelines recommend privacy-enhancing features such as masking irrelevant areas and disabling unnecessary functions such as audio, and suggest that recorded footage should in most cases be erased after a few days, with retention beyond 72 hours needing stronger justification.

The UK applies the same GDPR principles through UK GDPR, and the ICO’s video surveillance guidance covers CCTV and facial recognition.

The EU AI Act

According to the European Commission’s AI Act overview, the Act entered into force on 1 August 2024 and its prohibitions have applied since 2 February 2025. The banned practices include emotion recognition in workplaces and education, biometric categorisation to infer protected characteristics, and untargeted scraping of facial images from the internet or CCTV to build facial recognition databases. Remote biometric identification and emotion recognition systems outside those bans are treated as high-risk, with most remaining obligations applying in later phases. Retailers should be careful with any vendor feature that claims to infer shopper or staff emotions. For a buyer’s view of the Act, see our guide to EU AI Act risk categories and vendor questions.

Australia

In November 2024 the Office of the Australian Information Commissioner found that Bunnings breached Australians’ privacy by using facial recognition through CCTV at 63 stores in Victoria and New South Wales between 2018 and 2021, capturing the faces of everyone who entered. The Commissioner found sensitive information had been collected without consent, people were not adequately notified, and the technology was the most intrusive option, affecting every customer rather than only high-risk individuals. The determination is subject to review rights, but it shows how an Australian regulator assesses necessity and proportionality for in-store cameras.

What this means in practice

A system that counts and times anonymously, processes at the edge and keeps only aggregates sits on far safer ground than one that recognises faces. Document that design in your impact assessment and in your signage.

Accuracy: what drives it and how to measure it

Vendors quote high accuracy figures, but counting accuracy in a real store depends heavily on the physical environment. Treat any quoted figure as a hypothesis to test in your own stores.

Main drivers

  • Camera angle and height. Overhead views at entrances reduce occlusion and give the best line-crossing counts. Angled security cameras are cheaper to reuse but struggle in crowds.
  • Lighting. Strong backlight from glass entrances, low evening light and reflections all cause missed or false detections.
  • Crowding and occlusion. Groups, prams, trolleys and children walking close to adults are classic error sources.
  • Staff. Unless you exclude staff, counts include them. Options include staff-only entrances, uniform-based filtering or subtracting rostered movements; each has limits.
  • Model and training data. General person detectors work well, but some environments benefit from fine-tuning on representative store footage, collected under a controlled, time-limited process.

Bias and identification systems

Counting models detect bodies, not identities, so demographic bias is less of a concern than in face recognition. For any system that does attempt identification, the evidence is a strong warning: NIST’s 2019 study of 189 face recognition algorithms found false-positive rates varied by demographic group, by factors of roughly 10 to 100 in one-to-one matching for some algorithms, although the most accurate algorithms were also among the most equitable. In a retail security setting, a false match means a real customer wrongly treated as a suspect.

How to validate

  1. Agree target metrics per use case, for example counting error per hour at entrances and queue length error at tills.
  2. Collect ground truth by manual counting for representative periods: busy and quiet times, day and evening.
  3. Compare system output against ground truth and report error by condition, not only as an average.
  4. Repeat after any camera move, layout change or software update.

If you need labelled footage for fine-tuning or validation, our guide to image labelling guidelines, quality control and cost drivers explains how to keep it consistent.

Build, buy or combine: choosing a delivery model

There are three broad routes, and many retailers combine them.

OptionStrengthsWatch-outsFits when
Dedicated people-counting sensorsPurpose-built, simple, often good accuracy at entrancesLimited to counting; separate hardware per door; vendor data formatsYou mainly need footfall and occupancy
Video analytics platform on existing camerasReuses cameras; broad feature set; quick to pilotCheck where video is processed and stored, which features use biometrics, export of aggregate data, licence per cameraYou want several use cases quickly and accept platform constraints
Custom models and edge pipelineFull control of data flow and features; integrates with your systems; no unnecessary capabilitiesBuild and device-fleet management effort; needs ongoing ownershipPrivacy requirements are strict, integration matters, or use cases are specific to your format

Vendor questions that expose risk

  • Does any video or image leave the store? If so, where is it stored, for how long and who can access it?
  • Which features use face detection, face recognition or attribute inference, and can they be disabled completely rather than hidden?
  • Are tracking identifiers persistent across visits or cameras?
  • Can we export raw aggregate data via an API in a documented format?
  • What accuracy evidence do you have from stores like ours, and will you support a ground-truth validation?
  • How are devices updated, monitored and secured?

Cost drivers and the risks that undermine projects

Cost drivers

  • Cameras: reusing existing CCTV saves money, but dedicated overhead cameras at key points often pay back in accuracy.
  • Edge hardware: one device per store or per group of cameras, plus installation and networking.
  • Software: per-camera or per-store licences for platforms, or development and maintenance for a custom pipeline.
  • Integration: joining counts to POS, rostering and BI systems is often underestimated.
  • Operations: device monitoring, updates, revalidation after store changes and support.
  • Governance: impact assessments, signage, policies and periodic reviews.

Risks

  • Scope creep from counting into identification or emotion inference, often through a vendor feature switched on later.
  • Staff surveillance concerns. Cameras that count customers also see employees. Consult staff representatives and be explicit that the system is not used for individual performance monitoring, if that is the case.
  • Unused dashboards. Analytics that nobody acts on. Tie each metric to a decision and an owner.
  • Silent accuracy drift after a refit, a moved camera or seasonal lighting changes.
  • Security of devices placed in public areas and connected to your network.

For example, a 30-store grocery chain might start with entrance counting and till-queue monitoring in five stores, link both to rosters and POS, and measure whether queue alerts reduce wait times and abandoned baskets over a quarter. The figures are illustrative; the point is to measure an operational outcome, not just collect data.

A rollout plan and checklist

Step-by-step

  1. Define decisions. List the two or three operational decisions the data should improve and who owns each.
  2. Impact assessment. Complete a DPIA or privacy impact assessment covering purpose, necessity, less intrusive alternatives, retention and staff impact.
  3. Site survey. Review camera positions, lighting and network in pilot stores; add or move cameras where needed.
  4. Pilot build. Deploy edge processing with aggregates-only output and masked camera views.
  5. Validate. Measure accuracy against manual ground truth across busy and quiet periods.
  6. Integrate. Join counts with POS and rostering; build the minimum dashboard and alerts for the chosen decisions.
  7. Measure outcomes. Track whether staffing, queue times or conversion actually change.
  8. Scale. Roll out in waves, with a standard installation pack, device monitoring and revalidation schedule.

Privacy and readiness checklist

  • No facial recognition, biometric templates or emotion inference in scope; features disabled at source.
  • Video processed at the edge; frames discarded after inference; only aggregates leave the store.
  • Tracking identifiers are short-lived and not linked across visits.
  • Privacy masks applied to sensitive areas; audio disabled.
  • Layered signage at entrances with a link to fuller information.
  • Impact assessment approved and reviewed when scope changes.
  • Staff informed and consulted; use for individual monitoring excluded or explicitly governed.
  • Accuracy validated per store and revalidated after changes.
  • Devices secured, updated and monitored.

Frequently asked questions

Is footfall counting with cameras legal under GDPR?

It can be, if you have a lawful basis, have considered less intrusive alternatives, inform people with appropriate signage and minimise data. The EDPB’s guidelines indicate that counting without creating templates to identify individuals does not fall under the special-category rules, but a data protection impact assessment is still advisable.

Can we reuse our existing CCTV cameras?

Often for some use cases, such as zone occupancy and queues. Entrance counting usually works best with overhead cameras. Reusing security cameras also means checking that analytics does not extend retention or access to security footage beyond what is justified.

Should we estimate customer age and gender?

Think carefully. It adds privacy risk and accuracy problems, and the marketing value is often modest. If you do it, make sure no templates or identifiers are created, results are aggregated, and the purpose is documented in your impact assessment.

What about using facial recognition to stop repeat shoplifters?

This is biometric identification, the highest-risk category. Regulators have found such deployments unlawful, as in the Australian Bunnings determination, and in the EU it requires a lawful basis that is very difficult to meet in an open shop. Consider less intrusive security measures first.

How long does a pilot take?

It depends on the number of stores, camera work and integrations. A pilot typically covers site survey, installation, a validation period across busy and quiet times, and integration with POS or rosters. Plan enough time to observe a full trading cycle, including weekends.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. European Data Protection Board: Guidelines 3/2019 on processing of personal data through video devices (v2.0, adopted 29 January 2020) — accessed 9 November 2026. When video becomes biometric data, counting without templates outside Article 9, layered signage, privacy-by-design features, DPIAs and retention of a few days with justification beyond 72 hours.
  2. Office of the Australian Information Commissioner: Bunnings breached Australians’ privacy with facial recognition tool (19 November 2024) — accessed 9 November 2026. Facts and findings of the Bunnings determination: 63 stores, 2018 to 2021, no consent, inadequate notice and disproportionate intrusion.
  3. European Commission: AI Act regulatory framework — accessed 9 November 2026. Entry into force on 1 August 2024, prohibitions applying from 2 February 2025, banned practices including workplace emotion recognition and untargeted facial scraping, and high-risk biometric systems.
  4. NIST: Study Evaluates Effects of Race, Age, Sex on Face Recognition Software (19 December 2019) — accessed 9 November 2026. Evaluation of 189 algorithms showing demographic differences in false-positive rates, with the most accurate algorithms among the most equitable.

Could your stores measure footfall and queues without identifying anyone?

We can assess your camera estate and use cases and design an edge-first video analytics pilot that keeps only the aggregates you need.