01

Capture and interpretation move at different speeds

A camera produces a continuous stream. A vision-language model performs much heavier work per request. VStream’s documented design separates those two paths: video can continue to arrive while a description is being generated. This distinction is central to understanding what “real-time” means in an AI video application.

02

Filter before expensive inference

The OpenCV motion filter uses frame differencing to identify activity. A bounding box highlights the region while preserving the full scene. That reduces unnecessary model calls without forcing the model to interpret an isolated crop. Motion detection still has limitations: lighting shifts and camera motion can generate activity that is not a meaningful event.

03

Keep the queue bounded

The repository uses a busy flag and a cooldown to avoid piling up inference requests. This favors recent observations over processing every frame. The tradeoff is explicit: some intermediate events may not receive a separate model description. A bounded queue is a product decision about freshness, not just a speed trick.

04

Measure both clocks

A useful evaluation would report capture-to-display latency separately from capture-to-description latency. It should also count dropped work, repeated descriptions, and behavior during continuous motion. These are suggested evaluation dimensions, not additional benchmark results for VStream.

Implementation reference

This note explains the documented architecture and separates suggested evaluations from measured results.

VStream — Vision-Language Inference Engine — source repository ↗
Explore the project