Dela via


AIVisionFaceModelFactory.CreateLivenessWithVerifySessionContent Method

Definition

Initializes a new instance of CreateLivenessWithVerifySessionContent.

public static Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent CreateLivenessWithVerifySessionContent (Azure.AI.Vision.Face.LivenessOperationMode livenessOperationMode = default, bool? sendResultsToClient = default, bool? deviceCorrelationIdSetInClient = default, bool? enableSessionImage = default, Azure.AI.Vision.Face.LivenessModel? livenessSingleModalModel = default, string deviceCorrelationId = default, int? authTokenTimeToLiveInSeconds = default, bool? returnVerifyImageHash = default, float? verifyConfidenceThreshold = default);
static member CreateLivenessWithVerifySessionContent : Azure.AI.Vision.Face.LivenessOperationMode * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.AI.Vision.Face.LivenessModel> * string * Nullable<int> * Nullable<bool> * Nullable<single> -> Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent
Public Shared Function CreateLivenessWithVerifySessionContent (Optional livenessOperationMode As LivenessOperationMode = Nothing, Optional sendResultsToClient As Nullable(Of Boolean) = Nothing, Optional deviceCorrelationIdSetInClient As Nullable(Of Boolean) = Nothing, Optional enableSessionImage As Nullable(Of Boolean) = Nothing, Optional livenessSingleModalModel As Nullable(Of LivenessModel) = Nothing, Optional deviceCorrelationId As String = Nothing, Optional authTokenTimeToLiveInSeconds As Nullable(Of Integer) = Nothing, Optional returnVerifyImageHash As Nullable(Of Boolean) = Nothing, Optional verifyConfidenceThreshold As Nullable(Of Single) = Nothing) As CreateLivenessWithVerifySessionContent

Parameters

livenessOperationMode
LivenessOperationMode

Type of liveness mode the client should follow.

sendResultsToClient
Nullable<Boolean>

Whether or not to allow a '200 - Success' response body to be sent to the client, which may be undesirable for security reasons. Default is false, clients will receive a '204 - NoContent' empty body response. Regardless of selection, calling Session GetResult will always contain a response body enabling business logic to be implemented.

deviceCorrelationIdSetInClient
Nullable<Boolean>

Whether or not to allow client to set their own 'deviceCorrelationId' via the Vision SDK. Default is false, and 'deviceCorrelationId' must be set in this request body.

enableSessionImage
Nullable<Boolean>

Whether or not store the session image.

livenessSingleModalModel
Nullable<LivenessModel>

The model version used for liveness classification. This is an optional parameter, and if this is not specified, then the latest supported model version will be chosen.

deviceCorrelationId
String

Unique Guid per each end-user device. This is to provide rate limiting and anti-hammering. If 'deviceCorrelationIdSetInClient' is true in this request, this 'deviceCorrelationId' must be null.

authTokenTimeToLiveInSeconds
Nullable<Int32>

Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600.

returnVerifyImageHash
Nullable<Boolean>

Whether or not return the verify image hash.

verifyConfidenceThreshold
Nullable<Single>

Threshold for confidence of the face verification.

Returns

A new CreateLivenessWithVerifySessionContent instance for mocking.

Applies to