Skip to content

Commit d6d2dae

Browse files
authored
update liveness with verify session parameter
1 parent deb9173 commit d6d2dae

File tree

1 file changed

+3
-3
lines changed
  • articles/ai-services/computer-vision/tutorials

1 file changed

+3
-3
lines changed

articles/ai-services/computer-vision/tutorials/liveness.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ The high-level steps involved in liveness with verification orchestration are il
445445

446446
var sessionClient = new FaceSessionClient(endpoint, credential);
447447

448-
var createContent = new CreateLivenessSessionContent(LivenessOperationMode.Passive)
448+
var createContent = new CreateLivenessWithVerifySessionContent(LivenessOperationMode.Passive)
449449
{
450450
DeviceCorrelationId = "723d6d03-ef33-40a8-9682-23a1feb7bccd"
451451
};
@@ -472,7 +472,7 @@ The high-level steps involved in liveness with verification orchestration are il
472472
.credential(new AzureKeyCredential(accountKey))
473473
.buildClient();
474474

475-
CreateLivenessSessionContent parameters = new CreateLivenessSessionContent(LivenessOperationMode.PASSIVE)
475+
CreateLivenessWithVerifySessionContent parameters = new CreateLivenessWithVerifySessionContent(LivenessOperationMode.PASSIVE)
476476
.setDeviceCorrelationId("723d6d03-ef33-40a8-9682-23a1feb7bccd")
477477
.setSendResultsToClient(false);
478478

@@ -500,7 +500,7 @@ The high-level steps involved in liveness with verification orchestration are il
500500
reference_image_content = fd.read()
501501

502502
created_session = await face_session_client.create_liveness_with_verify_session(
503-
CreateLivenessSessionContent(
503+
CreateLivenessWithVerifySessionContent(
504504
liveness_operation_mode=LivenessOperationMode.PASSIVE,
505505
device_correlation_id="723d6d03-ef33-40a8-9682-23a1feb7bccd",
506506
),

0 commit comments

Comments
 (0)