AIVisionFaceModelFactory.CreateLivenessWithVerifySessionContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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.
- 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.
Seconds the session should last for. Range is 60 to 86400 seconds. Default value is 600.
Returns
A new CreateLivenessWithVerifySessionContent instance for mocking.
Applies to
Azure SDK for .NET