mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Cleanup
This commit is contained in:
parent
870ff63d96
commit
5ba7aac431
@ -307,7 +307,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
||||
|
||||
sub_label, score = res
|
||||
|
||||
if score < self.face_config.unknown_score:
|
||||
if score <= self.face_config.unknown_score:
|
||||
sub_label = "unknown"
|
||||
|
||||
return {"success": True, "score": score, "face_name": sub_label}
|
||||
@ -379,7 +379,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
||||
|
||||
sub_label, score = res
|
||||
|
||||
if score < self.face_config.unknown_score:
|
||||
if score <= self.face_config.unknown_score:
|
||||
sub_label = "unknown"
|
||||
|
||||
if self.config.face_recognition.save_attempts:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user