reab5555 commited on
Commit
c936151
·
verified ·
1 Parent(s): 459d315

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
utils.py CHANGED
@@ -39,6 +39,7 @@ def add_timecode_to_image_body(image, timecode):
39
  return np.array(img_pil)
40
 
41
  def create_annotated_video(video_path, df, mse_embeddings, largest_cluster, output_path):
 
42
  video = cv2.VideoCapture(video_path)
43
  fps = video.get(cv2.CAP_PROP_FPS)
44
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
 
39
  return np.array(img_pil)
40
 
41
  def create_annotated_video(video_path, df, mse_embeddings, largest_cluster, output_path):
42
+ import cv2
43
  video = cv2.VideoCapture(video_path)
44
  fps = video.get(cv2.CAP_PROP_FPS)
45
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))