Improve handling of empty frames (#13651)

This commit is contained in:
Nicolas Mowen
2024-09-10 07:39:37 -06:00
committed by GitHub
parent cae11cbb86
commit ceb7aa8b36
2 changed files with 21 additions and 13 deletions

View File

@@ -881,7 +881,7 @@ class CameraState:
current_thumb_frames = {
obj.thumbnail_data["frame_time"]
for obj in tracked_objects.values()
if not obj.false_positive
if not obj.false_positive and obj.thumbnail_data is not None
}
current_best_frames = {
obj.thumbnail_data["frame_time"] for obj in self.best_objects.values()