Compare commits

...
1 Commits
Author SHA1 Message Date
Nicolas Mowen fa2452e0c8 Catch faces that become empty after cropping 2026-07-16 07:44:40 -06:00
@@ -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: