Skip to content

Commit 59bda23

Browse files
authored
Merge pull request #265101 from MicrosoftDocs/main
2/2/2024 AM Publish
2 parents 1088f3c + 658b318 commit 59bda23

File tree

143 files changed

+2350
-378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+2350
-378
lines changed

.openpublishing.redirection.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
"redirect_url": "/previous-versions/azure/storage/queues/storage-ruby-how-to-use-queue-storage",
6161
"redirect_document_id": false
6262
},
63+
{
64+
"source_path": "articles/storage-actions/index.yml",
65+
"redirect_url": "/azure/storage-actions/storage-tasks/",
66+
"redirect_document_id": false
67+
},
6368
{
6469
"source_path": "articles/storage/queues/storage-php-how-to-use-queues.md",
6570
"redirect_url": "/previous-versions/azure/storage/queues/storage-php-how-to-use-queues",
@@ -11799,10 +11804,15 @@
1179911804
"redirect_document_id": false
1180011805

1180111806
},
11807+
{
11808+
"source_path": "articles/external-attack-surface-management/labeling-inventory-assets.md",
11809+
"redirect_URL": "/azure/external-attack-surface-management/modifying-inventory-assets",
11810+
"redirect_document_id": true
11811+
},
1180211812
{
1180311813
"source_path_from_root": "/articles/azure-health-insights/response-info.md",
1180411814
"redirect_url": "/azure/azure-health-insights/overview",
1180511815
"redirect_document_id": false
1180611816
}
1180711817
]
11808-
}
11818+
}

articles/ai-services/computer-vision/concept-face-detection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ ms.author: pafarley
1919

2020
[!INCLUDE [Gate notice](./includes/identity-gate-notice.md)]
2121

22+
> [!IMPORTANT]
23+
> Face attributes are predicted through the use of statistical algorithms. They might not always be accurate. Use caution when you make decisions based on attribute data. Please refrain from using these attributes for anti-spoofing. Instead, we recommend using Face Liveness detection. For more information, please refer to [Tutorial: Detect liveness in faces](/azure/ai-services/computer-vision/tutorials/liveness).
24+
2225
This article explains the concepts of face detection and face attribute data. Face detection is the process of locating human faces in an image and optionally returning different kinds of face-related data.
2326

