Cover art for the article Edge Computer Vision deployment in five gates

Edge Computer Vision deployment in five gates

A model that scores well in the lab can still miss the reject diverter by milliseconds. Five gates decide what runs where before any hardware is bought.

AI/ML DECEMBER 2, 2026

An edge Computer Vision system on a packaging line works to a deadline set by physics. With the reject diverter 200 millimeters past the camera and a belt speed of 2 meters per second, the system has 100 milliseconds to capture the frame, run the model, decide and fire. A model that scores well on the validation set and runs at 40 frames per second on a development workstation can still miss that deadline on its slowest frames.

A training report rarely predicts that miss. Accuracy is measured on curated images, latency is measured for the model alone on a desktop GPU, and few teams write down how many milliseconds each stage of the line may take.

Edge deployment of Computer Vision is an architecture decision about what runs where, made in a fixed order. This article sets out the five gates we use to make that decision before any hardware is bought.

The cost of a late hardware decision

A model that misses its latency budget forces a hardware change after the enclosure, the power supply and the line controller integration are already specified. Each of those carries lead time and sign-off, so a change to the compute module reopens all three. A model that overheats in a sealed cabinet or drifts after a packaging change forces a retraining cycle under production pressure, with operators who have already started overriding the system.

The same network can differ in latency by more than an order of magnitude across devices. A 2026 hardware-aware survey of edge vision deployment aggregates published benchmarks for ResNet50 classification at 224 by 224 resolution: 28.5 ms on a Jetson Nano, 42.2 ms on a Coral USB accelerator and 0.7 ms on a Hailo accelerator. Those figures come from different sources and settings, so they give orders of magnitude, and the accuracy measured during training predicts none of them.

Each of these failures traces back to a decision made in the first month. The team picked a device before it had a budget, or measured a stage in isolation and assumed the rest would fit.

Why accurate models fail on the device

Three mechanisms explain most of the gap between lab results and production behavior. Each one can be measured before launch.

Memory traffic sets latency on small accelerators

Teams often rank candidate networks by multiply-accumulate (MAC) count because it is easy to compute from the architecture. A benchmark of ten sub-watt edge devices tested that proxy directly. On all four accelerators it measured, latency tracked the bytes of weights and activations the model reads and writes, with a correlation of at least 0.98, and did not track MAC count.

The authors conclude that MAC count is a misleading cost proxy for sub-watt accelerators. A network with fewer MACs can run slower than a larger one when its activations spill out of on-chip SRAM. The same study found the NPU advantage over a 1 GHz Cortex-M85 microcontroller ranged from 1.4 times on MCUNetV1 to 8.2 times on SqueezeNet, depending on arithmetic intensity, so every candidate model gets measured on the target device.

Unsupported operators fall back to the CPU

Accelerators run a fixed set of operators at a fixed precision. The Coral Edge TPU, for example, runs only TensorFlow Lite models that are fully 8-bit quantized, and at the first unsupported operation in the graph the compiler splits the model, so everything after that point runs on the host CPU. One custom activation or an unusual resize layer near the top of a detector can move most of the network off the accelerator.

The compiler reports this. The Edge TPU compiler prints how many operations will run on the Edge TPU and how many on the CPU, TensorRT logs layers that fall back to higher precision, and OpenVINO reports per-layer execution on the selected device. The team reads those logs for every model version and treats any fallback on the critical path as a defect to fix in the model.

The accelerator is one stage of the pipeline

A model runs inside a pipeline that also captures, resizes, normalizes and post-processes frames. A benchmark of vendor-guided deployment on four edge NPUs separated the NPU from the full pipeline across ResNet50, YOLOv5m and YOLOv8s-pose. The vendor-native end-to-end pipeline reduced system-level latency in all 12 NPU and workload combinations, by an additional 10.4% to 70.7% over the NPU-only configuration, and accuracy decreased in eight of the 12.

The rankings also moved. For ResNet50 on a shared Jetson Orin Nano host, the DX-M1 was the slowest of three NPUs in the NPU-only measurement and produced the lowest system-level latency end to end. Tools such as trtexec on Jetson and benchmark_app in OpenVINO time the model alone, so they measure one stage of five, and the hardware trial must time the full pipeline.

Where the latency budget goes

Every production vision system has a deadline set by the physical process. A conveyor moves an item a fixed distance between the camera and the diverter, a self-checkout camera has a customer waiting, and a field device has a battery and a duty cycle. The deadline covers five stages, and inference is usually the one teams have already measured.

Flow from item visible through capture, preprocess, inference, decision logic and controller signal to a 99th percentile deadline check. Click to expand
The five stages that share a 100 ms scan-to-decision deadline, checked at the 99th percentile.

The table below is a planning budget for a 100 ms scan-to-decision requirement in line inspection. The figures are starting allocations for a first draft, and the team replaces each one with a measured 99th percentile from the target hardware.

