Multi-camera computer vision: how to size hardware and scale one detector across many streams
How many cameras can one device run? Size multi-camera YOLO26 deployments by throughput, decode limits and batching, then measure streams per device.
Onuralp Sezer16 min readListen to this article

How many cameras can one device run through one detector? Roughly its sustained throughput, in frames per second, divided by the frame rate each camera needs, minus headroom for peaks. The catch is that inference is only one of four stages per frame: video decode, preprocessing and post-processing compete for the same device, and the first one to saturate sets your camera count.
This guide turns the measured Ultralytics YOLO26 results we publish for each device into a sizing method for multi-camera computer vision. It covers where the time goes per frame, what hardware decoders and batching change, how to measure streams per device on your own hardware, and when to run detection on edge devices at each site versus a central server.
Streams per device is throughput divided by frame rate#
Every multi-camera system answers one question: how many frames per second can this device process end to end, and how many does each camera send? Our multi-stream inference lesson puts it as a formula: streams per device is about sustained throughput at your batch size divided by the frame rate each stream needs, with 20 to 30% headroom kept for peaks.
Throughput means the whole pipeline, not the model alone. The lesson lists the typical cost of each stage per frame:
- Decode (RTSP or file to an array): 5 to 20 ms per 1080p frame on the CPU
- Preprocess (letterbox and normalize): about 1 ms on the CPU
- Inference: a few ms on a GPU to tens of ms on a CPU
- Post-process, tracking and sinks: a few ms on the CPU, more for slow databases
Run those stages one after another, camera by camera, in a single thread, and the accelerator sits idle while frames decode. Separating them, so decoders feed a queue and one model processes frames from every camera, is what lets one device serve many cameras.

From the Ultralytics Academy multi-stream lesson: four streams sharing one device in NVIDIA DeepStream, each reporting its own FPS.
Turn a frame-rate target into a millisecond budget#
The Academy lesson on choosing a deployment target works the budget for a 20 FPS camera: 1000 รท 20 gives 50 ms per frame. Take away about 10 ms for 1080p RTSP decode, about 5 ms for tracking, counting and sinks, and 10 ms of headroom, and about 25 ms is left for the model.
Hold one published number against that budget. On a Jetson Orin Nano Super Developer Kit, YOLO26s takes 7.17 ms of inference per image as a TensorRT FP16 engine (640 pixels, inference only), well inside 25 ms. How many cameras that covers depends on how decode and post-processing spread across threads and how batching behaves on your runtime, which is why measuring on the device, not the arithmetic, sets your camera count.
Published YOLO26 inference times give you a shortlist#
Inference time per image tells you which devices and model sizes are worth testing. Our docs link every published YOLO26 result from one device benchmarks table, and these are the rows that matter most for multi-camera work:
| Device and format | YOLO26n (ms) | YOLO26s (ms) | YOLO26m (ms) |
|---|---|---|---|
| Raspberry Pi 5 CPU, NCNN FP32 | 67.03 | 172.88 | not in the NCNN test |
| Jetson Orin Nano Super, TensorRT FP16 | 4.57 | 7.17 | 13.59 |
| Jetson Orin NX 16GB, TensorRT FP16 | 4.13 | 6.41 | 11.66 |
| Jetson AGX Orin 64GB, TensorRT FP16 | 2.62 | 3.76 | 6.24 |
| Jetson AGX Thor, TensorRT FP16 | 1.39 | 1.77 | 2.58 |
| DGX Spark (GB10), TensorRT FP16, batch 1 | 0.79 | 1.49 | 2.70 |
All rows: 640-pixel input, single-image inference only, excluding pre- and post-processing. Jetson and Pi rows from the NVIDIA Jetson guide and Raspberry Pi guide on COCO128 (Ultralytics 8.4.7 for Thor, 8.4.32 for AGX Orin, 8.4.33 for Orin NX and Orin Nano Super, 8.4.108 for the Pi). DGX Spark row from the DGX Spark guide on COCO val2017, Ultralytics 8.4.192, TensorRT 11.2.1.2. Setups differ, so compare within a row.
Model size changes inference time on any one board: on the Orin Nano Super, YOLO26m takes about three times as long as YOLO26n. The export format matters too. On the same board, the same YOLO26n model runs about 3.4 times faster as a TensorRT FP16 engine than in PyTorch:

