This commit is contained in:
Nicolas Mowen 2025-03-28 12:43:16 -06:00
parent 1132eba1f7
commit aadb3b6754

View File

@ -174,7 +174,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
# check if we have hit limits # check if we have hit limits
if ( if (
id in self.person_face_history id in self.person_face_history
and len(self.person_face_history[id]) > MAX_FACES_ATTEMPTS_AFTER_REC and len(self.person_face_history[id]) >= MAX_FACES_ATTEMPTS_AFTER_REC
): ):
# if we are at max attempts after rec and we have a rec # if we are at max attempts after rec and we have a rec
if obj_data.get("sub_label"): if obj_data.get("sub_label"):
@ -184,7 +184,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
return return
# if we don't have a rec and are at max attempts # if we don't have a rec and are at max attempts
if len(self.person_face_history[id]) > MAX_FACE_ATTEMPTS: if len(self.person_face_history[id]) >= MAX_FACE_ATTEMPTS:
logger.debug("Not processing due to hitting max rec attempts.") logger.debug("Not processing due to hitting max rec attempts.")
return return