Skip to content

Commit 7cc0b06

Browse files
committed
reorg sections
1 parent 6b83250 commit 7cc0b06

File tree

1 file changed

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

1 file changed

+16
-19
lines changed

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

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ ms.date: 11/06/2023
1212

1313
# Tutorial: Detect liveness in faces
1414

15-
Face Liveness detection can be used to determine if a face in an input video stream is real (live) or fake (spoof). It is a crucial building block in a biometric authentication system to prevent spoofing attacks from imposters trying to gain access to the system using a photograph, video, mask, or other means to impersonate another person.
15+
Face Liveness detection can be used to determine if a face in an input video stream is real (live) or fake (spoofed). It is an important building block in a biometric authentication system to prevent imposters from gaining access to the system using a photograph, video, mask, or other means to impersonate another person.
1616

1717
The goal of liveness detection is to ensure that the system is interacting with a physically present live person at the time of authentication. Such systems have become increasingly important with the rise of digital finance, remote access control, and online identity verification processes.
1818

19-
The liveness detection solution successfully defends against various spoof types ranging from paper printouts, 2d/3d masks, and spoof presentations on phones and laptops. Liveness detection is an active area of research, with continuous improvements being made to counteract increasingly sophisticated spoofing attacks over time. Continuous improvements will be rolled out to the client and the service components over time as the overall solution gets more robust to new types of attacks.
19+
The Azure AI Face liveness detection solution successfully defends against various spoof types ranging from paper printouts, 2d/3d masks, and spoof presentations on phones and laptops. Liveness detection is an active area of research, with continuous improvements being made to counteract increasingly sophisticated spoofing attacks over time. Continuous improvements will be rolled out to the client and the service components over time as the overall solution gets more robust to new types of attacks.
2020

2121
[!INCLUDE [liveness-sdk-gate](../includes/liveness-sdk-gate.md)]
2222

2323

24+
2425
## Introduction
2526

2627
The liveness solution integration involves two distinct components: a frontend mobile/web application and an app server/orchestrator.
@@ -37,12 +38,10 @@ Additionally, we combine face verification with liveness detection to verify whe
3738
| Liveness detection | Determine an input is real or fake, and only the app server has the authority to start the liveness check and query the result. |
3839
| Liveness detection with face verification | Determine an input is real or fake and verify the identity of the person based on a reference image you provided. Either the app server or the frontend application can provide a reference image. Only the app server has the authority to initial the liveness check and query the result. |
3940

