bnolan / bnolan/echt-server

Search for top 10 matched faces

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
future
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently we do this in `upload-photo`:

``` const faceLookups = response.FaceDetails.map((faceRecord) => {
return searchFacesByCroppedImage(faceRecord, buffer)
.then(response => {
if (!response.FaceMatches.length) {
return null;
}

if (response.FaceMatches.length > 0) {
return response.FaceMatches[0].Face.FaceId;
}
```

It would be goot to instead get the top 10 face matches and look up the user records (with a batched query) and then return all those faces in our calculation of what action to attach to a photo. Possible cases:

* One of the faces is yours, but not the first face
* There may be multiple users that have faces similar to your friends, display a grid of friends faces and tap the right one

We may want to reduce the number of face matches by using GeoIP or similair as a follow up change.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.