From 8f14b36f5aaa2587c6a7fada38922388ed40698b Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Fri, 16 Oct 2020 18:31:15 -0500 Subject: [PATCH] tweak size --- frigate/object_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 6eb5389e0..8046e7469 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -287,7 +287,7 @@ class TrackedObjectProcessor(threading.Thread): best_frame = cv2.resize(best_frame, dsize=(width, height), interpolation=cv2.INTER_AREA) if self.camera_config[camera]['snapshots']['show_timestamp']: - font_scale = (best_frame.shape[0]*best_frame.shape[1])/(original_shape[0]*original_shape[1])*0.8 + font_scale = (best_frame.shape[0]*best_frame.shape[1])/(original_shape[0]*original_shape[1])*0.7 time_to_show = datetime.datetime.fromtimestamp(obj['frame_time']).strftime("%m/%d/%Y %H:%M:%S") cv2.putText(best_frame, time_to_show, (10, 30), cv2.FONT_HERSHEY_SIMPLEX, fontScale=font_scale, color=(255, 255, 255), thickness=2)