Skip to content

Commit b24907f

Browse files
authored
Merge pull request #276249 from zihyunting/face-liveness-update
Face liveness documentation update
2 parents f66326b + 44ccf34 commit b24907f

File tree

7 files changed

+643
-77
lines changed

7 files changed

+643
-77
lines changed

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

Lines changed: 592 additions & 74 deletions
Large diffs are not rendered by default.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
author: PatrickFarley
3+
ms.service: azure-ai-vision
4+
ms.topic: include
5+
ms.date: 08/07/2023
6+
ms.author: pafarley
7+
---
8+
9+
In this example, write your credentials to environment variables on the local machine that runs the application.
10+
11+
[!INCLUDE [find key and endpoint](./find-key.md)]
12+
13+
> [!TIP]
14+
> Don't include the key directly in your code, and never post it publicly. See the Azure AI services [security](../../security-features.md) article for more authentication options like [Azure Key Vault](../../use-key-vault.md).
15+
16+
To set the environment variable for your key and endpoint, open a console window and follow the instructions for your operating system and development environment.
17+
18+
1. To set the `VISION_KEY` environment variable, replace `your-key` with one of the keys for your resource.
19+
2. To set the `VISION_ENDPOINT` environment variable, replace `your-endpoint` with the endpoint for your resource.
20+
21+
#### [Windows](#tab/windows)
22+
23+
```console
24+
setx VISION_KEY your-key
25+
```
26+
27+
```console
28+
setx VISION_ENDPOINT your-endpoint
29+
```
30+
31+
After you add the environment variables, you may need to restart any running programs that will read the environment variables, including the console window.
32+
33+
#### [Linux](#tab/linux)
34+
35+
```bash
36+
export VISION_KEY=your-key
37+
```
38+
39+
```bash
40+
export VISION_ENDPOINT=your-endpoint
41+
```
42+
43+
After you add the environment variables, run `source ~/.bashrc` from your console window to make the changes effective.
44+
45+
---

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ Get started with facial recognition using the Face client library for .NET. The
2727
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2828

2929

30+
## Create environment variables
3031

31-
[!INCLUDE [create environment variables](../environment-variables.md)]
32+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3233

3334
## Identify and verify faces
3435

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ Get started with facial recognition using the Face client library for JavaScript
2727
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2828

2929

30+
## Create environment variables
3031

31-
[!INCLUDE [create environment variables](../environment-variables.md)]
32+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3233

3334

3435
## Identify and verify faces

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ Get started with facial recognition using the Face client library for Python. Fo
2828
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
2929

3030

31+
## Create environment variables
3132

32-
[!INCLUDE [create environment variables](../environment-variables.md)]
33+
[!INCLUDE [create environment variables](../face-environment-variables.md)]
3334

3435
## Identify and verify faces
3536

41.8 KB
Loading
48.7 KB
Loading

0 commit comments

Comments
 (0)