The challenge
Self-scanning shopping carts let customers scan items as they shop and skip checkout lines—but barcode swaps create costly shrinkage. If a shopper scans a low-cost item while placing an expensive product into the basket, catching it at the exit gate is awkward and too late.
To let shoppers correct honest mistakes on the spot, the cart needed to recognize items within moments of landing in the basket—running directly on compact cart hardware without flooding store Wi-Fi.
What we built
A small item dropping past trolley bars is visible for less than a second before larger boxes block the camera. We built a native C++ and GStreamer pipeline linked to the cart’s weight sensors that keeps a rolling five-second video buffer in memory—capturing the exact frames just before and after an item lands.
A lightweight fine-tuned vision model runs directly on the cart’s onboard processor, predicting both specific item and product-group IDs in real time and prompting the shopper on the handle screen whenever a mismatch occurs.
Scaling across thousands of grocery products
Supermarkets carry thousands of products with constantly changing packaging. Rather than labeling every item manually from scratch, we built a cloud review dashboard and Python training pipeline on EU-hosted OVHcloud GPUs + S3 where reviewers quickly confirm or adjust AI-suggested labels to train each new model release.
How it changed the experience
Shoppers get a polite, immediate prompt to fix scan mistakes while still in the aisle, store staff retain short event clips when verification is needed, and new product catalogs roll out smoothly without store bandwidth bottlenecks.
System architecture
Core engineering modules
- 5-second rolling video buffer
- C++ and GStreamer pipeline captures pre- and post-trigger frames around scale events so fast drops are never missed.
- On-cart real-time inference
- Compact fine-tuned vision model runs locally on embedded hardware for instant feedback without Wi-Fi lag.
- Item + product-group prediction
- Pairs exact SKU recognition with broader category matching to handle look-alike packaging reliably.
- Active-learning training loop
- Web review tool and EU GPU training pipeline turn real store clips into continuously sharper model versions.
Lessons from the build
Key engineering & product takeaways
- In physical vision systems, capturing the right 300ms frame window matters just as much as model accuracy.
- Running inference on the device removes store Wi-Fi bottlenecks and cloud video-streaming costs.
- AI-assisted label review cuts dataset effort dramatically when scaling across thousands of retail SKUs.
- Immediate in-aisle prompts turn loss prevention into a helpful customer experience.

