Contents
Why Inference Moves to the Edge
Four reasons, each enough on its own:
- Latency. A safety or alerting use case cannot wait for a round-trip to a cloud. The model has to run where the frame is captured.
- Privacy. Video of people is the most sensitive data an organization holds. Running the model locally means the raw footage never leaves the site — only structured results (a bounding box, a count, an event) go anywhere.
- Bandwidth. A single 1080p stream is a few megabits per second; a fleet of cameras is a network bill. Sending events instead of video is orders of magnitude cheaper.
- Reliability. The edge keeps working when the WAN does not — the camera keeps detecting, and the device queues or acts locally.
The Hardware
The accelerator options, from smallest to most capable:
| Device | Form factor | Character |
|---|---|---|
| Google Coral (Edge TPU)[2] | USB / M.2 | Easy to prototype with; verify current hardware availability, runtime maintenance, and compiler support before choosing it for a maintained fleet |
| Hailo-8 / Hailo-8L[1] | M.2 / module | High TOPS-per-watt, aimed squarely at multi-stream video analytics |
| NVIDIA Jetson (Orin)[3] | Module / dev kit | A GPU-plus-CPU edge module; the choice when you need heavier models or a full OS |
For most single-purpose "run one detector on a few camera streams" deployments, a Hailo-class NPU is the sweet spot: it processes multiple streams in a few watts. Jetson is the right step up when you need to run a stack of models or a richer application alongside the detector.
The Pipeline: Capture, Detect, Act
Every edge-vision system is the same five-stage pipeline, regardless of vendor:
- Capture. Pull frames from the camera over RTSP, the streaming protocol nearly every IP camera serves its live video on — via GStreamer or FFmpeg.[4]
- Preprocess. Resize and normalize the frame to the model's input format.
- Inference. Run the model on the NPU (a YOLO-family detector is the default choice).[5]
- Postprocess. Decode the output. A detector does not emit one box per object; it emits a cluster of overlapping candidate boxes around the same person or vehicle, each with its own confidence score. Non-maximum suppression is the step that keeps the highest-scoring box in each cluster and discards the rest, leaving one clean bounding box per real object.
- Act. Emit the result: an alert, a count, an MQTT message, a stored clip.
The vendors wrap stages 2–4 in their SDK (HailoRT, or the GStreamer plugin), so in practice you write the glue around a pipeline element, not the detector itself.
A Worked Example: Object Detection on a Hailo
The command below shows the shape of a Hailo-8 pipeline using its GStreamer plugin. Model names and element properties vary by runtime and model-zoo version; this is a template rather than a copy-and-run command.
# A Hailo GStreamer pipeline: RTSP in -> decode -> HailoNet (detect) -> overlay -> display
gst-launch-1.0 \
rtspsrc location="rtsp://camera.local/stream1" ! \
decodebin ! videoconvert ! \
hailonet hef-path=/opt/hailo/yolov8s.hef ! \
hailofilter function-name=yolov8s ! \
hailooverlay ! \
autovideosink
The important details, which are where real deployments spend their time:
- The
.heffile is a model compiled for the Hailo device. You take the model in one of the portable formats that training frameworks export to — ONNX or TFLite — run it through the Hailo compiler, and the result is device-specific — you do not just drop in any model file. - One accelerator, multiple streams. A Hailo-8 can run several camera streams in parallel; the pipeline above is per-stream, and you instantiate one per camera (or use a multiplexing pipeline).
- Preprocessing matters. Wrong resize/normalization is the most common cause of "the model runs but the detections are garbage." Match the model's expected input exactly.
Compile the model for your exact device and runtime. The .hef compilation step is vendor- and version-specific, and a model compiled for one Hailo runtime may not load on another. Treat the compiler output as a build artifact pinned to the device firmware, and keep the source model and the compile configuration in version control so you can rebuild when the runtime updates.
Latency, Privacy, and Bandwidth
The payoff that justifies the edge architecture is measurable on three axes, and you should measure all three in a proof:
- Latency — end-to-end frame-to-result time. Edge inference is typically single-digit milliseconds for a small detector; the same work via the cloud is dominated by the network round-trip.
- Privacy — raw video never leaves the device. This is often the deciding argument in government and healthcare, where the footage itself is regulated.
- Bandwidth — compare the Mbit/s of streaming video against the Kbit/s of emitting events. The difference is the size of the network you do not have to build.
Rule of Thumb: Price edge vision as hardware per site, model-compilation work, and fleet management. Compare that with streaming bandwidth, cloud inference, retention, and the security controls required when raw footage leaves the site. Local processing reduces data movement; it does not remove privacy obligations, and a fixed-function NPU can cost more engineering time when models change frequently.
Production Acceptance Test
A demo that draws boxes around a sample clip proves only that the model can run. A production pilot must prove that the complete camera-to-alert path remains useful under the conditions it will actually see.
- Accuracy: label a representative set of day, night, glare, rain, crowding, and partial-obstruction footage. Measure false positives and missed detections by scenario, not as one blended score.
- Latency and loss: record p95 capture-to-alert time, dropped frames, and queue depth while every configured stream is active. A fast model still fails if decode or post-processing falls behind.
- Failure behavior: disconnect the uplink, stop the inference process, fill local storage, and reboot the device. Confirm which events buffer, which are lost, and how monitoring reports each failure.
- Environmental stability: run through the hottest expected period and watch temperature, throttling, memory growth, and restart count. Edge hardware that benchmarks well for ten minutes may not sustain that rate in an enclosure.
Acceptance rule: approve the design only against a written false-alert limit, missed-event limit, p95 latency target, and recovery expectation. Model throughput by itself is not a service-level result.
Caveats
The honest limits of edge video analytics:
- Fixed models. An NPU runs what it was compiled for. Swapping the detector means recompiling, and some models simply will not fit the device.
- Device management. A fleet of edge devices is a fleet — you now have remote firmware updates, model rollouts, and health monitoring to run.
- Accuracy under real conditions. A model that scores well in the lab may struggle with the site's lighting, angles, and weather. Budget real-world tuning, not just deployment.
None of these is a reason not to do it — they are the difference between "a demo that worked on the bench" and "a system that runs unattended at the loading dock." Edge video analytics is a solved architecture; what separates the successful deployments is treating the model, the fleet, and the real-world conditions as first-class engineering problems rather than afterthoughts.
References
- Hailo — "Hailo-8" and "HailoRT / Hailo GStreamer" documentation: the accelerator, the compiler, and the pipeline elements. Hailo Technical Documentation, current.
- Google — "Coral Edge TPU" documentation and product-status notes. Google Coral Documentation, current.
- NVIDIA — "NVIDIA Jetson Orin" platform documentation: the edge module and its multimedia/vision stack. NVIDIA Technical Documentation, current.
- GStreamer — "GStreamer" framework documentation: the media pipeline used for capture and overlay. GStreamer Project, current.
- Ultralytics — "YOLO" model documentation: the object-detection models commonly deployed at the edge. Ultralytics Documentation, current.