StagePlanning allocationCommon hidden cost
Capture and transfer15 msExposure time, GigE or USB frame buffering
Preprocess10 msResize and color conversion running on the CPU
Inference30 msOperators that fall back to the CPU
Decision logic10 msTracking across frames, SKU lookup, threshold rules
Signal to the line controller15 msPLC scan cycle and fieldbus latency
Reserve20 msGarbage collection, thermal throttling, burst load

Two choices in this table are deliberate. The reserve is explicit, because a budget with no headroom fails on the first warm afternoon. Reporting to the manufacturing execution system (MES) is absent, because it runs asynchronously after the decision and must never sit on the critical path. A team that spends 70 ms of a 100 ms budget on inference leaves 30 ms for four other stages and nothing for reserve.

The five-gate edge deployment sequence

We make edge decisions in a fixed order, and each gate constrains the next. Each gate produces a short written record that engineering and operations both sign, so a later change has a visible cost.

Sequence of five gates from latency budget to operating loop, with a hardware trial check that loops back to the quantization gate on failure. Click to expand
Each gate constrains the next, and a failed hardware trial sends the team back to quantization.

Gate 1 sets the end-to-end latency budget

The first gate converts the physical process into a number. The team measures the time between the moment an item becomes visible and the moment an action must complete, then allocates that time across the five stages and a reserve. The output is a one-page budget with a worst-case figure per stage.

The budget also names the percentile that must hold. A requirement that the 99th percentile of scan-to-decision stays under 100 ms is a far stricter specification than a mean of 60 ms, because a conveyor does not slow down for slow frames. Stating the percentile makes every later hardware test unambiguous.

Gate 2 decides what runs on the device and what runs in the cloud

Detection and any decision that drives a physical action belong on the device. They sit inside the latency budget and must keep working when the network drops. Trend reporting, retraining, fleet-wide comparisons and human review of flagged frames belong in the cloud or on a site server.

The split also controls bandwidth and storage. A camera at 30 frames per second produces about 2.6 million frames a day, and few sites want to transmit or keep all of them. The device sends results, short event clips and a sampled set of frames chosen for review, and the full stream stays local on a rolling buffer.

The gate carries one test. The team disconnects the uplink for an hour, and the line keeps running on the last deployed model while results queue locally with timestamps for later upload. A design that stops production when the network drops has placed a decision in the wrong location.

Gate 3 measures the cost of quantization

Quantization converts weights and activations from 32-bit floating point to 8-bit integers (INT8). It cuts memory traffic by about four times, and many accelerators require it to run the model at all. Post-training quantization (PTQ) converts a trained model using a calibration set of a few hundred representative images. Quantization-aware training (QAT) simulates the integer arithmetic during fine-tuning, so the weights adapt to it, at the cost of a longer training cycle.

As a planning figure, Google’s quantization whitepaper reports that per-channel PTQ to 8 bits kept a wide range of classification networks within 2% of floating-point accuracy, and that QAT narrowed the gap to 1%. Detectors behave less predictably, because box regression and small objects are more sensitive to activation range. We treat a PTQ loss above the agreed tolerance as the trigger to try per-channel calibration, a better calibration set and then QAT, in that order.

The measurement uses frames captured by the production camera under production lighting. A validation set of curated lab images misses the glare, motion blur and low-contrast frames the line produces, and those frames are where a reduced-precision model has the least margin. The set spans a full shift, keeps the rare defect classes, and is refreshed whenever packaging, lighting or camera position changes.

Gate 4 selects hardware against the measured budget

The fourth gate selects the silicon, using a trial with the actual model, the actual preprocessing and the actual camera. The trial records the 99th percentile of the full pipeline from capture to controller signal, the operator fallback report, and accuracy after quantization on the production set.

Thermal behavior needs its own check. A module that meets its latency target on a bench can throttle inside a sealed enclosure on a warm factory floor. A soak test of several hours at the expected ambient temperature, with latency logged throughout, exposes the problem. Where the result is marginal, a lower-power accelerator or a smaller input resolution costs less than a larger thermal design.

Four families cover the deployments we meet. The workload and the Gate 1 budget usually eliminate two of them within an hour, and the remaining two go into the trial.

TargetBest fitMain risk
Hailo or Coral-class acceleratorOne or two supported detectors or classifiers at low powerUnsupported operators fall back to the CPU
Jetson-class GPU moduleMulti-model pipelines, custom operators, heavy preprocessingCost per unit and thermal design
OpenVINO on an Intel CPUExisting industrial PCs at moderate frame ratesContention with other software on the host
Microcontroller with NPUBattery-powered sensing with tiny modelsSRAM limits on model size and input resolution

Gate 5 designs the operating loop before launch

A production vision system meets new product variants, changed packaging, seasonal light and aging cameras. The design states how a new variant is learned, how drift is detected, how updates reach the fleet and how a faulty update is reversed. Each of those paths is built and tested before the first production release.

Drift monitoring does not require transmitting every frame. The device logs the distribution of confidence scores, the rate of low-confidence decisions and simple image statistics such as mean brightness. It uploads a small sample, such as 1% of frames plus every frame below a confidence threshold. A shift in those statistics triggers human review before operators notice a change in outcomes.

