Ultra-fast multi-stream video display, Run real-time object detection across multiple video feeds with real-time speed. Whether you’re on CPU or GPU, StreamGrid handles the load like a champ.
From smart surveillance to AI-powered dashboards, StreamGrid makes it effortless to display and analyze multiple video streams side-by-side, with Ultralytics YOLO-based detection running on all of them in real time.
pip install streamgridfrom ultralytics import YOLO
from streamgrid import StreamGrid
# Load model
model = YOLO("yolo11n.pt")
# model = YOLO("yolo11n_openvino_model") ~2-3x faster
StreamGrid(model=model)
# Inference on GPU
StreamGrid(
sources=[
"path/to/video1.mp4", "path/to/video2.mp4",
"path/to/video3.mp4", "path/to/video4.mp4"
],
device="cuda")
# Store stream results in CSV file
StreamGrid(sources=sources, analytics=True)streamgrid model=yolo11n.pt
# Run inference with GPU device
streamgrid model=yolo11n.pt device=0
# save the output
streamgrid model=yolo11n.pt device=cpu save=True
# Pass source
streamgrid model=yolo11n.pt sources=["video1.mp4", "video2.mp4"]
# Store Stream results in CSV file
streamgrid model=yolo11n.pt analytics=TrueStreamGrid automatically optimizes performance based on the number of streams:
Note: Performance benchmarks are based on CPU processing. GPU acceleration can significantly improve throughput.
We welcome contributions! Please feel free to submit a Pull Request or open an issue for discussion.