From c803f766ced1f1b420d0687756c6f7c71ba78c50 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Tue, 16 Apr 2024 16:32:42 -0700 Subject: [PATCH] remove default motion detection, extract at 0.5 fps --- vision_agent/tools/tools.py | 2 +- vision_agent/tools/video.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vision_agent/tools/tools.py b/vision_agent/tools/tools.py index 792f1ba1..b5fe2802 100644 --- a/vision_agent/tools/tools.py +++ b/vision_agent/tools/tools.py @@ -577,7 +577,7 @@ class ExtractFrames(Tool): r"""Extract frames from a video.""" name = "extract_frames_" - description = "'extract_frames_' extracts frames where there is motion detected in a video, returns a list of tuples (frame, timestamp), where timestamp is the relative time in seconds where teh frame was captured. The frame is a local image file path." + description = "'extract_frames_' extracts frames from a video, returns a list of tuples (frame, timestamp), where timestamp is the relative time in seconds where the frame was captured. The frame is a local image file path." usage = { "required_parameters": [{"name": "video_uri", "type": "str"}], "examples": [ diff --git a/vision_agent/tools/video.py b/vision_agent/tools/video.py index 25df7efc..4eca66af 100644 --- a/vision_agent/tools/video.py +++ b/vision_agent/tools/video.py @@ -15,7 +15,7 @@ def extract_frames_from_video( - video_uri: str, fps: int = 12, motion_detection_threshold: float = 0.06 + video_uri: str, fps: float = 0.5, motion_detection_threshold: float = 0.0 ) -> List[Tuple[np.ndarray, float]]: """Extract frames from a video