@@ -87,8 +87,8 @@ The high-level steps involved in liveness orchestration are illustrated below:
87
87
88
88
#### [ C#] ( #tab/csharp )
89
89
``` csharp
90
- var endpoint = new Uri (System .Environment .GetEnvironmentVariable (" VISION_ENDPOINT " ));
91
- var credential = new AzureKeyCredential (System .Environment .GetEnvironmentVariable (" VISION_KEY " ));
90
+ var endpoint = new Uri (System .Environment .GetEnvironmentVariable (" FACE_ENDPOINT " ));
91
+ var credential = new AzureKeyCredential (System .Environment .GetEnvironmentVariable (" FACE_APIKEY " ));
92
92
93
93
var sessionClient = new FaceSessionClient (endpoint , credential );
94
94
@@ -107,8 +107,8 @@ The high-level steps involved in liveness orchestration are illustrated below:
107
107
108
108
#### [Java](#tab/java)
109
109
```java
110
- String endpoint = System .getenv (" VISION_ENDPOINT " );
111
- String accountKey = System .getenv (" VISION_KEY " );
110
+ String endpoint = System .getenv (" FACE_ENDPOINT " );
111
+ String accountKey = System .getenv (" FACE_APIKEY " );
112
112
113
113
FaceSessionClient sessionClient = new FaceSessionClientBuilder ()
114
114
.endpoint (endpoint )
@@ -127,8 +127,8 @@ The high-level steps involved in liveness orchestration are illustrated below:
127
127
128
128
#### [Python](#tab/python)
129
129
```python
130
- endpoint = os .environ [" VISION_ENDPOINT " ]
131
- key = os .environ [" VISION_KEY " ]
130
+ endpoint = os .environ [" FACE_ENDPOINT " ]
131
+ key = os .environ [" FACE_APIKEY " ]
132
132
133
133
face_session_client = FaceSessionClient (endpoint = endpoint , credential = AzureKeyCredential (key ))
134
134
@@ -171,8 +171,8 @@ The high-level steps involved in liveness orchestration are illustrated below:
171
171
172
172
#### [REST API (Windows)](#tab/cmd)
173
173
```console
174
- curl -- request POST -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions" ^
175
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %" ^
174
+ curl -- request POST -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions" ^
175
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %" ^
176
176
-- header " Content-Type: application/json" ^
177
177
-- data ^
178
178
" { ^
@@ -184,8 +184,8 @@ The high-level steps involved in liveness orchestration are illustrated below:
184
184
185
185
#### [REST API (Linux)](#tab/bash)
186
186
```bash
187
- curl -- request POST -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions" \
188
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }" \
187
+ curl -- request POST -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions" \
188
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }" \
189
189
-- header " Content-Type: application/json" \
190
190
-- data \
191
191
'{
@@ -303,14 +303,14 @@ The high-level steps involved in liveness orchestration are illustrated below:
303
303
304
304
#### [REST API (Windows)](#tab/cmd)
305
305
```console
306
- curl -- request GET -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" ^
307
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %"
306
+ curl -- request GET -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" ^
307
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %"
308
308
```
309
309
310
310
#### [REST API (Linux)](#tab/bash)
311
311
```bash
312
- curl -- request GET -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" \
313
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }"
312
+ curl -- request GET -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" \
313
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }"
314
314
```
315
315
316
316
-- -
@@ -394,14 +394,14 @@ The high-level steps involved in liveness orchestration are illustrated below:
394
394
395
395
#### [REST API (Windows)](#tab/cmd)
396
396
```console
397
- curl -- request DELETE -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" ^
398
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %"
397
+ curl -- request DELETE -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" ^
398
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %"
399
399
```
400
400
401
401
#### [REST API (Linux)](#tab/bash)
402
402
```bash
403
- curl -- request DELETE -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" \
404
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }"
403
+ curl -- request DELETE -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectliveness/singlemodal/sessions/<session-id>" \
404
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }"
405
405
```
406
406
407
407
-- -
@@ -443,8 +443,8 @@ The high-level steps involved in liveness with verification orchestration are il
443
443
444
444
#### [C#](#tab/csharp)
445
445
```csharp
446
- var endpoint = new Uri (System .Environment .GetEnvironmentVariable (" VISION_ENDPOINT " ));
447
- var credential = new AzureKeyCredential (System .Environment .GetEnvironmentVariable (" VISION_KEY " ));
446
+ var endpoint = new Uri (System .Environment .GetEnvironmentVariable (" FACE_ENDPOINT " ));
447
+ var credential = new AzureKeyCredential (System .Environment .GetEnvironmentVariable (" FACE_APIKEY " ));
448
448
449
449
var sessionClient = new FaceSessionClient (endpoint , credential );
450
450
@@ -467,8 +467,8 @@ The high-level steps involved in liveness with verification orchestration are il
467
467
468
468
#### [Java](#tab/java)
469
469
```java
470
- String endpoint = System .getenv (" VISION_ENDPOINT " );
471
- String accountKey = System .getenv (" VISION_KEY " );
470
+ String endpoint = System .getenv (" FACE_ENDPOINT " );
471
+ String accountKey = System .getenv (" FACE_APIKEY " );
472
472
473
473
FaceSessionClient sessionClient = new FaceSessionClientBuilder ()
474
474
.endpoint (endpoint )
@@ -493,8 +493,8 @@ The high-level steps involved in liveness with verification orchestration are il
493
493
494
494
#### [Python](#tab/python)
495
495
```python
496
- endpoint = os .environ [" VISION_ENDPOINT " ]
497
- key = os .environ [" VISION_KEY " ]
496
+ endpoint = os .environ [" FACE_ENDPOINT " ]
497
+ key = os .environ [" FACE_APIKEY " ]
498
498
499
499
face_session_client = FaceSessionClient (endpoint = endpoint , credential = AzureKeyCredential (key ))
500
500
@@ -558,16 +558,16 @@ The high-level steps involved in liveness with verification orchestration are il
558
558
559
559
#### [REST API (Windows)](#tab/cmd)
560
560
```console
561
- curl -- request POST -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions" ^
562
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %" ^
561
+ curl -- request POST -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions" ^
562
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %" ^
563
563
-- form " Parameters=" " {\\\" " livenessOperationMode \\\" " : \\\" " passive \\\" " , \\\" " deviceCorrelationId \\\" " : \\\" " 723d6d03 - ef33 - 40a8 - 9682 - 23a1feb7bccd \\\" " }""" ^
564
564
--form "VerifyImage=@""test.png"""
565
565
```
566
566
567
567
#### [REST API (Linux)](#tab/bash)
568
568
```bash
569
- curl -- request POST -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions" \
570
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }" \
569
+ curl -- request POST -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions" \
570
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }" \
571
571
-- form 'Parameters="{
572
572
\" livenessOperationMode\" : \" passive\" ,
573
573
\" deviceCorrelationId\" : \" 723d6d03-ef33-40a8-9682-23a1feb7bccd\"
@@ -693,14 +693,14 @@ The high-level steps involved in liveness with verification orchestration are il
693
693
694
694
#### [REST API (Windows)](#tab/cmd)
695
695
```console
696
- curl -- request GET -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" ^
697
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %"
696
+ curl -- request GET -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" ^
697
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %"
698
698
```
699
699
700
700
#### [REST API (Linux)](#tab/bash)
701
701
```bash
702
- curl -- request GET -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" \
703
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }"
702
+ curl -- request GET -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" \
703
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }"
704
704
```
705
705
706
706
-- -
@@ -788,14 +788,14 @@ The high-level steps involved in liveness with verification orchestration are il
788
788
789
789
#### [REST API (Windows)](#tab/cmd)
790
790
```console
791
- curl -- request DELETE -- location " %VISION_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" ^
792
- -- header " Ocp-Apim-Subscription-Key: %VISION_KEY %"
791
+ curl -- request DELETE -- location " %FACE_ENDPOINT %/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" ^
792
+ -- header " Ocp-Apim-Subscription-Key: %FACE_APIKEY %"
793
793
```
794
794
795
795
#### [REST API (Linux)](#tab/bash)
796
796
```bash
797
- curl -- request DELETE -- location " ${VISION_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" \
798
- -- header " Ocp-Apim-Subscription-Key: ${VISION_KEY }"
797
+ curl -- request DELETE -- location " ${FACE_ENDPOINT }/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions/<session-id>" \
798
+ -- header " Ocp-Apim-Subscription-Key: ${FACE_APIKEY }"
799
799
```
800
800
801
801
-- -
0 commit comments