Skip to main content

StreamGrid ⚡

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.

Run CI PyPI Downloads PyPI version Explore streamgrid tech in DeepWiki

Installation

pip install streamgrid

Quick Start

Python

from 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)

CLI (Command Line Interface)

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=True

Performance and reproducible benchmarks

StreamGrid now includes independently paced capture, inference and display, plus per-camera bounded buffers and headless benchmarking. For real-time streams, the default latest buffer mode prioritizes fresh frames; fifo is available for offline lossless processing. Exported ONNX, OpenVINO, and TensorRT model paths can be loaded through the supported Ultralytics YOLO API. Results depend on hardware, backends, input resolution, batch size, and queue configuration.

Example: python -m streamgrid.benchmark --sources video1.mp4 video2.mp4 --model yolo11n.pt --buffer-mode fifo --output results.json

See Performance Guide for options, metrics, benchmark methodology, and backend compatibility.

Previous beta performance estimates (not verified against this change)

StreamGrid automatically optimizes performance based on the number of streams:

  • 1-2 streams: 640×360 resolution, up to 15 FPS per stream
  • 3-4 streams: 480×270 resolution, up to 10 FPS total (CPU processing)
  • 5-9 streams: 320×180 resolution, up to 5 FPS per stream
  • 10+ streams: 240×135 resolution, up to 3 FPS per stream

Note: Performance benchmarks are based on CPU processing. GPU acceleration can significantly improve throughput.

Contributing

We welcome contributions! Please feel free to submit a Pull Request or open a discussion.

Metadata

Release files for streamgrid 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamgrid 1.0.11
File Size Uploaded Provenance Actions
streamgrid-1.0.11.tar.gz 30.2 kB Without provenance Details for streamgrid-1.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamgrid 1.0.11
File Interpreter ABI Platform Actions
streamgrid-1.0.11-py3-none-any.whl Python 3 none any Details for streamgrid-1.0.11-py3-none-any.whl

Total release size: 58.8 kB

Release files / streamgrid-1.0.11.tar.gz

Download URL streamgrid-1.0.11.tar.gz
Size 30.2 kB
Tags Source
SHA-256 checksum
How to use checksums
48929773aa47d29c2de2ea558935a2265460bcaa4984b8facc85665c837770fb
BLAKE2b-256 checksum
How to use checksums
3799247fd9efec2d3b1fb4941f8950a67c607b7795e9c55430934cd6daf3b856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / streamgrid-1.0.11-py3-none-any.whl

Download URL streamgrid-1.0.11-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b255aa7af83c54b502bab055bf5f4e603a5eb590650e7231d28f3758cb5702fc
BLAKE2b-256 checksum
How to use checksums
00bc6be29bb6f1a9577f80b4becfac8bca04afcee3a38b85c92fee5f9f094434
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for streamgrid 1.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page