From the Ultralytics NVIDIA Jetson guide: Orin Nano Super Developer Kit, 640 pixels, COCO128, Ultralytics 8.4.33, inference only.
Start with FP16 rather than INT8. On the Orin Nano Super, INT8 trims YOLO26n from 4.57 ms to 3.80 ms but drops mAP50-95 from 0.4800 to 0.4490 on COCO128. On DGX Spark at batch 1, INT8 engines were slower than FP16 for YOLO26n and YOLO26s and lost 0.0183 and 0.0149 mAP50-95. On TensorRT 11, our post on INT8 entropy calibration shows how to keep more accuracy. Our guide to choosing an edge AI device covers each device class, and the Jetson vs Raspberry Pi 5 comparison shows why per-camera FPS falls as you add streams on a small board.
Check video decode capacity before you count cameras#
At 1080p, decode can cost as much as a nano model's inference: the Academy lesson gives a typical 5 to 20 ms per 1080p frame on the CPU, against 4.57 ms for YOLO26n on the Orin Nano Super's GPU. Which one runs out first depends on your codec, resolution, CPU and decode path, so measure decode and inference together on the target system.
Hardware video decoders move that work off the CPU, and they have their own published limits. NVIDIA's Jetson AGX Orin technical brief lists up to 22 simultaneous 1080p30 H.265 streams on the AGX Orin 64GB and 18 on the 32GB module. NVIDIA lists up to 11 1080p30 H.265 streams for the Orin Nano series. DGX Spark has one NVDEC decoder, per the specifications in our guide. Check the decode table for your module, codec and profile.
How you decode depends on the pipeline you choose:
- Ultralytics Python streams. A
.streamssource reads each camera with OpenCV'sVideoCapturein its own thread, as the stream loader reference shows. Whether OpenCV decodes on the CPU or uses hardware acceleration depends on its backend and build. - NVIDIA DeepStream. Our DeepStream on Jetson guide runs YOLO26 detection as a TensorRT engine inside NVIDIA's DeepStream SDK, a GStreamer toolkit with hardware-accelerated decode, zero-copy GPU memory and batching across streams. Each camera gets its own
[sourceN]group in one config file.
Three levers cut the load without new hardware. Use a camera's lower-resolution substream when objects are large in frame. Set vid_stride to send only every Nth frame to inference when the scene changes slowly; the loader still grabs the frames in between, so decode work doesn't fall in proportion. And watch input size: the Academy lesson notes that 1280 by 1280 needs about four times the compute of 640 by 640.
Run every camera through one model instance#
One model shared by all cameras avoids loading a copy per camera. Ultralytics builds this in: list one RTSP, RTMP or TCP URL per line in a .streams file, and Predict mode groups one frame from each stream per iteration. In Track mode, each stream also gets its own tracker. Identify each track by camera and track ID: separate trackers don't match identities across cameras.
Three settings decide how well that works on a deployment:
- Match the engine to the camera count. How grouped frames reach the model depends on the backend. A TensorRT engine exported without
dynamic=Truehas one fixed input shape, and Ultralytics splits or pads each batch to fit it. Export withdynamic=Trueandbatchset to your camera count, and the engine accepts batches from 1 up to that size. Larger batches use more memory, so check it on the device. - Keep
stream_buffer=Falsefor live cameras. The default keeps only the newest frame per stream, so a slow model skips stale frames instead of falling minutes behind. Set it toTruewhen every frame must be processed, as with recorded files. - Give the model one owner. A single
YOLOinstance is not safe to call from several threads at once. Our thread-safe inference guide recommends one instance per thread, or theThreadingLockeddecorator when memory is tight, at the cost of threads waiting their turn. The Academy's producer-consumer pattern avoids both: decoder threads fill a bounded queue, and one consumer loop owns the model and batches.
What happens when throughput runs out is the reason to measure. In the Academy lesson, a laptop CPU ran YOLO26n in PyTorch on simulated 30 FPS cameras, with a bounded queue dropping and counting frames it could not process:

