Skip to content

SearchFaces

Source: src/AWS/Rekognition/SearchFaces.ts

Runtime binding for rekognition:SearchFaces — search a face collection for faces matching a face ID already stored in the collection.

The binding takes no arguments and grants the function rekognition:SearchFaces on * (Rekognition data-plane resources such as collections, users, and jobs are routinely created at runtime, so their identifiers are unknown at deploy time). Provide the implementation with Effect.provide(AWS.Rekognition.SearchFacesHttp).

// init
const searchFaces = yield* AWS.Rekognition.SearchFaces();
// runtime
const result = yield* searchFaces({
CollectionId: "tenant-42",
FaceId: faceId,
FaceMatchThreshold: 95,
});
const matches = result.FaceMatches ?? [];