你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CreateLivenessWithVerifySessionContent Class

Definition

Request for creating liveness with verify session.

public class CreateLivenessWithVerifySessionContent : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent>
type CreateLivenessWithVerifySessionContent = class
    interface IJsonModel<CreateLivenessWithVerifySessionContent>
    interface IPersistableModel<CreateLivenessWithVerifySessionContent>
Public Class CreateLivenessWithVerifySessionContent
Implements IJsonModel(Of CreateLivenessWithVerifySessionContent), IPersistableModel(Of CreateLivenessWithVerifySessionContent)
Inheritance
CreateLivenessWithVerifySessionContent
Implements

Constructors

CreateLivenessWithVerifySessionContent(LivenessOperationMode)

Initializes a new instance of CreateLivenessWithVerifySessionContent.

Properties

AuthTokenTimeToLiveInSeconds

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

DeviceCorrelationId

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.

DeviceCorrelationIdSetInClient

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

Whether or not store the session image.

LivenessOperationMode

Type of liveness mode the client should follow.

LivenessSingleModalModel

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.

ReturnVerifyImageHash

Whether or not return the verify image hash.

SendResultsToClient

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.

VerifyConfidenceThreshold

Threshold for confidence of the face verification.

Explicit Interface Implementations

IJsonModel<CreateLivenessWithVerifySessionContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CreateLivenessWithVerifySessionContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CreateLivenessWithVerifySessionContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CreateLivenessWithVerifySessionContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CreateLivenessWithVerifySessionContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to