Skip to content

Commit 70cf6b5

Browse files
author
Nabil Lathiff
committed
fixing some casing issues
1 parent d763037 commit 70cf6b5

File tree

1 file changed

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

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
151151
const credential = new AzureKeyCredential(apikey);
152152
const client = createFaceClient(endpoint, credential);
153153

154-
const createLivenessSessionResponse = await client.path('/detectliveness-sessions').post({
154+
const createLivenessSessionResponse = await client.path('/detectLiveness-sessions').post({
155155
body: {
156156
livenessOperationMode: 'Passive',
157157
deviceCorrelationId: '723d6d03-ef33-40a8-9682-23a1feb7bccd',
@@ -170,7 +170,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
170170

171171
#### [REST API (Windows)](#tab/cmd)
172172
```console
173-
curl --request POST --location "%FACE_ENDPOINT%/face/v1.2/detectliveness-sessions" ^
173+
curl --request POST --location "%FACE_ENDPOINT%/face/v1.2/detectLiveness-sessions" ^
174174
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%" ^
175175
--header "Content-Type: application/json" ^
176176
--data ^
@@ -183,7 +183,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
183183

184184
#### [REST API (Linux)](#tab/bash)
185185
```bash
186-
curl --request POST --location "${FACE_ENDPOINT}/face/v1.2/detectlivenesswithverify-sessions" \
186+
curl --request POST --location "${FACE_ENDPOINT}/face/v1.2/detectLivenesswithVerify-sessions" \
187187
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}" \
188188
--header "Content-Type: application/json" \
189189
--data \
@@ -313,13 +313,13 @@ The high-level steps involved in liveness orchestration are illustrated below:
313313

314314
#### [REST API (Windows)](#tab/cmd)
315315
```console
316-
curl --request GET --location "%FACE_ENDPOINT%/face/v1.2/detectliveness-sessions/<session-id>" ^
316+
curl --request GET --location "%FACE_ENDPOINT%/face/v1.2/detectLiveness-sessions/<session-id>" ^
317317
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%"
318318
```
319319

320320
#### [REST API (Linux)](#tab/bash)
321321
```bash
322-
curl --request GET --location "${FACE_ENDPOINT}/face/v1.2/detectliveness-sessions/<session-id>" \
322+
curl --request GET --location "${FACE_ENDPOINT}/face/v1.2/detectLiveness-sessions/<session-id>" \
323323
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}"
324324
```
325325

@@ -392,13 +392,13 @@ The high-level steps involved in liveness orchestration are illustrated below:
392392

393393
#### [REST API (Windows)](#tab/cmd)
394394
```console
395-
curl --request DELETE --location "%FACE_ENDPOINT%/face/v1.2/detectliveness-sessions/<session-id>" ^
395+
curl --request DELETE --location "%FACE_ENDPOINT%/face/v1.2/detectLiveness-sessions/<session-id>" ^
396396
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%"
397397
```
398398

399399
#### [REST API (Linux)](#tab/bash)
400400
```bash
401-
curl --request DELETE --location "${FACE_ENDPOINT}/face/v1.2/detectliveness-sessions/<session-id>" \
401+
curl --request DELETE --location "${FACE_ENDPOINT}/face/v1.2/detectLiveness-sessions/<session-id>" \
402402
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}"
403403
```
404404

@@ -525,7 +525,7 @@ The high-level steps involved in liveness with verification orchestration are il
525525
const credential = new AzureKeyCredential(apikey);
526526
const client = createFaceClient(endpoint, credential);
527527

528-
const createLivenessSessionResponse = await client.path('/detectlivenesswithverify-sessions').post({
528+
const createLivenessSessionResponse = await client.path('/detectLivenesswithVerify-sessions').post({
529529
contentType: 'multipart/form-data',
530530
body: [
531531
{
@@ -559,15 +559,15 @@ The high-level steps involved in liveness with verification orchestration are il
559559

560560
#### [REST API (Windows)](#tab/cmd)
561561
```console
562-
curl --request POST --location "%FACE_ENDPOINT%/face/v1.2/detectlivenesswithverify-sessions" ^
562+
curl --request POST --location "%FACE_ENDPOINT%/face/v1.2/detectLivenesswithVerify-sessions" ^
563563
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%" ^
564564
--form "Parameters=""{\\\""livenessOperationMode\\\"": \\\""passive\\\"", \\\""deviceCorrelationId\\\"": \\\""723d6d03-ef33-40a8-9682-23a1feb7bccd\\\"", ""enableSessionImage"": ""true""}""" ^
565565
--form "VerifyImage=@""test.png"""
566566
```
567567

568568
#### [REST API (Linux)](#tab/bash)
569569
```bash
570-
curl --request POST --location "${FACE_ENDPOINT}/face/v1.2/detectlivenesswithverify-sessions" \
570+
curl --request POST --location "${FACE_ENDPOINT}/face/v1.2/detectLivenesswithVerify-sessions" \
571571
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}" \
572572
--form 'Parameters="{
573573
\"livenessOperationMode\": \"passive\",
@@ -683,7 +683,7 @@ The high-level steps involved in liveness with verification orchestration are il
683683

684684
#### [JavaScript](#tab/javascript)
685685
```javascript
686-
const getLivenessSessionResultResponse = await client.path('/detectLivenessWithVerify/singleModal/sessions/{sessionId}', createLivenessSessionResponse.body.sessionId).get();
686+
const getLivenessSessionResultResponse = await client.path('/detectLivenesswithVerify/singleModal/sessions/{sessionId}', createLivenessSessionResponse.body.sessionId).get();
687687
if (isUnexpected(getLivenessSessionResultResponse)) {
688688
throw new Error(getLivenessSessionResultResponse.body.error.message);
689689
}
@@ -697,13 +697,13 @@ The high-level steps involved in liveness with verification orchestration are il
697697

698698
#### [REST API (Windows)](#tab/cmd)
699699
```console
700-
curl --request GET --location "%FACE_ENDPOINT%/face/v1.2/detectlivenesswithverify-sessions/<session-id>" ^
700+
curl --request GET --location "%FACE_ENDPOINT%/face/v1.2/detectLivenesswithVerify-sessions/<session-id>" ^
701701
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%"
702702
```
703703

704704
#### [REST API (Linux)](#tab/bash)
705705
```bash
706-
curl --request GET --location "${FACE_ENDPOINT}/face/v1.2/detectlivenesswithverify-sessions/<session-id>" \
706+
curl --request GET --location "${FACE_ENDPOINT}/face/v1.2/detectLivenesswithVerify-sessions/<session-id>" \
707707
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}"
708708
```
709709

@@ -781,7 +781,7 @@ The high-level steps involved in liveness with verification orchestration are il
781781

782782
#### [JavaScript](#tab/javascript)
783783
```javascript
784-
const deleteLivenessSessionResponse = await client.path('/detectLivenessWithVerify/singleModal/sessions/{sessionId}', createLivenessSessionResponse.body.sessionId).delete();
784+
const deleteLivenessSessionResponse = await client.path('/detectLivenesswithVerify/singleModal/sessions/{sessionId}', createLivenessSessionResponse.body.sessionId).delete();
785785
if (isUnexpected(deleteLivenessSessionResponse)) {
786786
throw new Error(deleteLivenessSessionResponse.body.error.message);
787787
}
@@ -790,13 +790,13 @@ The high-level steps involved in liveness with verification orchestration are il
790790

791791
#### [REST API (Windows)](#tab/cmd)
792792
```console
793-
curl --request DELETE --location "%FACE_ENDPOINT%/face/v1.2/detectlivenesswithverify-sessions/<session-id>" ^
793+
curl --request DELETE --location "%FACE_ENDPOINT%/face/v1.2/detectLivenesswithVerify-sessions/<session-id>" ^
794794
--header "Ocp-Apim-Subscription-Key: %FACE_APIKEY%"
795795
```
796796

797797
#### [REST API (Linux)](#tab/bash)
798798
```bash
799-
curl --request DELETE --location "${FACE_ENDPOINT}/face/v1.2/detectlivenesswithverify-sessions/<session-id>" \
799+
curl --request DELETE --location "${FACE_ENDPOINT}/face/v1.2/detectLivenesswithVerify-sessions/<session-id>" \
800800
--header "Ocp-Apim-Subscription-Key: ${FACE_APIKEY}"
801801
```
802802

0 commit comments

Comments
 (0)