From fa2452e0c8e80e9eaf6157b6cdd6bc21a7a39028 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 16 Jul 2026 07:44:40 -0600 Subject: [PATCH] Catch faces that become empty after cropping --- frigate/data_processing/real_time/face.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frigate/data_processing/real_time/face.py b/frigate/data_processing/real_time/face.py index 83c8a2e55a..ec1fccb45e 100644 --- a/frigate/data_processing/real_time/face.py +++ b/frigate/data_processing/real_time/face.py @@ -288,6 +288,10 @@ class FaceRealTimeProcessor(RealTimeProcessorApi): max(0, face_box[0]) : min(frame.shape[1], face_box[2]), ] + if face_frame.size == 0: + logger.debug(f"Empty face crop for {id}") + return + res = self.recognizer.classify(face_frame) if not res: