Skip to main content

Module same_person

Module same_person 

Source
Expand description

“Same person?” suggestions: pairs of people who are probably one person split in two (lighting, age, glasses, angle).

Clustering already merges pairs it is sure about. This finds the pairs just below that bar and asks, rather than guessing: a wrong automatic merge is far more costly than a question. Nothing here merges anything.

Pairs are scored the way the clustering merge pass scores them: the mean of the three closest face pairs across the two people’s galleries. A pair is never suggested when the people appear together in a photo, when they were marked as different (“Never”), or while snoozed (“Not now”).

Structs§

SamePersonPair
Two people who may be the same, a < b.

Constants§

ASK_FROM
Lowest score worth asking about. The merge pass merges on its own from 0.55, so asking starts a little below where it stops being sure.
SNOOZE_DAYS
How long “Not now” keeps a pair from being asked again.

Functions§

never
“Never”: these two are different people, for clustering and merging too.
sample_faces
A person’s clearest faces, best first, for showing them side by side.
snooze
“Not now”: don’t ask about this pair for SNOOZE_DAYS.
suggestions
Up to limit pairs worth asking about, those involving a named person first, then closest first.