Computer vision cloud integration works when each tier does what it does best. The edge device captures and preprocesses frames and makes the immediate quality decision. The cloud trains models, stores data and manages the fleet. A cloud round trip of 100 to 500 ms is acceptable for many applications but not for others, such as industrial inspection at production line speed. For any single stage, we would base the choice on three quantities you can measure before committing: the latency budget, the uplink each camera needs, and how heavily the edge hardware will be loaded at peak.
Under moderate load, edge hardware can return answers more slowly than a cloud data centre a few tens of milliseconds away.
Which Parts of a Vision Pipeline Belong in the Cloud, and Which on the Edge Device?
Stages that need real-time, low-latency processing close to the data source belong on the edge. Stages that need heavy training, big data storage or fleet management belong in the cloud. Ananthanarayanan et al. treat placement as a decision for each module in the pipeline. A pipeline of decoder, detector and tracker has each module placed at the camera, at a private cluster or in the cloud, depending on the compute and network capacity at each location. The table below is the default we would start from, along with the condition that would move each stage.
| Pipeline stage | Default home | What would move it |
|---|---|---|
| Capture, decode, preprocessing | Edge (camera or line-side box) | Capture cannot move: the pixels exist only at the camera until something sends them |
| Frame filtering (motion detection, frame differencing) | Camera or edge node | Rarely moves, because frame differencing runs in real time even on commodity cameras with a 1 GHz CPU and 256 MB of RAM |
| Time-critical inference (pass/fail, reject trigger) | Edge | A latency budget loose enough to absorb a 100 to 500 ms round trip |
| Models too large for the edge hardware | Cloud, if latency allows | Splitting the model across edge accelerators within the edge tier |
| Low-confidence or complex frames | Cloud, on demand | An edge extension block trained on hard classes handles the hard but not complex ones |
| Training and retraining | Cloud | Smaller model blocks can be trained locally on the hard cases |
| Model optimisation and compilation | Built centrally, targeted at the edge device | Nothing: the model is compiled for the edge hardware it will run on |
| Long-term storage and offline analysis | Cloud | Privacy reasons, as in deployments that keep all analytics in private clusters |
| Fleet monitoring and model rollout | Cloud | Nothing: fleet management is the cloud’s job in this pattern |
Production deployments fall into three architectures: cloud-only, cloud-fallback and edge-only. Our article on cloud computing and computer vision in practice lays out the trade-offs that govern each one. How a face recognition pipeline breaks into stages is covered in the face recognition pipeline hub.
When Does Streaming Camera Video to the Cloud for Inference Stop Making Sense?
We would treat cloud inference as no longer sensible in three cases: when the round trip uses up the latency budget, when the uplink cannot carry the streams at the resolution the model needs, or when edge hardware is lightly loaded enough to answer faster locally. Each of these can be checked with a number.
Latency: The Network, Not the GPU, Sets the Cloud’s Floor
The Neurosurgeon study found that the cloud-only approach spent over 94% of end-to-end time transferring data and under 6% computing on the server. Uploading one image took about 95 ms over Wi-Fi, 180 ms over LTE and more than 870 ms over 3G. The same study found that, for some applications, running locally on the mobile device was up to 11 times faster than cloud-only execution. The INAR-VL authors measured about 2,300 ms of end-to-end cloud latency. About 2,000 ms of that was tunnel and network overhead, while the server GPU finished 8B-parameter inference in 210 to 323 ms. Those figures come from vision-language models served over a tunnelled connection. In that setup, a faster cloud GPU would barely move the total.
Discrete manufacturing produces products at latencies from milliseconds to a few seconds, and defect detection has to keep that throughput. An AWS machine learning blog on SageMaker Edge gives this as the reason to run detection on premises and upload processed results to the cloud. Holding a fixed frame rate on the local side is the subject of real-time vision systems for high-performance computing.
Bandwidth: Per-Camera Uplink and the Price of Resolution
Ananthanarayanan et al. report that a single camera needs anything from hundreds of kilobits per second for low-resolution video to more than 10 Mb/s for multi-megapixel cameras. They also note that uplinks from private clusters to the cloud are usually too thin for many high-resolution streams. At 5 Mb/s per HD stream, twenty cameras need 100 Mb/s of sustained uplink (20 × 5 Mb/s) before protocol overhead. Raising resolution to recover accuracy raises the bandwidth needed. The BiSwift authors (2023) cite Faster R-CNN accuracy rising from 61% to 92% when input goes from 540P to 1080P, at 3.7 times the bandwidth.
Two ways to cut uplink are to send fewer frames or to send fewer bits per frame. Filtering at the camera, for example with motion detection, removes uninteresting video before it reaches the network and reduces the bandwidth that has to be provisioned. Compression is the other lever, and the compression layer is engineering surface, not inherited transport. Off-the-shelf codecs are designed for human consumption, not for AI inference pipelines. When an AI pipeline is the consumer, the compression layer is something to design for the workload. One edge-cloud study showed that its feature coder, trained for classification accuracy, beat image-coding baselines trained for pixel reconstruction.
Edge Hardware Can Return Answers More Slowly than a Nearby Cloud
End-to-end latency at either tier is the sum of three terms: network latency, time spent waiting in the server queue, and the service time of the request itself. The edge has the lower network latency. It loses on the queue term at higher utilisation, because edge resources are more constrained, so edge queuing delays exceed the cloud’s. Queuing theory’s “bank teller” result explains why: one shared queue across many servers always waits less than a separate queue per server.
One study of this edge performance inversion measured it experimentally. The workload was a DNN image classification service on EC2, with the best case of a 1 ms edge round trip. Against a cloud about 25 to 30 ms away and five edge sites, mean edge latency rose above cloud latency beyond 8 requests per second per server (61% utilisation); the authors’ model predicted 64%. Tail latency inverted earlier. At the 95th percentile, the edge could lose to the cloud even while its mean latency was still lower. The closer the cloud, the lower the cutoff utilisation. With a cloud 15 ms away, inversion began at 40% utilisation for the mean and 25% for the tail. At 25 to 30 ms the cutoffs were 60% and 40%. For a transcontinental cloud at 80 ms, the tail inverted at 75%. Bursty arrivals make inversion more likely still. The authors’ remedies are to provision extra edge capacity, size each site to the workload it actually sees, and balance load geographically at run time.
If line-side GPUs are sized for average load rather than for the burst when several cameras fire at once, the edge deployment can end up with worse tail latency than the cloud it replaced.
Splitting One Model Between the Device and the Cloud
We compare four mechanisms between “everything on the edge” and “everything in the cloud”, each sending something different over the network.
| Mechanism | What crosses the network | What it buys | What it costs |
|---|---|---|---|
| Layer partitioning | Intermediate activations at the split layer | Lower end-to-end latency than cloud-only; Neurosurgeon averaged 3.1× on a mobile device across eight DNN applications | Highly model-dependent, and split inference adds latency over running the whole model in one place |
| Confidence-based offload (early exit) | Only the frames the edge model is unsure about | 41% network savings for edge-cloud splitting at a 0.5 confidence threshold | Needs calibrated confidence; savings shrink as the threshold rises |
| Learned feature compression | Compact features trained for the task | Better accuracy per bit than image codecs, with about 50% lower encoding latency in one design | The cloud model depends on the edge encoder’s output |
| On-camera filtering | Only frames whose content changed | 51 to 97% of frames filtered and 21 to 86% bandwidth saved in Reducto’s evaluation | Buffering a segment adds delay to the frames at its start |
Layer partitioning suits computer vision DNNs because of how their layers change data size. Data size grows after convolution layers and shrinks after pooling layers, so the best split point sometimes sits in the middle of the network. For AlexNet on a mobile GPU over Wi-Fi, Neurosurgeon found the best split between the last pooling layer and the first fully connected layer, which was 2.0× faster than cloud-only. Liang et al. show that the benefits of model splitting are highly model dependent. Splitting MobileNet V2 at layer 10 cut network use nearly eightfold compared with sending losslessly compressed input. For Inception V4, every layer produced an intermediate output larger than a JPEG of the input, so splitting gave no bandwidth benefit at all. The best point also depends on wireless network state and datacenter load. Neurosurgeon shifted from full cloud execution at low server load, to a split at medium load, to fully local execution at peak.
Confidence-based offload requires an accurate measure of uncertainty. Conventionally trained networks overestimate their confidence, yielding lower device accuracy than the threshold targets. With calibration, the threshold becomes a reliable accuracy target. The MEANet authors (2021) improved ImageNet accuracy by 4% while sending 28% of images to the cloud. INAR-VL kept 36% of requests on the edge, cut latency by 24% and preserved 97% of cloud-level accuracy. Sending raw images for the offloaded cases, rather than features, keeps the cloud model independent of the edge, so a larger and more accurate network can run there.
On-camera filtering targets cameras whose resources do not support even small neural networks. Tiny YOLO runs at under 1 fps on 1 GHz devices, but cheap frame-differencing features can still decide which frames are worth sending.
On a manufacturing line, we would try confidence-based offload before layer partitioning. Offload keeps confident decisions on the device and sends only uncertain samples on to a full cloud model. Layer partitioning puts a network hop inside every single inference.
How Cloud Training and Edge Inference Fit into One System
Training in the cloud and inference at the edge form a closed loop, not a one-off handover. AWS describes the steps on its stack as follows. Collect device data into S3. Train on SageMaker. Optimise the model for the constrained hardware (quantisation, pruning, conversion to TensorFlow Lite or ONNX). Deploy through IoT Greengrass. Run inference locally while sending results, metrics and low-confidence samples back. Monitor, retrain, and roll the improved model out over the air. Cloud-trained models are often too big for edge hardware, so common techniques are 8-bit or 4-bit quantisation, pruning, knowledge distillation and efficient architectures such as MobileNet.
Low-confidence samples sent back from the edge are part of that loop. The signal that decides which frames go to the cloud for inference is also the best candidate set for the next round of labelling. Reducto builds a retraining trigger into the camera. When a frame’s features fall outside every known cluster, the camera stops filtering and asks the server to retrain on the new scene. The loop matters because off-the-shelf detection models that work in demos fail at the edge cases, lighting conditions and throughput of real-world computer vision deployments.
Measure on the device that will run the model, not on a development laptop. In AWS’s SageMaker Edge tests with a 400 KB input image, ResNet18 took 384 ms on a 2-vCPU x86 machine and 64 ms on an NVIDIA Jetson Nano GPU, while U-Net took 279 ms and 132 ms respectively. That is a sixfold gap for one model and roughly twofold for the other (384/64 and 279/132). In these tests, the speed ratio for one model did not predict the other’s. AWS’s manufacturing reference lists checking that real-time performance meets production line speed as a step of its own. A model that performs in training is a different artefact from one that performs on the deployment target, and closing that gap is engineering work scoped against a concrete constraint. Runtimes, quantisation and bring-up on the device side are covered in how to deploy computer vision models on edge devices.
What Does a Hybrid Edge-Cloud Computer Vision Architecture Look Like on a Manufacturing Line?
On a hybrid line, a line-side box with a GPU accelerator makes every pass/fail decision and the cloud trains, stores and monitors; assume cameras wired to that box, a reject gate downstream, and a cloud link that is sometimes slow or down. The data then flows as follows:
- The edge box captures and preprocesses images, using AWS IoT Greengrass in AWS’s reference.
- Inference on the edge box returns the pass/fail decision immediately.
- If a part scores below the confidence threshold, we would have the station reject it conservatively on the spot rather than wait on a cloud answer the line cannot afford. The cloud still classifies the image later for labelling.
- Images are buffered locally and only selected ones are uploaded, which is how the reference manages bandwidth on constrained factory networks.
- In the cloud, the stored images train the next model, which is compiled for the edge hardware (SageMaker Neo in the AWS reference) and packaged for deployment.
- Prediction results from each edge device flow to a monitoring service alongside training results.
- The improved model goes back to the line over the air, closing the loop.
Edge processing helps hybrid factory architectures meet their privacy requirements. Where line cameras also capture people, see facial recognition cameras: edge vs server and legal limits. Closed-loop motion control has stricter requirements still. A 5G survey cites smart-factory analyses listing under 1 ms latency and 99.9999% service availability as mandatory for closed-loop motion control. No cloud placement can meet that, so the reject gate’s control stays local whatever happens to the vision model.
Siemens’ Erlangen electronics factory uses this split for PCB assembly inspection. Engineers first trained models on premises until GPU limits and a lack of elasticity became challenging. The factory then moved training and retraining to AWS and kept inference on Industrial Edge devices on the shopfloor. AWS’s case study reports that the false call rate fell by more than 50%.
What an Edge-Versus-Cloud Cost Comparison Has to Include
A fair cost comparison adds three terms: compute on the edge for every frame, compute in the cloud for the fraction of frames sent there, and the cost of communication. Communication energy can outweigh compute energy. In the MEANet authors’ model, uploading one ImageNet-sized image over Wi-Fi at 18.88 Mb/s took 63.7 ms and 349 mJ, against 15.23 mJ for computing it on the edge GPU. The hardware term is less simple than it looks. Distributed edge sites need more total peak capacity than one cloud pool, because the cloud smooths out the combined load of many sites. On the other hand, Liang et al. (2020) found that edge accelerators matched or beat server GPUs once performance was normalised for power and cost.
AWS’s SageMaker Edge blog adds that processing at the edge cuts cloud storage and transfer costs. A separate question is whether to call a hosted vision API at all or run a custom model, which is covered in image recognition: API or custom model, edge or cloud.
The Split Moves with Load and Network
The best placement changes with run-time conditions. Neurosurgeon’s best partition point moved as server load changed. INAR-VL ran edge-only whenever bandwidth fell below its 15 Mb/s guard and offloaded again once the link recovered. We would therefore make the split adjustable at run time and size edge hardware for the burst, not the average. That is the condition where the inversion study found the edge losing its advantage. TechnoLynx’s computer vision R&D builds and deploys computer vision systems with this edge-cloud split. The figure most worth getting right is p95 latency on the line-side box when every camera fires at once, because that is the point where an edge design can quietly fall behind the cloud it was meant to beat.