fix: use stranger likelihood (1 - best_sim) as confidence for unknown face alarms
This commit is contained in:
parent
0a572f279a
commit
85e91f3c2f
@ -951,7 +951,8 @@ private:
|
||||
|
||||
Detection d;
|
||||
d.cls_id = -1;
|
||||
d.score = it.best_sim;
|
||||
// Unknown: show stranger likelihood (1 - best_sim). Known: show match confidence (best_sim).
|
||||
d.score = (rule.kind == FaceRule::Kind::Unknown) ? (1.0f - it.best_sim) : it.best_sim;
|
||||
d.bbox = it.bbox;
|
||||
d.track_id = it.person_track_id >= 0 ? it.person_track_id : it.best_person_id;
|
||||
dets.push_back(std::move(d));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user