After years of installing automation, I have watched too many warehouses buy ai vision pallet count verification as if it were an appliance: mount a camera, install some software, and the numbers simply become true. They do not. It is like hiring a new inspector with excellent eyesight. Give that person a bad standing position, glare in the eyes and a load half hidden behind shrink wrap, and they will still miscount, only now with great confidence. Pallet counting is not a contest of model names. It is a contest of imaging conditions, decision rules and exception exits. This article takes the engineering view: where the technology earns its money, where it should not be forced, and the single number I use to judge payback.

First, be precise about the problem. Counting cases on a full pallet by hand is slow, and it fails in a particular way: on large, uniform loads the counter's attention drifts, one or two cases go missing from the tally, and nobody notices until the customer files a shortage claim. Vision counting earns its place at a fixed checkpoint where every pallet passes, gets photographed, gets counted and leaves a retrievable record behind. Fixed checkpoint is the operative phrase. A camera that roams the building hunting for pallets belongs in a demo video, not in a delivery contract.

Camera placement and lighting set the ceiling

When I scope a project, I do not start with the algorithm. I start with a ladder and the mounting position. A counting station has three basic requirements. The view must cover the counting faces of the load in one shot, or in a deliberate combination of shots. For regular stacking patterns, that usually means reading two visible faces and applying the stacking rule, or pairing a top view with side views to reduce occlusion. The distance and focal length must keep every case edge separable in the image, because once edges merge into one blob at low resolution, no downstream model can split them reliably. And the station must sit away from vibration sources and from dock doors that blast backlight into the lens. Vibration blurs, backlight blows out highlights, and neither defect can be tuned away later in software.

This is like taking a group photograph from too far away. If the faces blur into each other, no filter afterwards will restore them. Counting obeys the same physics: image quality at the sensor is the ceiling for everything downstream. The pallet's behavior at the station matters just as much. A stopped pallet and a slow drive through pallet need different exposure and lighting setups, and the choice must be made deliberately. Lighting should come from controlled, constant fixtures at the station rather than the warehouse ceiling lights, whose output effectively changes with daylight and with dock doors opening and closing. Thresholds tuned at noon will drift on the night shift. Do not accept verbal assurances on any of these parameters. Test them at acceptance under day shift, night shift and doors open conditions, and hold the vendor to the figures in their current official documentation and your agreed acceptance standard.

One project I delivered makes the point concretely. A beverage distributor in a high volume outbound operation had manual counting as its bottleneck and a steady stream of shortage complaints. Our first design put a single camera above the outbound lane, counting the top layer and multiplying by the number of layers. It failed quickly and predictably: their stacking was not always layer true, and cases were sometimes pulled from middle layers where the top view could never see the gap. We rebuilt the station with two side cameras plus a top layer check, and the system stopped computing a simple total. Instead it counted layer by layer, compared layers against each other, and routed any pallet whose layers disagreed to a human. False releases dropped sharply. The price was a slightly slower cycle time. That is the honest trade off at the heart of pallet counting: chase fully automatic release and you inherit the blind spots that occlusion creates, or admit that some stacking patterns cannot be judged by machine and route them to people. Forcing a verdict on an unreadable pallet is how these projects get their bad reputation.

The opposite case is equally instructive. An electronics materials warehouse I worked with used one uniform case size, disciplined stacking, and a small set of standard quantities per pallet. That site barely needed counting at all. The vision system worked as a verifier: it compared the cases and layers in the image against the task order and intercepted mismatches. Because the correct answer could only be one of a few standard values, confidence was naturally high and commissioning was short. I tell every customer the same thing: before asking how smart the system is, look at how disciplined your stacking is. The messier the load, the more you should fix the stacking before buying intelligence.

Exception handling is the real product

When I evaluate a counting system, I spend most of my time on its exception exits. Any system can count the easy pallets. Whether it survives on your floor depends on what it does with the other kind. The common exception families are crushed or deformed cases with unclear outlines, stretch film glare hiding case boundaries, mixed case sizes on one pallet, inconsistent label orientation, and skewed pallets that present an incomplete counting face. Each family needs a defined exit: degrade to manual verification, demand a restack and reshoot, or release against the task quantity with the image stored and the risk flagged. The design I fear most is the one that throws a red box at the operator for every exception and offers no procedure. Operators who see red boxes all day learn to bypass them, and a bypassed system is furniture.

The exception path must also connect to the warehouse management system's task states. A pallet that fails verification should freeze its outbound task automatically, generate a recount task, and attach the captured images to that task, so the checker works from evidence rather than walking out to stare at the load. Only a confirmed resolution should release the task. If the vision system is an island that alarms on its own screen and changes nothing in the task flow, the floor will route around it with radios and paper within a month. One more requirement is routinely forgotten: retain the images and verdicts, keyed by pallet or task identifier, for a period your compliance obligations and customer contracts demand. When a shortage claim arrives weeks later, that stored image is the difference between proving your count and arguing about it.

On cost, I judge these projects by one number: the fully loaded verification cost per pallet. Add up what manual counting truly costs per pallet, including the labor, the claims and reshipment freight that counting errors cause, and a fair allowance for the customer trust those errors burn. Then compare it with the vision route per pallet, including equipment, implementation, maintenance and the human time still spent on exceptions. Ignore any pitch built on recognition accuracy alone. High accuracy paired with a high exception rate, where every exception stops the line waiting for an engineer, produces a cost per pallet that never comes down. A disciplined warehouse that automates the standard majority and routes a minority of exceptions to people will see that number fall in a way anyone can audit. Actual investment varies too widely by site and vendor to quote responsibly here, so rely on formal quotations and the vendor's current published terms, and use this method, not a headline percentage, to compare them.

My conclusion is plain. Vision pallet counting is worth buying, provided three things happen first. Test the system on your ten ugliest pallets, not the vendor's showroom load. Write the exception exits and the manual verification flow into the acceptance criteria, not just an accuracy figure. And put responsibility for miscounts, plus tuning support during the bedding in period, into the contract. Do those three things and you own a machine that will work for years. Skip them and you own a rather expensive camera on a wall.

By Da Liu, Automation Engineer