Ask for people
People need their own category,.people, and the people index option. No other category implies it, no default grant includes it, and the person always sees it named. Ask for it on its own, in plain words.
Read the groups
people returns groups with at least minimumPhotos photos (2 by default), most photos first, 50 by default. photos(of:) returns the group’s photos newest first, as search hits with the reason .person, and pages with limit, offset and cursor.
PoolKit never names a group. Your app may let the person name one; keep that name in your app.
Age and gender are guesses
ageRange and apparentGender are how a face appears to a model, never who the person is or how they identify. Do not use them to decide what someone may see, buy or pay. Show them, if at all, as a guess the person can correct.
- The face model is small (about 0.8 MB) and downloads with PoolKit’s other models. It reads each face crop on the device. Photos read before it arrived are read again, and their groups stay as they were.
- Each label has its own bar, set so that at least 85% of the labels it gives are right on faces it was not trained on. A group shows an estimate only when its faces agree with at least 0.7 confidence, so many groups have neither.
apparentGenderis given for about 8 faces in 10. When it is given it is right about 91% of the time, and about 83% of the time for children and teens.ageRangeis0-9or20-39for now. Teens,40-59and60+are not returned until the model is right about them often enough. About 3 faces in 10 get an age range.- Both are
niluntil the face model has downloaded.
NOTICE file carries its credit.
How grouping works
- Only photos count: not screenshots, not videos, and only photos where Vision found a face.
- A face must be clear enough, at least 6% of the photo’s shorter side, and turned no more than 45 degrees.
- Each face becomes a vector on the device. A face joins a group only when it is very close to it, and close groups merge.
- The bar is set so that two people should never share a group. The cost is that one person can appear as several groups, for example in very different light or years apart.
Taking it back
Turning thepeople option off deletes every face and group at once. When no active grant includes .people any more, the next indexing run does the same. Deleting a photo deletes its faces.
Nothing about a face is in any request to Pool’s service or in cloud assist.