From the Ultralytics Academy multi-stream lesson: 30 FPS demo clips, a bounded queue of 16 frames, batches of up to 8 frames. That machine's capacity is one stream.
Nothing crashed in that run. Without a bounded queue, the same overload shows up as latency that grows every minute until memory runs out, which is why a drop counter per camera belongs in every deployment.
Measure streams per device on your own hardware#
The published tables give you a shortlist. This first check measures processed results per second for each camera on the device you will deploy, with your model and your streams. Treat it as a starting point: a production sign-off also needs source health, drop counts and latency per camera.
- Export your model for the device. On a Jetson or NVIDIA GPU server, build a TensorRT FP16 engine on the target itself, with a dynamic batch at least as large as your camera count. Re-export with a larger
batchbefore testing more streams than that. Our Academy lesson on optimizing with TensorRT covers the precision choice. - List your cameras. Write one RTSP URL per line in
cams.streams. - Run for a minute and count results per camera, starting the clock after the first full batch so connection and warm-up don't count.
- Add cameras while every source stays healthy, processed FPS meets each camera's rate, and per-camera drops and p95 latency stay within your limits, then keep 20 to 30% headroom below the point where any of those fails.
import time
from collections import Counter
from ultralytics import YOLO
# Step 1: build a TensorRT FP16 engine on the target device, batches of 1 to 8
YOLO("yolo26s.pt").export(format="engine", quantize=16, dynamic=True, batch=8)
# Steps 2-3: run every camera in cams.streams through one model
model = YOLO("yolo26s.engine")
with open("cams.streams", encoding="utf-8") as f:
n_streams = len([s for s in f.read().splitlines() if s.strip()])
assert 0 < n_streams <= 8, "re-export the engine with batch >= your camera count"
frames, start, elapsed = Counter(), None, 0.0
for i, result in enumerate(model.predict("cams.streams", stream=True, verbose=False)):
if i < n_streams: # first batch: connection and warm-up
if i == n_streams - 1:
start = time.perf_counter()
continue
frames[i % n_streams] += 1 # results arrive in stream order within each batch
if (i + 1) % n_streams == 0: # a complete batch
elapsed = time.perf_counter() - start
if elapsed > 60:
break
for slot, count in sorted(frames.items()):
print(f"camera {slot}: {count / elapsed:.1f} processed FPS")The loop counts results, not frames the cameras sent: the loader waits for every stream and can substitute a blank frame after a read failure. So add source-health monitoring and the explicit drop counters from the multi-stream lesson before you treat the number as capacity. Ultralytics logs each source URL when it connects, so keep camera credentials out of shared logs. Then add the tracking, counting and sinks your application needs and rerun, because they share the same CPU.
On Intel hardware, the same method applies with an OpenVINO export. Ultralytics compiles OpenVINO models with the LATENCY performance hint, which suits one camera. For many concurrent streams, our OpenVINO latency vs throughput guide shows how to compile with the THROUGHPUT hint and feed the device with parallel asynchronous requests.
Edge devices or a central server: decide by where the video has to go#
Where inference runs is a network and operations decision as much as a hardware one. Running a detector beside the cameras can send only results upstream. Running it on a central server sends every video stream across the site or wide-area network to one place.
| If your deployment hasโฆ | Lean toward | Why |
|---|---|---|
| Decisions that must happen on site and keep working if a server or network link fails | Edge device per site | No dependency on a remote server |
| A limited uplink between sites | Edge device per site | Can send only results upstream |
| Many cameras on one building network | Central GPU server | One place to update models; load is pooled |
| Sites that need real-time alerts and central review | Both | Edge detects; a central service takes sampled frames |
Choose edge devices when a decision has to happen on site (stopping a conveyor, opening a gate), when the uplink can't carry every stream, or when a site must keep working while the network is down. A Jetson per site, or per group of cameras, fits here, sized by its decode table and your measured stream count. Each device becomes its own failure domain: one going down affects only the cameras it serves.
Choose a central server when the cameras already share a building network, when you want one place to update models, or when streams are bursty and pooling them evens out load. DGX Spark's 128 GB of unified memory and its guide's advice to raise batch size for throughput make it a fit for an on-premises video server. For larger fleets, the Academy points to NVIDIA Triton Inference Server and DeepStream as the natural production homes. A central server decodes every stream it receives, so size its decoders first.
Many deployments mix the two: edge devices handle real-time detection, and a central service receives sampled frames for review, retraining and audits. Our comparison of managed cloud and self-hosted deployment covers the cost and data-boundary side of that choice, and our guide to adding AI analytics to existing security cameras covers working with cameras you already own.
For a cloud-hosted alternative, Ultralytics Platform dedicated endpoints run single-tenant in 42 regions. They accept images and video files up to 32 MB per request, and they also take an internet-reachable RTSP or RTSPS camera URL and stream results back as server-sent events. A custom-size endpoint can keep watching one IP camera in the background. Each endpoint serves from one instance and returns 429 when at capacity, and the docs don't state how many concurrent cameras one endpoint sustains, so load-test it with your cameras just as you would your own hardware.
Where Ultralytics fits in a multi-camera deployment#
Ultralytics doesn't make cameras or edge hardware. We make the detector and the path to run it across many streams:
- One checkpoint for every device in the fleet. The same YOLO26 model exports to TensorRT for Jetson and GPU servers, OpenVINO for Intel, and more than 20 other formats, and you validate each export with the same
yolo valcommand. - Multi-stream inference and tracking built in. A
.streamsfile runs every camera through one model, with a tracker per stream, in a few lines of Python. - Measured results with their conditions. Most device pages state the model, precision, image size and versions they measured, so you can shortlist hardware before you buy.
- Train and export in one place. Ultralytics Platform trains YOLO26 in the cloud and offers eight Jetson TensorRT export targets. The Orin engines are built on an AGX Orin 64GB, so validate each one on your module with a matching TensorRT and CUDA runtime.
The limits are concrete too. Our DeepStream guide uses the community DeepStream-Yolo repository, covers YOLO26 detection, and notes that its INT8 calibration steps don't work with TensorRT 10.x. Our published device numbers time inference alone, so the full camera pipeline is always yours to measure. Ultralytics YOLO is available under AGPL-3.0 or an Enterprise License; see our licensing options for what a product deployment needs.
Who should run one detector across many cameras#
Use this approach if you are deploying object detection across a warehouse, store, factory floor or campus, and want each device to serve as many cameras as it can without dropping frames silently. Start with the published inference time for your shortlisted device, check its hardware decode limit, then measure processed FPS, drops and latency per camera with a .streams file and add cameras until one of them falls short.
Teams with a handful of cameras and a small model can often start on a single Jetson with the Ultralytics Python pipeline. Teams scaling to dozens of streams per site should plan for hardware decode through DeepStream or a server stack, and keep a per-camera drop counter in production from day one.
Frequently asked questions
It depends on the model, resolution, frame rate and codec. On the Orin Nano Super Developer Kit, per our NVIDIA Jetson guide, YOLO26n takes 4.57 ms and YOLO26s 7.17 ms of inference per image as TensorRT FP16 engines at 640 pixels, and NVIDIA lists hardware decode of up to 11 1080p30 H.265 streams for the Orin Nano series. Measure processed FPS per camera on the board with a
.streamsfile to get your real number.No. The Ultralytics Python package runs multiple RTSP streams from a
.streamsfile through one model, with a tracker per stream. DeepStream is worth adding when you need hardware-accelerated decode, zero-copy GPU memory and a GStreamer pipeline for many streams on NVIDIA hardware; our DeepStream on Jetson guide covers the setup.Write one stream URL per line in a text file ending in
.streamsand pass it as the source in Predict mode:model.predict("cams.streams", stream=True). Ultralytics opens each stream in its own thread and returns one result per stream per iteration, in stream order. Count results by their position in each batch to tell cameras apart, and keep camera credentials out of logs.Run at the edge when decisions must happen on site, the uplink can't carry every stream or sites must keep working offline. Run centrally when cameras share a building network and you want one place to manage models. Many deployments do both, with edge devices detecting in real time and a central service receiving sampled frames. Our comparison of managed cloud and self-hosted deployment covers the trade-offs.
Often, because one batched forward pass keeps the accelerator busy instead of idling between cameras, and our DGX Spark guide recommends larger batch sizes for throughput. Export TensorRT engines with
dynamic=Trueand abatchas large as your camera count so batches aren't split or padded. Confirm the gain on your device, since decode, memory or post-processing can become the limit first.
Written by
Comments
Ask a question, share your results, or help someone else.





























