共用方式為


FaceSessionClient.CreateLivenessWithVerifySessionAsync Method

Definition

Create a new liveness session with verify. Provide the verify image during session creation.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult>> CreateLivenessWithVerifySessionAsync (Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent jsonContent, System.IO.Stream verifyImage, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateLivenessWithVerifySessionAsync : Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult>>
override this.CreateLivenessWithVerifySessionAsync : Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult>>
Public Overridable Function CreateLivenessWithVerifySessionAsync (jsonContent As CreateLivenessWithVerifySessionContent, verifyImage As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateLivenessWithVerifySessionResult))

Parameters

jsonContent
CreateLivenessWithVerifySessionContent

Parameters for liveness with verify session creation.

verifyImage
Stream

Image binary data for verify image, can be provided as session creation time or during the /detectLivenessWithVerify/singleModal

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jsonContent is null.

Remarks

Please refer to https://learn.microsoft.com/rest/api/face/liveness-session-operations/create-liveness-with-verify-session-with-verify-image for more details.

Applies to