run_surprise_detection
Detect surprising frames in screenshots or videos by computing anomaly scores. Returns annotated timeline, flagged frames, and summary stats.
Instructions
Run full surprise detection pipeline on a directory of screenshots or a video file. Returns annotated timeline, list of frames exceeding threshold, and summary stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Path to a directory of image files (sorted alphabetically). Provide this or video_path. | |
| video_path | No | Path to a video file. Provide this or directory. | |
| threshold_multiplier | No | Z-score multiplier for anomaly detection (default 2.0 = 2σ above mean). |