Introduction
cascade-vision is an open-source Python library and CLI that detects objects in video, selects regions for vision-language model analysis, and exports structured activity records.
It supports video files, webcams and RTSP streams. The project is early alpha; real-world accuracy and cost savings remain to be validated.cascade-vision
What Does It Do?
The pipeline combines OpenCV motion filtering, YOLO detection, ByteTrack tracking and background semantic analysis.
Its output can help you:
- Locate selected observations in the original video.
- Filter records by object category or event label.
- Feed descriptions into your own database or dashboard.
- Compare sampling policies using recall, latency and API usage. How to Try It With Python 3.9 or newer:
git clone https://github.com/x549d/cascade-vision.git
cd cascade-vision
python -m pip install -e .
python -m cascade_vision.cli demo --mock-vlm \
--event-labels person,backpack \
--report-json reports/demo.json \
--events-jsonl reports/events.jsonl
The demo generates synthetic frames and mock descriptions. After installation, it needs no footage, camera or API key and sends no paid API requests.
Real video detection requires the optional YOLO dependencies. Real semantic analysis requires a configured model API and may incur charges.
How to Use the Results
- demo.json summarizes processed frames, task outcomes, usage and timing.
- events.jsonl contains individual observations with time information, categories, activity descriptions and event labels. Use these records to build a review list, filter relevant observations or connect another application. Demo records contain simulated: true; they demonstrate the format, not recognition accuracy.
Iād welcome feedback on installation and whether the output fits your video-analysis workflow.
Top comments (0)