From 0e43f452d2058456822ca1c1150e33d045129811 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 8 Nov 2021 07:29:01 -0600 Subject: [PATCH] use resolution of clip --- process_clip.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/process_clip.py b/process_clip.py index 9a2ea30e2..3220f6a47 100644 --- a/process_clip.py +++ b/process_clip.py @@ -269,6 +269,10 @@ def process(path, label, output, debug_path): logger.info(c) frame_shape = get_frame_shape(c) + json_config["cameras"]["camera"]["detect"] = { + "height": frame_shape[0], + "width": frame_shape[1], + } json_config["cameras"]["camera"]["ffmpeg"]["inputs"][0]["path"] = c frigate_config = FrigateConfig(**json_config)