Computer Vision for Retail: Can Store CCTV Read the Shelf?
Computer vision for retail can read the store's existing CCTV and count who stopped, touched and took at the shelf, without identifying anyone. How it works.
Yes. Computer vision for retail has reached the point where the security cameras already hanging over the aisles can count, shelf by shelf, how many shoppers walked past, how many stopped, how many reached for a product and how many took it. The harder question is the one a retailer's legal team asks first: can that be done without identifying anyone? It can, and the design of the measurement decides it.
Key Takeaways
- Store CCTV can be read as shelf data: passed, stopped, touched and took, counted per shelf and per hour.
- Each event needs a written rule. A stop, for example, can be defined as 2 seconds or more below walking pace in front of the shelf.
- The European Data Protection Board says video analysis that classifies people without uniquely identifying them does not fall under the GDPR rules for biometric data. Recognizing the same person on a return visit does.
- In a Princeton and Stanford study published at ICML 2022, blurring faces lowered image recognition accuracy by 1.0 percent at most.
- "Took" should only be counted with visible evidence, and estimated attention from head direction is never eye tracking.
What computer vision for retail measures at the shelf
Computer vision is the field of software that reads images and video and turns them into structured data: a person here, a hand there, a product gone from that facing. CCTV is the closed-circuit camera system a store already runs for security, usually recorded on an NVR, the network video recorder in the back office.
The detectors that make this practical are public research. RF-DETR, a real-time object detector accepted at ICLR 2026, reports 48.0 AP on the COCO benchmark in its smallest version. What gets counted is a short funnel, and every step needs a rule a person can check:
- Passed. A person's feet stay in the zone in front of the shelf for at least half a second.
- Stopped. The person slows below walking pace for 2 seconds or more.
- Touched. A wrist, located by pose estimation, enters the shelf area for at least 0.3 seconds.
- Took. The shelf changes and stays changed, or the person examines the product in hand right after.
Pose estimation is the computer vision task of finding body keypoints such as wrists, shoulders and the head in each frame. It is how software knows a hand reached the shelf without knowing whose hand it was.
How shelf behavior is measured today
Most shelf decisions are still argued with sell-out, the record of what left the store. It says nothing about the shopper who stopped, picked up the pack, read the price and put it back.
When someone asks what shoppers actually did, a store audit checks whether the endcap was set up, an observer stands in the aisle for a few hours, or an eye-tracking study puts glasses on a small recruited sample. Academic work on in-store paths needed hardware of its own: Larson, Bradlow and Fader mapped supermarket shopping paths in the International Journal of Research in Marketing by putting RFID tags on the bottom of every shopping cart in one store.
| Method | What it sees | Who it identifies | Scale |
|---|---|---|---|
| Sell-out | What left the store | Nobody | Every store, every day |
| Store audit or mystery shopper | Whether the display is set up | Nobody | A visit per store |
| Observer in the aisle | Stops and touches, by eye | Nobody, in principle | A few hours, a few stores |
| Eye-tracking study | Gaze of recruited participants | Recruited, consented people | Small sample, one session each |
| Camera heat map | Where people circulate | Nobody | The camera's field of view |
| CCTV read by computer vision | Passed, stopped, touched, took, per shelf | Nobody, if designed that way | Every hour the camera records |
The first five rows describe common practice. The last row follows the method on the Shelf-Lab product page, and the comparison is ours.
Why the shelf stays invisible without it
UNIQUE INSIGHT Retailers sell shelf space and in-store media to manufacturers, and manufacturers fund endcaps, extra display points and activations. That money is priced on a number, and the number on the table is usually sell-out alone. Two errors follow.
The first is the shopper who put the product back. Low conversion at the shelf and low traffic in the aisle look identical in sell-out, and they call for opposite fixes: price or pack in one case, placement in the other.
The second is the season. Control stores are stores that run the same weeks without the action. Without them, an uplift from a holiday or a chain-wide promotion gets credited to the endcap. Difference in differences is the comparison that removes it: the change in test stores minus the change in control stores over the same two periods. The team that renews the space answers for whichever number reached the meeting.
How can I measure with AI how many shoppers stop, touch and take a product at the shelf, without identifying anyone?
Design the measurement so that identification never happens. The legal line is clearer than many teams assume. The European Data Protection Board's Guidelines 3/2019 on video devices state that a system which detects physical characteristics to classify people, without generating templates to uniquely identify them, does not fall under Article 9 of the GDPR, which restricts biometric data used for unique identification. The same guidelines give the opposite case: a system that recognizes a person re-entering the area or entering another one is aiming at unique identification from the start.
Biometric identification is the use of measurements of a person's body, such as facial measurements stored as a template, to recognize that specific person again. A shelf funnel never needs it. A counter only needs to know that someone stopped.
Here is a privacy-first sequence for a camera-based shelf study:
- Check which installed cameras frame the shelf, using NVR exports, and draw zones over a reference frame: aisle, front of the shelf, shelf.
- Detect people on each analyzed frame and give each one a temporary number that expires with the visit.
- Find wrists, shoulders and head keypoints, then cover every head with an irreversible blur before any clip leaves the store.
- Remove the audio and run a second face detector over every output frame as a safety net.
- Count passed, stopped, touched and took from the feet, the walking speed and the wrists against the zones, and link each event to the second of anonymized video that proves it.
- Report rates with a 95 percent confidence interval, and compare test stores with control stores before crediting any action.
Step three carries most of the legal weight. The EDPB guidelines note in paragraph 103 that blurring a picture with no retroactive ability to recover the personal data counts as erasure under the GDPR. Blurring also costs less accuracy than people expect. Yang, Yau, Fei-Fei, Deng and Russakovsky blurred the faces in ImageNet and found overall recognition accuracy dropped by 1.0 percent at most, in a study accepted at ICML 2022. A shelf counter reads feet and wrists, so the head is the part it can give up.
The refusals matter as much as the counts: no face recognition, no estimate of age, gender or emotion, no link to a loyalty card, and raw video stays inside the store.
Where the camera reaches its limits
ORIGINAL DATA On 5 public CCTV videos, the Shelf-Lab vision engine agreed with a human count of people in 10 frames per video between 83.3 and 100 percent. The misses were small figures behind shelves and people cut at the edge of the frame. Every study should publish its own agreement with a human count.
Three limits belong in any proposal. A camera that does not frame the shelf cannot measure it, and one extra camera per shelf fixes that. One pack taken from a stack of identical packs does not change the image, so it shows as a touch until a POS receipt closes the count. And attention estimated from head direction is an approximation that should never be called eye tracking.
Before anything changes in the store, the job belongs to a virtual shelf test with recruited participants, and of a packaging standout test before the pack reaches the aisle.
Where CassiAI comes in
CassiAI is a software engineering company specialized in the pains of market research, innovation and insights, founded by Cassiano Albuquerque after twenty years in market research. We automate research projects with or without language models.
Shelf-Lab is a CassiAI product that measures who passed, stopped, touched and took each product at the shelf, using the CCTV the store already has, with heads blurred at the source.
The vision engine runs on open-source models. Every number opens the clip behind it and carries a 95 percent confidence interval, and the effect of an endcap, a planogram change or an activation is measured against control stores. The proposed pilot runs 8 weeks with 4 test stores and 2 control stores. The demo's study and report screens use simulated data with fictional brands, flagged on every screen.
FAQ
Is there computer vision software that uses a store's existing CCTV to measure how shoppers interact with the shelf?
Yes. Shelf-Lab, from CassiAI, reads the store's existing security cameras and counts, shelf by shelf, who passed, stopped for 2 seconds or more, touched and took the product, with every head blurred at the source.
How can I measure with AI how many shoppers stop, touch and take a product at the shelf, without identifying anyone?
Give each shopper a temporary number that expires with the visit, blur every head before clips leave the store, never recognize faces, and count each event by a written rule.
Is shelf video analytics biometric data under the GDPR?
Not when it only classifies or counts. The EDPB video guidelines place recognizing a returning person under Article 9. Counting anonymous stops at a shelf does not need that.
Is estimated attention the same as eye tracking?
No. Head direction gives an approximate attention map. Eye tracking measures gaze with dedicated equipment on consenting participants.
The camera on the ceiling already saw the shelf
UNIQUE INSIGHT Every store records the shelf all day, and almost none of it becomes research data. Reading it takes a written rule for each event, a temporary number for each shopper, a blur over every head and control stores before any action gets credit. Built that way, a shelf measurement answers what sell-out cannot, without knowing who anyone is.
If your next endcap renewal will be priced on sell-out alone, list the shelves your current cameras already frame. We will show you how the study would run in your stores, with test and control stores.
About the author
Cassiano Albuquerque is the founder of CassiAI. He spent twenty years in market research operations before building software for research teams. Contact him on LinkedIn.
Published by CassiAI. Read the full article at https://www.cassiai.com/blog/computer-vision-retail-cctv.