From 002655180977487767f8865e171eae056fb77bcc Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 9 Sep 2024 08:02:26 -0600 Subject: [PATCH] Fix thumbnail failure --- frigate/object_processing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frigate/object_processing.py b/frigate/object_processing.py index 3616d6b50..2392adf80 100644 --- a/frigate/object_processing.py +++ b/frigate/object_processing.py @@ -770,9 +770,11 @@ class CameraState: } ) - # if the object's thumbnail is not from the current frame - if obj.false_positive or obj.thumbnail_data["frame_time"] != frame_time: + # if we don't have access to the current frame or + # if the object's thumbnail is not from the current frame, skip + if not current_frame or obj.false_positive or obj.thumbnail_data["frame_time"] != frame_time: continue + if object_type in self.best_objects: current_best = self.best_objects[object_type] now = datetime.datetime.now().timestamp()