Catch faces that become empty after cropping

This commit is contained in:
Nicolas Mowen
2026-07-16 07:44:40 -06:00
parent c406a93d3d
commit fa2452e0c8
@@ -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: