Search for an “inventory control example” and you will mostly find ledgers. A perpetual-inventory table, a periodic stock count, an ERP screen that says you have 14 units of an item. None of those tell you whether the item is actually on the shelf where a customer can pick it up. That gap — between the number in the system and the facing in the aisle — is where most inventory control examples quietly fail, and it is exactly where this one starts. So let’s walk one concrete example end to end. Not a ledger reconciliation, not an economic-order-quantity formula, but a shelf-execution pipeline: cameras and mobile devices already in the store detect that a facing has gone empty, the system recognises that the gap is real rather than a record error, and a restock task lands in a staff member’s hand before the next shopper reaches for nothing. The scope here is deliberately narrow — shelf execution, not footfall, not customer behaviour. We are answering one question: is the product on the shelf, and if not, who fixes it and how fast? What Does an Inventory Control Example Look Like When It’s Grounded in Shelf Reality? Take a single SKU — say a 500ml bottled water, end-cap facing, store number 412. Here is the worked sequence, with assumptions stated as we go. At 09:14, the ERP says 22 units in stock. The perpetual-inventory ledger is internally consistent: deliveries in, sales out, nothing flagged. By the record, this is an in-stock item and no inventory control action is warranted. That is the system-of-record view, and on its own terms it is correct. At 09:15, a ceiling-mounted camera covering that end-cap captures a frame. A detection model — the kind built on a fine-tuned object detector running on existing store hardware — identifies the facing as empty: the planogram says three SKUs should occupy that bay, and one of the three has zero visible units. The model does not consult the ERP. It reports what the shelf shows. Those two readings disagree, and the disagreement is the whole point. The ledger says 22 units; the shelf shows zero on the facing. The difference between system-of-record stock and shelf-observed stock is the single most actionable signal in retail inventory control, and a record-only example can never surface it. This is the phantom-inventory problem in its most ordinary form — the 22 units are real, but they are in the backroom, misplaced two bays over, or were sold without scanning. The count is not lying. It is simply answering a different question than the customer is asking. How Does the Pipeline Tell a Real Stock-Out from Noise? A single empty frame is not yet an inventory control event. Lighting flickers, a shopper’s arm crosses the facing, a stocker is mid-restock. A pipeline that fires a task on every empty frame will train staff to ignore it within a week — alert fatigue is a more reliable way to kill a deployment than any model error. In our experience deploying retail computer vision, the persistence test is what separates a usable signal from noise: the facing has to read empty across a window of frames, not in one. The model we would size for this confirms the gap over, say, several consecutive captures spanning a few minutes (an illustrative threshold — the right window is tuned per store and per category), and only then classifies it as a confirmed on-shelf-availability gap rather than a transient occlusion. This is an observed-pattern from how these pipelines behave in live aisles, not a benchmarked constant; fast-moving categories tolerate a tighter window than slow ones. Once the gap is confirmed, the pipeline does two things at once. It cross-checks the ERP count, and it reconciles the planogram. If the record says zero too, this is an ordinary out-of-stock and the loop routes to reorder. If the record says 22 — our case — it is flagged as a phantom-inventory discrepancy, which is a different task: someone needs to physically locate the 22 units, not reorder them. The detection grounds the inventory control decision in what is on the shelf; the broader mechanics of how that detection survives messy store conditions are covered in how shelf-execution AI catches stock-outs and planogram drift without hardware replacement, and the conceptual framing of where this sits inside on-shelf availability is laid out in inventory control explained for shelf execution. Closing the Loop: What Task Reaches Store Staff? Detection that does not end in an action is just a dashboard. The loop closes when a restock or recovery task lands on a mobile device — the same handheld scanners or phones associates already carry — with the SKU, the bay, the planogram position, and the discrepancy type. For our bottled-water example, the task reads: facing empty at end-cap 412-A; ERP shows 22 units; locate and restock or correct count. The associate acts, marks it done, and the next camera capture confirms the facing is full again. That confirmation is the close — not the alert. Three numbers move when this loop works, and they are the same metrics the broader shelf-execution discipline is measured against: Metric What it measures What the example moves it from → to On-shelf availability rate % of facings with product present when scanned Empty facing corrected within the restock window instead of sitting empty until the next manual walk Planogram compliance rate % of bays matching the assigned layout Misplaced or empty positions surfaced continuously, not on a weekly audit cadence Time-to-restock Minutes from confirmed gap to refilled facing Reduced from “whenever someone notices” to the task-routing latency of the pipeline The payoff is the gap caught before the sale is lost: a customer reaching for water at 09:20 finds it there because the loop fired at 09:15. The measurable outcome is phantom inventory corrected at the facing — an observed-pattern benefit across shelf-execution engagements, not a published conversion figure, because the lost-sale recovery depends heavily on category, store traffic, and how quickly staff can act. What Hardware Does This Inventory Control Example Actually Need? A fair question from anyone who has been burned by a sensor-everywhere proposal: does this need new cameras, shelf weight sensors, or a procurement cycle? In the example as scoped, no. It reuses the ceiling and aisle cameras most stores already run for loss prevention, plus the mobile devices staff already carry. The detection model is sized to run within that existing footprint. This is not an accident of framing — it is a design constraint we hold deliberately. We size the inventory-detection pipeline against a GPU performance audit of the store’s existing hardware so the workload fits what is already installed, rather than gating the whole project on buying new edge devices. The same deployment-hardening discipline that keeps a CV defect-detection model alive when it moves from pilot to the production line applies here: a model that works in a clean demo and falls over under a store’s real lighting, camera angles, and frame rates is not a deployable inventory control example. If you want the procurement-oriented comparison of where this sits against tooling you may already own, inventory control software versus shelf-execution AI draws that line. Where the Example Still Fails Honesty about the boundary is what makes this an engineering example rather than a brochure. The pipeline degrades in predictable ways, and naming them is part of using it well. Lighting is the first. A facing in deep shadow under a failed fixture, or one washed out by afternoon sun through a storefront window, raises the false-empty rate — the model reads empty when product is present. Packaging redesigns are the second: when a supplier changes a bottle’s label or shape, a detector tuned to the old appearance can stop recognising it until it is retrained, which is why these models need a refresh cadence rather than a one-time training run. Occluded facings are the third — a pallet parked in the aisle, a tall display blocking the camera’s line of sight, or a shopper standing in front of the bay for the duration of the capture window. The persistence test helps with transient occlusion; it does nothing for a permanent one. These are not reasons to avoid the approach. They are the reasons to scope it to shelf execution and measure it honestly, the same way traditional inventory control techniques have their own well-understood failure modes. A periodic stock count is blind between counts; EOQ optimises order quantity and says nothing about whether the shelf is full. Every technique has a boundary; shelf-execution AI’s boundary is the visual reliability of the facing. FAQ How does inventory control example work, and what does it mean in practice? In this example, inventory control is grounded in shelf reality rather than a ledger: cameras and mobile devices already in the store detect that a facing has gone empty, confirm the gap is real, and route a restock task to staff. In practice it means the system answers “is the product on the shelf?” instead of only “what should the count be?”. What’s the difference between system-of-record inventory and shelf-observed inventory in this example? System-of-record inventory is the ERP or perpetual-inventory count — what should be on the shelf based on deliveries and sales. Shelf-observed inventory is what a camera actually sees on the facing. In the worked example the record says 22 units while the facing reads zero, and that disagreement is the actionable signal. How does shelf-execution AI detect a stock-out or planogram break in the worked example? A detection model on existing store hardware reads each camera capture of the bay and identifies an empty facing against the assigned planogram. A single empty frame is not enough; the gap must persist across a window of frames to rule out transient occlusion, after which it is classified as a confirmed on-shelf-availability gap. What restock task does the model trigger, and how is the loop closed with store staff? Once a gap is confirmed, a task lands on a staff mobile device with the SKU, bay, planogram position, and discrepancy type — for example “facing empty, ERP shows 22 units, locate and restock or correct count.” The associate acts and marks it done, and the next camera capture confirming a full facing is what actually closes the loop. Which inventory-control metrics does this example move — on-shelf availability, planogram compliance, time-to-restock? All three. On-shelf availability rises because empty facings are corrected within the restock window; planogram compliance improves because misplaced or empty positions surface continuously rather than at a weekly audit; and time-to-restock drops from “whenever someone notices” to the pipeline’s task-routing latency. What hardware does this inventory example need, or does it reuse existing store cameras and mobile devices? As scoped, it reuses the ceiling and aisle cameras most stores already run plus the mobile devices staff carry — no new sensors or procurement cycle. The detection pipeline is sized against an audit of the store’s existing hardware so the workload fits the installed footprint. Where does the example still fail — lighting, packaging redesigns, occluded facings? It degrades under poor or uneven lighting (raising the false-empty rate), after supplier packaging redesigns (until the model is retrained on the new appearance), and when facings are persistently occluded by pallets, displays, or shoppers. The persistence test handles transient occlusion but not a permanent blockage. How does the shelf-execution inventory control example compare to traditional inventory control techniques like EOQ or periodic stock counts? EOQ optimises order quantity and periodic counts reconcile the ledger, but neither tells you whether the shelf is currently full — both are blind to on-shelf reality between counts. The shelf-execution example complements them by answering the facing-level question continuously rather than on a schedule. How does this shelf-execution example handle the phantom-inventory problem where the system-of-record count says in-stock but the facing is empty? When the camera reads an empty facing but the ERP shows stock on hand, the pipeline flags a phantom-inventory discrepancy — a different task than a reorder. Rather than ordering more, it routes staff to physically locate and restock the units the record claims are present, correcting the count at the same time. If you take one thing from this example into your own stores — the kind we scope in our retail computer-vision work — make it the discrepancy itself: the next time an ERP screen tells you an item is in stock, ask what camera or person last confirmed it was on the shelf — and whether anything in your current setup would have caught the empty facing before the customer did.