Update utils.py
Browse files
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))
|