Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 11, 2024
1 parent 7db696d commit 1aba69f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vision_agent/utils/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import av # type: ignore
import cv2
import numpy as np
from decord import VideoReader # type: ignore

_LOGGER = logging.getLogger(__name__)
# The maximum length of the clip to extract frames from, in seconds
Expand Down Expand Up @@ -122,7 +121,7 @@ def extract_frames_from_video(
targ_frame_time = 1 / fps
frames = []
i = 0
elapsed_time = 0
elapsed_time = 0.
while cap.isOpened():
ret, frame = cap.read()
if not ret:
Expand Down

0 comments on commit 1aba69f

Please sign in to comment.