event-rule-engine

Detect and analyze video surveillance events via frame extraction and LLM visual review.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/bettercallfan/deerflow --skill event-rule-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: event-rule-engine
Source: https://github.com/bettercallfan/deerflow/tree/main/skills/custom/video_surveillance/event-rule-engine
Command: npx skills add https://github.com/bettercallfan/deerflow --skill event-rule-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opencv-python, opencv-python-headless, ffmpeg-python, openai, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the detection and analysis of video surveillance events using frame extraction and LLM (Language Learning Model) visual review, making it easier to process and interpret video monitoring data.

Core Features & Use Cases

  • Video Event Detection: Identifies events such as fights, traffic accidents, crowding, illegal parking, smoke/fire, falls, intrusion, and occupancy.
  • Frame Extraction & Review: Extracts frames from video and reviews them using LLM for visual analysis.
  • Event Mapping: Maps observed patterns to event templates and generates event candidates with evidence.
  • Use Case: For a city surveillance system, this Skill can automatically detect events like traffic accidents, and provide evidence frames and time ranges, enabling quick response and analysis.

Quick Start

Run the event rule engine skill with a video file and generate event candidates.

Frequently Asked Questions about event-rule-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate video surveillance event detection using LLM visual review?

You can automate video surveillance event detection by extracting frames from video files and applying LLM visual review. The system maps observed patterns to predefined event templates like fights or traffic accidents, generating event candidates with evidence frames and time ranges.

What types of urban surveillance events can be detected through frame extraction and LLM analysis?

Frame extraction and LLM analysis can detect urban surveillance events including fights, traffic accidents, crowding, illegal parking, smoke and fire, falls, intrusion, and occupancy. The LLM reviews extracted frames to map visual patterns to these specific event templates.

Do I need OpenCV and ffmpeg to process video files for incident detection?

Yes, processing video files for incident detection requires opencv-python and ffmpeg-python to extract frames. These dependencies handle video frame extraction, which is then passed to an LLM for visual analysis and event mapping.

Can I use LLM visual review for real-time monitoring in urban surveillance systems?

Yes, LLM visual review is designed for urban surveillance systems to monitor incidents like traffic accidents in real time. By continuously extracting frames and analyzing them with an LLM, the system generates event candidates with evidence for quick response.

What is the best way to generate evidence frames and time ranges for detected surveillance events?

The best way to generate evidence for detected surveillance events is using an automated rule engine that extracts video frames, applies LLM visual review to identify patterns, and maps them to event templates with corresponding evidence frames and time ranges.

What are the limitations of using LLM visual review for video event detection?

Limitations of using LLM visual review for video event detection include dependency on frame extraction quality and the LLM's ability to accurately interpret complex visual patterns. It requires both opencv-python and openai dependencies to function properly.