Skip to content

Commit

Permalink
Attempt to support py 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AsiaCao committed Mar 27, 2024
1 parent b8be42d commit d6bd223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
Test:
strategy:
matrix:
python-version: [3.10.11]
python-version: [3.9, 3.10.11]
os: [ ubuntu-22.04, windows-2022, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
Expand Down
6 changes: 3 additions & 3 deletions vision_agent/tools/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import math
import os
from concurrent.futures import ProcessPoolExecutor, as_completed
from typing import cast
from typing import List, Tuple, cast

import cv2
import numpy as np
Expand All @@ -16,7 +16,7 @@

def extract_frames_from_video(
video_uri: str, fps: int = 2, motion_detection_threshold: float = 0.06
) -> list[tuple[np.ndarray, float]]:
) -> List[Tuple[np.ndarray, float]]:
"""Extract frames from a video
Parameters:
Expand Down Expand Up @@ -86,7 +86,7 @@ def _extract_frames_by_clip(
end: float = -1,
fps: int = 2,
motion_detection_threshold: float = 0.06,
) -> list[tuple[np.ndarray, float]]:
) -> List[Tuple[np.ndarray, float]]:
"""Extract frames from a video clip with start and end time in seconds.
Parameters:
Expand Down

0 comments on commit d6bd223

Please sign in to comment.