Skip to content

Commit 809ac75

Browse files
Merge pull request #261391 from nabilat/main
Fix errors in the face liveness tutorial.
2 parents feac6da + e7c6b4d commit 809ac75

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • articles/ai-services/computer-vision/Tutorials

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The liveness solution integration involves two different components: a mobile ap
3737
### Integrate liveness into mobile application
3838

3939
Once you have access to the SDK, follow instruction in the [azure-ai-vision-sdk](https://github.com/Azure-Samples/azure-ai-vision-sdk) GitHub repository to integrate the UI and the code into your native mobile application. The liveness SDK supports both Java/Kotlin for Android and Swift for iOS mobile applications:
40-
- For Swift iOS, follow the instructions in the [iOS sample](https://aka.ms/liveness-sample-ios)
40+
- For Swift iOS, follow the instructions in the [iOS sample](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-ios-readme)
4141
- For Kotlin/Java Android, follow the instructions in the [Android sample](https://aka.ms/liveness-sample-java)
4242

4343
Once you've added the code into your application, the SDK will handle starting the camera, guiding the end-user to adjust their position, composing the liveness payload, and calling the Azure AI Face cloud service to process the liveness payload.
@@ -54,7 +54,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
5454

5555
```json
5656
Request:
57-
curl --location 'https://face-gating-livenessdetection.ppe.cognitiveservices.azure.com/face/v1.1-preview.1/detectliveness/singlemodal/sessions' \
57+
curl --location '<insert-api-endpoint>/face/v1.1-preview.1/detectliveness/singlemodal/sessions' \
5858
--header 'Ocp-Apim-Subscription-Key:<insert-api-key>
5959
--header 'Content-Type: application/json' \
6060
--data '{
@@ -93,7 +93,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
9393

9494
```json
9595
Request:
96-
curl --location 'https://face-gating-livenessdetection.ppe.cognitiveservices.azure.com/face/v1.1-preview.1/detectliveness/singlemodal/sessions/a3dc62a3-49d5-45a1-886c-36e7df97499a' \
96+
curl --location '<insert-api-endpoint>/face/v1.1-preview.1/detectliveness/singlemodal/sessions/a3dc62a3-49d5-45a1-886c-36e7df97499a' \
9797
--header 'Ocp-Apim-Subscription-Key: <insert-api-key>
9898

9999
Response:
@@ -178,13 +178,13 @@ The high-level steps involved in liveness with verification orchestration are il
178178

179179
```json
180180
Request:
181-
curl --location 'https://face-gating-livenessdetection.ppe.cognitiveservices.azure.com/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions' \
181+
curl --location '<insert-api-endpoint>/face/v1.1-preview.1/detectlivenesswithverify/singlemodal/sessions' \
182182
--header 'Ocp-Apim-Subscription-Key: <api_key>' \
183183
--form 'Parameters="{
184184
\"livenessOperationMode\": \"passive\",
185185
\"deviceCorrelationId\": \"723d6d03-ef33-40a8-9682-23a1feb7bccd\"
186186
}"' \
187-
--form 'VerifyImage=@"/C:/Users/nabilat/Pictures/test.png"'
187+
--form 'VerifyImage=@"test.png"'
188188

189189
Response:
190190
{
@@ -222,11 +222,11 @@ The high-level steps involved in liveness with verification orchestration are il
222222

223223
```json
224224
Request:
225-
curl --location 'https://face-gating-livenessdetection.ppe.cognitiveservices.azure.com/face/v1.1-preview.1/detectlivenesswithverify/singlemodal' \
225+
curl --location '<insert-api-endpoint>/face/v1.1-preview.1/detectlivenesswithverify/singlemodal' \
226226
--header 'Content-Type: multipart/form-data' \
227227
--header 'apim-recognition-model-preview-1904: true' \
228228
--header 'Authorization: Bearer.<session-authorization-token> \
229-
--form 'Content=@"/D:/work/scratch/data/clips/webpapp6/video.webp"' \
229+
--form 'Content=@"video.webp"' \
230230
--form 'Metadata="<insert-metadata>"
231231

232232
Response:
@@ -286,7 +286,7 @@ If you want to clean up and remove an Azure AI services subscription, you can de
286286

287287
## Next steps
288288

289-
See the liveness SDK reference to learn about other options in the liveness APIs.
289+
See the Azure AI Vision SDK reference to learn about other options in the liveness APIs.
290290

291-
- [Java (Android)](https://aka.ms/liveness-sdk-java)
292-
- [Swift (iOS)](https://aka.ms/liveness-sdk-ios)
291+
- [Kotlin (Android)](https://aka.ms/liveness-sample-java)
292+
- [Swift (iOS)](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-ios-readme)

0 commit comments

Comments
 (0)