Skip to content

Commit

Permalink
remove default motion detection, extract at 0.5 fps
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 16, 2024
1 parent 88a5e43 commit c803f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion vision_agent/tools/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c803f76

Please sign in to comment.