Skip to content

Commit 578ece5

Browse files
Merge pull request #1136 from der3318/update-face-snippets-for-sdk-b2
Update Face Snippets for SDK 1.0.0 Beta.2
2 parents 7c09fc5 + d6d2dae commit 578ece5

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

articles/ai-services/computer-vision/includes/quickstarts-sdk/identity-java-sdk.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,7 @@ Get started with facial recognition using the Face client library for Java. Foll
5151
<dependency>
5252
<groupId>com.azure</groupId>
5353
<artifactId>azure-ai-vision-face</artifactId>
54-
<version>1.0.0-beta.1</version>
55-
</dependency>
56-
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
57-
<dependency>
58-
<groupId>org.apache.httpcomponents</groupId>
59-
<artifactId>httpclient</artifactId>
60-
<version>4.5.13</version>
61-
</dependency>
62-
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
63-
<dependency>
64-
<groupId>com.google.code.gson</groupId>
65-
<artifactId>gson</artifactId>
66-
<version>2.11.0</version>
54+
<version>1.0.0-beta.2</version>
6755
</dependency>
6856
</dependencies>
6957
</project>

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)