共用方式為


FaceSessionClient.CreateLivenessWithVerifySession Method

Definition

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

public virtual Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult> CreateLivenessWithVerifySession (Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent jsonContent, System.IO.Stream verifyImage, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateLivenessWithVerifySession : Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent * System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult>
override this.CreateLivenessWithVerifySession : Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent * System.IO.Stream * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult>
Public Overridable Function CreateLivenessWithVerifySession (jsonContent As CreateLivenessWithVerifySessionContent, verifyImage As Stream, Optional cancellationToken As CancellationToken = Nothing) As 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