2427
You use the [Face - Detect](https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236) API to detect faces in an image. To get started using the REST API or a client SDK, follow a [quickstart](./quickstarts-sdk/identity-client-library.md). Or, for a more in-depth guide, see [Call the detect API](./how-to/identity-detect-faces.md).
@@ -67,9 +70,6 @@ Attributes are a set of features that can optionally be detected by the [Face -
6770
>[!NOTE]
6871
> The availability of each attribute depends on the detection model specified. QualityForRecognition attribute also depends on the recognition model, as it is currently only available when using a combination of detection model detection_01 or detection_03, and recognition model recognition_03 or recognition_04.
6972
70-
> [!IMPORTANT]
71-
> Face attributes are predicted through the use of statistical algorithms. They might not always be accurate. Use caution when you make decisions based on attribute data.
72-
7373
## Input data
7474

7575
Use the following tips to make sure that your input images give the most accurate detection results:

articles/ai-services/computer-vision/how-to/use-headpose.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ ms.custom:
2020

2121
In this guide, you'll see how you can use the HeadPose attribute of a detected face to enable some key scenarios.
2222

23+
> [!IMPORTANT]
24+
> Face attributes are predicted through the use of statistical algorithms. They might not always be accurate. Use caution when you make decisions based on attribute data. Please refrain from using these attributes for anti-spoofing. Instead, we recommend using Face Liveness detection. For more information, please refer to [Tutorial: Detect liveness in faces](/azure/ai-services/computer-vision/tutorials/liveness).
25+
2326
## Rotate the face rectangle
2427

2528
The face rectangle, returned with every detected face, marks the location and size of the face in the image. By default, the rectangle is always aligned with the image (its sides are vertical and horizontal); this can be inefficient for framing angled faces. In situations where you want to programmatically crop faces in an image, it's better to be able to rotate the rectangle to crop.

articles/ai-services/document-intelligence/faq.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,32 @@ sections:
460460
461461
- You need an active [Azure account](https://azure.microsoft.com/free/cognitive-services/) and subscription with at least a **Reader** role to access Document Intelligence Studio.
462462
463-
- For **document analysis and prebuilt models**, you need full access—**Cognitive Services User** role—to at least one [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource. Once you access the model analyze page, you can change the endpoint and key to access other resources, if needed.
463+
- For document analysis and prebuilt models, here are the role requirements for user scenarios.
464464
465-
- For **custom models**, you can either use a **Cognitive Services User** role, or use the endpoint and key of a [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to create a project. You also need to have **Storage Blob Data Contributor** role to access to at least one blob storage account.
465+
- Basic
466466
467-
- For more information, *see* [Microsoft Entra built-in roles](../../role-based-access-control/built-in-roles.md).
467+
- **Cognitive Services User**: you need this role to [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [Cognitive Services multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to enter the analyze page.
468+
469+
- Advanced
470+
471+
- **Contributor**: you need this role to create resource group or Document Intelligence resource.
472+
473+
- For custom model projects, here are the role requirements for user scenarios.
474+
475+
- Basic
476+
477+
- **Cognitive Services User**: you need this role to [Document Intelligence](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) or [Cognitive Services multi-service](https://portal.azure.com/#create/Microsoft.CognitiveServicesAllInOne) resource to train custom model or analyze with trained models.
478+
479+
- **Storage Blob Data Contributor**: you need this role to storage account to create project and label data.
480+
481+
- Advanced
482+
483+
- **Storage Account Contributor**: you need this role to the storage account to setup CORS settings (this is one time effort if the same storage account is reused).
484+
485+
- **Contributor**: you need this role to create resource group and resources.
486+
487+
488+
- For more information, *see* [Microsoft Entra built-in roles](../../role-based-access-control/built-in-roles.md) and **Azure role assignments** sections in [Document Intelligence Studio](quickstarts/try-document-intelligence-studio.md) page.
468489
469490
- question: |
470491
I have multiple pages in a document. Why are there only two pages analyzed in Document Intelligence Studio?
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
services: ai-services
3+
author: soferreira
4+
ms.author: soferreira
5+
ms.service: openai
6+
ms.topic: include
7+
ms.date: 1/25/2024
8+
---
9+
10+
## Python
11+
12+
### Prerequisites
13+
14+
- <a href="https://www.python.org/" target="_blank">Python 3.7.1 or later version</a>
15+
- The following Python libraries: os
16+
17+
### Set up
18+
19+
Install the OpenAI Python client library with:
20+
21+
# [OpenAI Python 0.28.1](#tab/python)
22+
23+
```console
24+
pip install openai==0.28.1
25+
```
26+
27+
# [OpenAI Python 1.x](#tab/python-new)
28+
29+
```console
30+
pip install openai
31+
```
32+
33+
---
34+
35+
1. Create a new Python file called quickstart.py. Then open it up in your preferred editor or IDE.
36+
37+
1. Replace the contents of quickstart.py with the following code. Modify the code to add your deployment name:
38+
39+
```python
40+
import openai
41+
import time
42+
import os
43+
44+
openai.api_key = os.getenv("AZURE_OPENAI_KEY")
45+
openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT") # your endpoint should look like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
46+
openai.api_type = "azure"
47+
openai.api_version = "2023-09-01-preview"
48+
49+
model_name = "whisper"
50+
deployment_id = "YOUR-DEPLOYMENT-NAME-HERE" #This will correspond to the custom name you chose for your deployment when you deployed a model."
51+
audio_language="en"
52+
53+
audio_test_file = "./wikipediaOcelot.wav"
54+
55+
result = openai.Audio.transcribe(
56+
file=open(audio_test_file, "rb"),
57+
model=model_name,
58+
deployment_id=deployment_id
59+
)
60+
61+
print(result)
62+
```
63+
64+
Run the application with the python command on your quickstart file:
65+
66+
67+
You can get sample audio files from the [Azure AI Speech SDK repository at GitHub](https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/sampledata/audiofiles).
68+
69+
> [!IMPORTANT]
70+
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
71+
72+
## Output
73+
74+
```python
75+
{"text":"The ocelot, Lepardus paradalis, is a small wild cat native to the southwestern United States, Mexico, and Central and South America. This medium-sized cat is characterized by solid black spots and streaks on its coat, round ears, and white neck and undersides. It weighs between 8 and 15.5 kilograms, 18 and 34 pounds, and reaches 40 to 50 centimeters 16 to 20 inches at the shoulders. It was first described by Carl Linnaeus in 1758. Two subspecies are recognized, L. p. paradalis and L. p. mitis. Typically active during twilight and at night, the ocelot tends to be solitary and territorial. It is efficient at climbing, leaping, and swimming. It preys on small terrestrial mammals such as armadillo, opossum, and lagomorphs."}
76+
```

0 commit comments

Comments
 (0)