FaceSessionClient.CreateLivenessWithVerifySessionAsync 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.
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.