PROJECT / Vision-Language AI
VStream — Vision-Language Inference Engine
A real-time video pipeline combining C++/OpenCV motion filtering with local vision-language models through Ollama. Asynchronous inference produces scene descriptions while video and telemetry stream over WebSockets to a Next.js dashboard.
01 / THE PROBLEM
What this build explores
A slow vision-language model can stall live video if capture, inference, and display share one blocking path.
02 / THE APPROACH
How the pieces connect
C++/OpenCV frame differencing selects motion regions. The full frame retains environmental context, with a bounding box marking activity. Background Ollama inference generates descriptions while FastAPI streams frames and telemetry to a Next.js dashboard over WebSockets.
- 01Camera / file
- 02OpenCV filter
- 03Async Ollama
- 04WebSocket
- 05Dashboard
03 / ENGINEERING JUDGMENT
The tradeoffs
Dropping redundant work keeps the display responsive, but limits how often scenes receive fresh descriptions. A smooth video feed does not imply that the model describes every frame.
A useful next question
Measure capture-to-display and capture-to-description latency separately, including behavior under sustained motion.
SOURCE & SCOPE
The current repository describes motion filtering, local Ollama models, inference cooldowns, and description deduplication. It differs from the earlier Qwen-VL/token-pruning résumé description.
Detailed contribution stories and additional benchmarks will be added in a later update.