GetFaceLivenessSessionResults
Source:
src/AWS/Rekognition/GetFaceLivenessSessionResults.ts
Runtime binding for rekognition:GetFaceLivenessSessionResults — get the confidence score, status, and audit images of a completed Face Liveness session.
The binding takes no arguments and grants the function
rekognition:GetFaceLivenessSessionResults 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.GetFaceLivenessSessionResultsHttp).
Face Liveness
Section titled “Face Liveness”// initconst getFaceLivenessSessionResults = yield* AWS.Rekognition.GetFaceLivenessSessionResults();
// runtimeconst results = yield* getFaceLivenessSessionResults({ SessionId: sessionId,});const isLive = results.Status === "SUCCEEDED" && (results.Confidence ?? 0) > 80;