Adjust unknown

This commit is contained in:
Nicolas Mowen 2025-03-28 11:37:52 -06:00
parent 0618ca6563
commit 870ff63d96
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ Fine-tune face recognition with these optional parameters:
### Recognition ### Recognition
- `model_size`: Which model size to use, options are `small` or `large` - `model_size`: Which model size to use, options are `small` or `large`
- `unknown_score`: Min score to mark a person as a potential match, matches below this will be marked as unknown. - `unknown_score`: Min score to mark a person as a potential match, matches at or below this will be marked as unknown.
- Default: `0.8`. - Default: `0.8`.
- `recognition_threshold`: Recognition confidence score required to add the face to the object as a sub label. - `recognition_threshold`: Recognition confidence score required to add the face to the object as a sub label.
- Default: `0.9`. - Default: `0.9`.

View File

@ -241,7 +241,7 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
sub_label, score = res sub_label, score = res
if score < self.face_config.unknown_score: if score <= self.face_config.unknown_score:
sub_label = "unknown" sub_label = "unknown"
logger.debug( logger.debug(