Update video_processing.py
Browse files- video_processing.py +1 -1
video_processing.py
CHANGED
@@ -195,7 +195,7 @@ def process_video(video_path, anomaly_threshold, desired_fps, progress=None):
|
|
195 |
def add_timecode_to_image(image, timecode):
|
196 |
img_pil = Image.fromarray(image)
|
197 |
draw = ImageDraw.Draw(img_pil)
|
198 |
-
font = ImageFont.
|
199 |
draw.text((10, 10), timecode, (255, 0, 0), font=font)
|
200 |
return np.array(img_pil)
|
201 |
|
|
|
195 |
def add_timecode_to_image(image, timecode):
|
196 |
img_pil = Image.fromarray(image)
|
197 |
draw = ImageDraw.Draw(img_pil)
|
198 |
+
font = ImageFont.load_default()
|
199 |
draw.text((10, 10), timecode, (255, 0, 0), font=font)
|
200 |
return np.array(img_pil)
|
201 |
|