Fleet updates need a staged rollout and a tested rollback. A canary group of about 5% of devices runs the new model for a full production shift, and an automatic revert fires if error rate or latency leaves agreed bounds. Each device keeps the previous model on local storage, so rollback needs no network transfer, and the team rehearses it on a test device before it is ever needed.

What the gates look like in a shipped system

Algorithmic built a vision inspection system for a global FMCG manufacturer, published as an anonymized case study. The system brought rework down more than 40% against the previous system, with near-100% detection accuracy across all SKUs and under 100ms from scan to decision, running on existing conveyors.

Several gates are visible in those results. Under 100ms from scan to decision is a Gate 1 budget held in production. Running on existing conveyors meant the compute had to fit the line as it stood, which is a Gate 4 constraint. Dimensions and QA status go to the MES in real time, which is the asynchronous reporting path from the budget table.

Gate 5 shows up as well. New box styles are learned after a single operator confirmation, so product variants enter the system through the daily routine of the line, without a retraining project for each new SKU. That is the Gate 5 question answered at design time.

A 30-day plan from budget to pilot

The plan suits a team with a trained model and a defined use case, piloting on one line or site.

Lifecycle from budget and data through hardware trial, device build and shadow mode, with a check that sends disagreements back for fixes or moves one line into supervised control. Click to expand
The 30-day path from a written budget to shadow mode and then control of one line.

Days 1 to 7 define the budget and the data

The team measures the physical deadline, writes the five-stage budget with its reserve and names the percentile requirement. It collects a validation set from the production camera across at least one full shift, covering the lighting changes and product mix the line sees. Operations signs the budget alongside engineering.

By the end of the week, the team knows the worst-case time available for inference and the minimum accuracy that keeps rework acceptable. These two numbers become the acceptance criteria for every later step.

Days 8 to 15 run the hardware trial

Each candidate model goes onto two or three targets. For each target, the team converts the model, applies INT8 quantization, reads the operator fallback report and measures accuracy on the production validation set. It then measures full-pipeline latency at the 99th percentile, including capture and preprocessing, and runs the thermal soak.

This phase ends with a short written comparison and a recommended target, with the measurements attached. If no target meets the budget, the team changes the model or the input resolution here, while the cost of change is still a few days.

Days 16 to 23 build the device and cloud split

In this phase the team implements the on-device pipeline, the event and sample upload path, and the offline queue. It disconnects the network for an hour and confirms that decisions continue and results arrive afterward. It also builds the confidence logging that feeds drift monitoring, the update mechanism and the automatic revert. Rollback built in week three costs far less than rollback added after the first incident.

Days 24 to 30 pilot in shadow mode, then in control

Shadow mode comes first, where the system logs decisions next to the existing process without actuating anything. Each disagreement is classified as a model error, a labeling error or a legitimate edge case. When disagreement falls within the agreed bound, the system takes control of actuation on a single line with operators supervising.

By day 30 the team has a latency distribution, an accuracy figure on production data, a drift baseline and a tested rollback. That is the evidence needed to approve a wider rollout, and the first point at which the cost of scaling can be estimated with confidence.

Failure modes we see most often

A budget measured at the mean is the most common. The pilot looks healthy on a dashboard that averages latency, while the slowest 1% of frames are the ones that reach the diverter late. Every latency chart in the project reports the 99th percentile next to the mean.

A calibration set that does not match production comes next. PTQ calibrated on clean lab images sets activation ranges that clip under glare or saturate in low light, and the accuracy loss appears only on the line. Calibration and validation both use frames from the production camera.

Silent CPU fallback after a model update is the third. A retrained model adds one operator the accelerator does not support, latency doubles, and nobody notices until the line does. The release pipeline fails any build whose fallback report or full-pipeline latency regresses.

The fourth is a device that needs the cloud to decide. A site network outage turns into a line stoppage, because the action depended on a remote call. The Gate 2 disconnect test catches this, provided the team runs it on the real network.

An update with no way back is the fifth. A fleet-wide push of a faulty model, with no local copy of the previous version, turns a model problem into a site visit to every device. Staged rollout and an on-device fallback model remove that risk for the cost of some storage.

What to do this week

Pick one use case and measure its physical deadline, from the moment the item is visible to the moment the action must complete. Write the five-stage budget with a reserve and name the percentile it must hold. Then collect one full shift of frames from the production camera and run your current model, quantized, on the device you plan to use.

Those three steps take a few days and tell you whether the current plan fits the line. They also give every later conversation about hardware, retraining and rollout a shared set of numbers.

Algorithmic designs and builds production Computer Vision systems end to end, from the latency budget and the hardware trial through the operating loop that keeps a fleet accurate after launch. If you are planning an edge deployment or recovering one that misses its budget, start a conversation.

Have a complex project in mind?Let's talk.

We limit our client roster to keep depth on every engagement. If your project needs senior engineering judgment from the first architectural decision, share it and we'll respond within 48 hours.

Get in touch