40-
41-
## Get started
42-
4341
This tutorial demonstrates how to operate a frontend application and an app server to perform [liveness detection](#perform-liveness-detection) and [liveness detection with face verification](#perform-liveness-detection-with-face-verification) across various language SDKs.
4442

45-
### Prerequisites
43+
44+
## Prerequisites
4645

4746
- Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
4847
- Your Azure account must have a **Cognitive Services Contributor** role assigned in order for you to agree to the responsible AI terms and create a resource. To get this role assigned to your account, follow the steps in the [Assign roles](/azure/role-based-access-control/role-assignments-steps) documentation, or contact your administrator.
@@ -51,32 +50,30 @@ This tutorial demonstrates how to operate a frontend application and an app serv
5150
- You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
5251
- Access to the Azure AI Vision Face Client SDK for mobile (IOS and Android) and web. To get started, you need to apply for the [Face Recognition Limited Access features](https://customervoice.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR7en2Ais5pxKtso_Pz4b1_xUQjA5SkYzNDM4TkcwQzNEOE1NVEdKUUlRRCQlQCN0PWcu) to get access to the SDK. For more information, see the [Face Limited Access](/legal/cognitive-services/computer-vision/limited-access-identity?context=%2Fazure%2Fcognitive-services%2Fcomputer-vision%2Fcontext%2Fcontext) page.
5352

54-
### Setup frontend applications and app servers to perform liveness detection
53+
## Set up frontend applications and app servers to perform liveness detection
5554

5655
We provide SDKs in different languages for frontend applications and app servers. See the following instructions to setup your frontend applications and app servers.
5756

58-
#### Integrate liveness into frontend application
59-
60-
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 Java/Kotlin for Android mobile applications, Swift for iOS mobile applications and JavaScript for web applications:
57+
Once you have access to the SDK, follow instructions 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 Java/Kotlin for Android mobile applications, Swift for iOS mobile applications and JavaScript for web applications:
6158
- For Swift iOS, follow the instructions in the [iOS sample](https://aka.ms/azure-ai-vision-face-liveness-client-sdk-ios-readme)
6259
- For Kotlin/Java Android, follow the instructions in the [Android sample](https://aka.ms/liveness-sample-java)
6360
- For JavaScript Web, follow the instructions in the [Web sample](https://aka.ms/liveness-sample-web)
6461

6562
Once you've added the code into your application, the SDK handles 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.
6663

67-
#### Download Azure AI Face client library for an app server
64+
### Download Azure AI Face client library for an app server
6865

6966
The app server/orchestrator is responsible for controlling the lifecycle of a liveness session. The app server has to create a session before performing liveness detection, and then it can query the result and delete the session when the liveness check is finished. We offer a library in various languages for easily implementing your app server. Follow these steps to install the package you want:
7067
- For C#, follow the instructions in the [dotnet readme](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/face/Azure.AI.Vision.Face/README.md)
7168
- For Java, follow the instructions in the [Java readme](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/face/azure-ai-vision-face/README.md)
7269
- For Python, follow the instructions in the [Python readme](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/face/azure-ai-vision-face/README.md)
7370
- For JavaScript, follow the instructions in the [JavaScript readme](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/face/ai-vision-face-rest/README.md)
7471

75-
##### Create environment variables
72+
### Create environment variables
7673

7774
[!INCLUDE [create environment variables](../includes/face-environment-variables.md)]
7875

79-
### Perform liveness detection
76+
## Perform liveness detection
8077

8178
The high-level steps involved in liveness orchestration are illustrated below:
8279

@@ -407,7 +404,7 @@ The high-level steps involved in liveness orchestration are illustrated below:
407404

408405
---
409406

410-
### Perform liveness detection with face verification
407+
## Perform liveness detection with face verification
411408

412409
Combining face verification with liveness detection enables biometric verification of a particular person of interest with an added guarantee that the person is physically present in the system.
413410
There are two parts to integrating liveness with verification:
@@ -416,15 +413,15 @@ There are two parts to integrating liveness with verification:
416413

417414
:::image type="content" source="../media/liveness/liveness-verify-diagram.jpg" alt-text="Diagram of the liveness-with-face-verification workflow of Azure AI Face." lightbox="../media/liveness/liveness-verify-diagram.jpg":::
418415

419-
#### Select a good reference image
416+
### Select a good reference image
420417

421418
Use the following tips to ensure that your input images give the most accurate recognition results.
422419

423-
##### Technical requirements:
420+
#### Technical requirements
424421
[!INCLUDE [identity-input-technical](../includes/identity-input-technical.md)]
425422
* You can utilize the `qualityForRecognition` attribute in the [face detection](../how-to/identity-detect-faces.md) operation when using applicable detection models as a general guideline of whether the image is likely of sufficient quality to attempt face recognition on. Only `"high"` quality images are recommended for person enrollment and quality at or above `"medium"` is recommended for identification scenarios.
426423

427-
##### Composition requirements:
424+
#### Composition requirements
428425
- Photo is clear and sharp, not blurry, pixelated, distorted, or damaged.
429426
- Photo is not altered to remove face blemishes or face appearance.
430427
- Photo must be in an RGB color supported format (JPEG, PNG, WEBP, BMP). Recommended Face size is 200 pixels x 200 pixels. Face sizes larger than 200 pixels x 200 pixels will not result in better AI quality, and no larger than 6 MB in size.
@@ -436,7 +433,7 @@ Use the following tips to ensure that your input images give the most accurate r
436433
- Background should be uniform and plain, free of any shadows.
437434
- Face should be centered within the image and fill at least 50% of the image.
438435

439-
#### Set up the orchestration of liveness with verification.
436+
### Set up the orchestration of liveness with verification.
440437

441438
The high-level steps involved in liveness with verification orchestration are illustrated below:
442439
1. Providing the verification reference image by either of the following two methods:
@@ -801,7 +798,7 @@ The high-level steps involved in liveness with verification orchestration are il
801798

802799
---
803800

804-
### Clean up resources
801+
## Clean up resources
805802

806803
If you want to clean up and remove an Azure AI services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it.
807804

0 commit comments

Comments
 (0)