mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 05:27:44 +03:00
Match logic
This commit is contained in:
parent
fc4371410c
commit
848ace3021
@ -297,6 +297,9 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
|
|
||||||
sub_label, score = res
|
sub_label, score = res
|
||||||
|
|
||||||
|
if score < self.face_config.unknown_score:
|
||||||
|
sub_label = "unknown"
|
||||||
|
|
||||||
return {"success": True, "score": score, "face_name": sub_label}
|
return {"success": True, "score": score, "face_name": sub_label}
|
||||||
elif topic == EmbeddingsRequestEnum.register_face.value:
|
elif topic == EmbeddingsRequestEnum.register_face.value:
|
||||||
rand_id = "".join(
|
rand_id = "".join(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user