From ff852098e45b9987d459f29e3d5eb395eafa3703 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 22 Sep 2022 06:03:08 -0600 Subject: [PATCH] Remove original frame clamping --- frigate/video.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frigate/video.py b/frigate/video.py index 4f964bcbe..f60cb2100 100755 --- a/frigate/video.py +++ b/frigate/video.py @@ -662,10 +662,10 @@ def process_frames( # apply max/min to ensure values do not exceed the known frame size boxes = [ ( - max(o[2][0], 0), - max(o[2][1], 0), - min(o[2][2] - o[2][0], detect_config.width - 1), - min(o[2][3] - o[2][1], detect_config.height - 1), + o[2][0], + o[2][1], + o[2][2] - o[2][0], + o[2][3] - o[2][1], ) for o in group ]