Skip to content

Commit bc37817

Browse files
Merge pull request #267492 from PatrickFarley/freshness
various freshness
2 parents ab9a2ce + 35abba3 commit bc37817

26 files changed

+333
-326
lines changed

articles/ai-services/cognitive-services-limited-access.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-services
99
ms.topic: conceptual
10-
ms.date: 10/27/2022
10+
ms.date: 02/27/2024
1111
ms.author: pafarley
1212
---
1313

@@ -17,7 +17,7 @@ Our vision is to empower developers and organizations to use AI to transform soc
1717

1818
## What is Limited Access?
1919

20-
Limited Access services require registration, and only customers managed by Microsoft, meaning those who are working directly with Microsoft account teams, are eligible for access. The use of these services is limited to the use case selected at the time of registration. Customers must acknowledge that they've reviewed and agree to the terms of service. Microsoft may require customers to reverify this information.
20+
Limited Access services require registration, and only customers managed by Microsoft—meaning those who are working directly with Microsoft account teams—are eligible for access. The use of these services is limited to the use case selected at the time of registration. Customers must acknowledge that they've reviewed and agree to the terms of service. Microsoft may require customers to reverify this information.
2121

2222
Limited Access services are made available to customers under the terms governing their subscription to Microsoft Azure Services (including the [Service Specific Terms](https://go.microsoft.com/fwlink/?linkid=2018760)). Review these terms carefully as they contain important conditions and obligations governing your use of Limited Access services.
2323

@@ -51,7 +51,7 @@ Submit a registration form for each Limited Access service you would like to use
5151

5252
### How long will the registration process take?
5353

54-
Review may take 5-10 business days. You will receive an email as soon as your application is reviewed.
54+
You'll receive communication from us about your application within 5-10 business days. In some cases, reviews can take longer. You'll receive an email as soon as your application is reviewed.
5555

5656
### Who is eligible to use Limited Access services?
5757

@@ -92,9 +92,6 @@ Detailed information about supported regions for Custom Neural Voice and Speaker
9292

9393
If you're an existing customer and your application for access is denied, you will no longer be able to use Limited Access features after June 30, 2023. Your data is subject to Microsoft's data retention [policies](https://www.microsoft.com/trust-center/privacy/data-management#:~:text=If%20you%20terminate%20a%20cloud,data%20or%20renew%20your%20subscription.).
9494

95-
### How long will the registration process take?
96-
97-
You'll receive communication from us about your application within 10 business days. In some cases, reviews can take longer. You'll receive an email as soon as your application is reviewed.
9895

9996
## Help and support
10097

articles/ai-services/computer-vision/concept-describe-images-40.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The following JSON response illustrates what the Analysis 4.0 API returns when g
122122
}
123123
]
124124
},
125-
"modelVersion": "2023-10-01",
125+
"modelVersion": "2024-02-01",
126126
"metadata": {
127127
"width": 850,
128128
"height": 567

articles/ai-services/computer-vision/concept-ocr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following JSON response illustrates what the Image Analysis 4.0 API returns
3434

3535
```json
3636
{
37-
"modelVersion": "2023-10-01",
37+
"modelVersion": "2024-02-01",
3838
"metadata":
3939
{
4040
"width": 1000,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The following JSON response illustrates what the Analysis 4.0 API returns when d
2727

2828
```json
2929
{
30-
"modelVersion": "2023-10-01",
30+
"modelVersion": "2024-02-01",
3131
"metadata": {
3232
"width": 300,
3333
"height": 231

articles/ai-services/computer-vision/deploy-computer-vision-on-premises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: PatrickFarley
77
manager: nitinme
88
ms.service: azure-ai-vision
99
ms.topic: how-to
10-
ms.date: 05/09/2022
10+
ms.date: 02/27/2024
1111
ms.author: pafarley
1212
ms.custom: cogserv-non-critical-vision
1313
---

articles/ai-services/computer-vision/faq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99

1010
ms.service: azure-ai-vision
1111
ms.topic: faq
12-
ms.date: 05/09/2022
12+
ms.date: 02/27/2024
1313
ms.author: pafarley
1414
ms.custom: cogserv-non-critical-vision
1515
title: Azure AI Vision API Frequently Asked Questions
@@ -52,4 +52,4 @@ sections:
5252
- question: |
5353
Can I train Azure AI Vision API to use custom tags? For example, I would like to feed in pictures of cat breeds to 'train' the AI, then receive the breed value on an AI request.
5454
answer: |
55-
This function is currently not available. You can use [Custom Vision](../custom-vision-service/overview.md) to train a model to detect user-defined visual features.
55+
Yes. See [Model customization](/azure/ai-services/computer-vision/concept-model-customization), a feature of Image Analysis 4.0.

articles/ai-services/computer-vision/how-to/analyze-video.md

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@ author: PatrickFarley
88
ms.author: pafarley
99
ms.service: azure-ai-vision
1010
ms.topic: how-to
11-
ms.date: 07/05/2022
11+
ms.date: 02/27/2024
1212
ms.devlang: csharp
1313
ms.custom: devx-track-csharp, cogserv-non-critical-vision
1414
---
1515

1616
# Analyze videos in near real time
1717

18-
This article demonstrates how to perform near real-time analysis on frames that are taken from a live video stream by using the Azure AI Vision API. The basic elements of such an analysis are:
18+
This article demonstrates how to use the Azure AI Vision API to perform near real-time analysis on frames that are taken from a live video stream. The basic elements of such an analysis are:
1919

20-
- Acquiring frames from a video source.
21-
- Selecting which frames to analyze.
22-
- Submitting these frames to the API.
23-
- Consuming each analysis result that's returned from the API call.
20+
- Acquiring frames from a video source
21+
- Selecting which frames to analyze
22+
- Submitting these frames to the API
23+
- Consuming each analysis result that's returned from the API call
2424

25-
The samples in this article are written in C#. To access the code, go to the [Video frame analysis sample](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) page on GitHub.
25+
> [!TIP]
26+
> The samples in this article are written in C#. To access the code, go to the [Video frame analysis sample](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) page on GitHub.
2627
2728
## Approaches to running near real-time analysis
2829

29-
You can solve the problem of running near real-time analysis on video streams by using a variety of approaches. This article outlines three of them, in increasing levels of sophistication.
30+
You can solve the problem of running near real-time analysis on video streams using a variety of approaches. This article outlines three of them, in increasing levels of sophistication.
3031

31-
### Design an infinite loop
32+
### Method 1: Design an infinite loop
3233

33-
The simplest design for near real-time analysis is an infinite loop. In each iteration of this loop, you grab a frame, analyze it, and then consume the result:
34+
The simplest design for near real-time analysis is an infinite loop. In each iteration of this loop, the application retrieves a frame, analyzes it, and then processes the result:
3435

3536
```csharp
3637
while (true)
@@ -46,7 +47,7 @@ while (true)
4647

4748
If your analysis were to consist of a lightweight, client-side algorithm, this approach would be suitable. However, when the analysis occurs in the cloud, the resulting latency means that an API call might take several seconds. During this time, you're not capturing images, and your thread is essentially doing nothing. Your maximum frame rate is limited by the latency of the API calls.
4849

49-
### Allow the API calls to run in parallel
50+
### Method 2: Allow the API calls to run in parallel
5051

5152
Although a simple, single-threaded loop makes sense for a lightweight, client-side algorithm, it doesn't fit well with the latency of a cloud API call. The solution to this problem is to allow the long-running API call to run in parallel with the frame-grabbing. In C#, you could do this by using task-based parallelism. For example, you can run the following code:
5253

@@ -70,9 +71,9 @@ With this approach, you launch each analysis in a separate task. The task can ru
7071
* It could also cause multiple threads to enter the ConsumeResult() function simultaneously, which might be dangerous if the function isn't thread-safe.
7172
* Finally, this simple code doesn't keep track of the tasks that get created, so exceptions silently disappear. Thus, you need to add a "consumer" thread that tracks the analysis tasks, raises exceptions, kills long-running tasks, and ensures that the results get consumed in the correct order, one at a time.
7273

73-
### Design a producer-consumer system
74+
### Method 3: Design a producer-consumer system
7475

75-
For your final approach, designing a "producer-consumer" system, you build a producer thread that looks similar to your previously mentioned infinite loop. However, instead of consuming the analysis results as soon as they're available, the producer simply places the tasks in a queue to keep track of them.
76+
To design a "producer-consumer" system, you build a producer thread that looks similar to the previous section's infinite loop. Then, instead of consuming the analysis results as soon as they're available, the producer simply places the tasks in a queue to keep track of them.
7677

7778
```csharp
7879
// Queue that will contain the API call tasks.
@@ -109,7 +110,7 @@ while (true)
109110
}
110111
```
111112

112-
You also create a consumer thread, which takes tasks off the queue, waits for them to finish, and either displays the result or raises the exception that was thrown. By using the queue, you can guarantee that the results get consumed one at a time, in the correct order, without limiting the maximum frame rate of the system.
113+
You also create a consumer thread, which takes tasks off the queue, waits for them to finish, and either displays the result or raises the exception that was thrown. By using this queue, you can guarantee that the results get consumed one at a time, in the correct order, without limiting the maximum frame rate of the system.
113114

114115
```csharp
115116
// Consumer thread.
@@ -137,13 +138,15 @@ while (true)
137138

138139
### Get sample code
139140

140-
To help get your app up and running as quickly as possible, we've implemented the system that's described in the preceding section. It's intended to be flexible enough to accommodate many scenarios, while being easy to use. To access the code, go to the [Video frame analysis sample](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) page on GitHub.
141+
To help get your app up and running as quickly as possible, we've implemented the system that's described in the previous section. It's intended to be flexible enough to accommodate many scenarios, while being easy to use. To access the code, go to the [Video frame analysis sample](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) repo on GitHub.
141142

142-
The library contains the `FrameGrabber` class, which implements the previously discussed producer-consumer system to process video frames from a webcam. Users can specify the exact form of the API call, and the class uses events to let the calling code know when a new frame is acquired, or when a new analysis result is available.
143+
The library contains the `FrameGrabber` class, which implements the producer-consumer system to process video frames from a webcam. Users can specify the exact form of the API call, and the class uses events to let the calling code know when a new frame is acquired, or when a new analysis result is available.
144+
145+
### View sample implementations
143146

144147
To illustrate some of the possibilities, we've provided two sample apps that use the library.
145148

146-
The first sample app is a simple console app that grabs frames from the default webcam and then submits them to the Face service for face detection. A simplified version of the app is reproduced in the following code:
149+
The first sample app is a simple console app that grabs frames from the default webcam and then submits them to the Face service for face detection. A simplified version of the app is represented in the following code:
147150

148151
```csharp
149152
using System;
@@ -213,11 +216,11 @@ namespace BasicConsoleSample
213216
}
214217
```
215218

216-
The second sample app is a bit more interesting. It allows you to choose which API to call on the video frames. On the left side, the app shows a preview of the live video. On the right, it overlays the most recent API result on the corresponding frame.
219+
The second sample app offers more functionality. It allows you to choose which API to call on the video frames. On the left side, the app shows a preview of the live video. On the right, it overlays the most recent API result on the corresponding frame.
217220

218-
In most modes, there's a visible delay between the live video on the left and the visualized analysis on the right. This delay is the time that it takes to make the API call. An exception is in the "EmotionsWithClientFaceDetect" mode, which performs face detection locally on the client computer by using OpenCV before it submits any images to Azure AI services.
221+
In most modes, there's a visible delay between the live video on the left and the visualized analysis on the right. This delay is the time that it takes to make the API call. An exception is in the `EmotionsWithClientFaceDetect` mode, which performs face detection locally on the client computer by using OpenCV before it submits any images to Azure AI services.
219222

220-
By using this approach, you can visualize the detected face immediately. You can then update the emotions later, after the API call returns. This demonstrates the possibility of a "hybrid" approach. That is, some simple processing can be performed on the client, and then Azure AI services APIs can be used to augment this processing with more advanced analysis when necessary.
223+
By using this approach, you can visualize the detected face immediately. You can then update the attributes later, after the API call returns. This demonstrates the possibility of a "hybrid" approach. That is, some simple processing can be performed on the client, and then Azure AI services APIs can be used to augment this processing with more advanced analysis when necessary.
221224

222225
![The LiveCameraSample app displaying an image with tags](../images/frame-by-frame.jpg)
223226

@@ -226,18 +229,18 @@ By using this approach, you can visualize the detected face immediately. You can
226229
To get started with this sample, do the following:
227230

228231
1. Create an [Azure account](https://azure.microsoft.com/free/cognitive-services/). If you already have one, you can skip to the next step.
229-
2. Create resources for Azure AI Vision and Face in the Azure portal to get your key and endpoint. Make sure to select the free tier (F0) during setup.
232+
1. Create resources for Azure AI Vision and Face in the Azure portal to get your key and endpoint. Make sure to select the free tier (F0) during setup.
230233
- [Azure AI Vision](https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision)
231234
- [Face](https://portal.azure.com/#create/Microsoft.CognitiveServicesFace)
232235
After the resources are deployed, select **Go to resource** to collect your key and endpoint for each resource.
233-
3. Clone the [Cognitive-Samples-VideoFrameAnalysis](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) GitHub repo.
234-
4. Open the sample in Visual Studio 2015 or later, and then build and run the sample applications:
236+
1. Clone the [Cognitive-Samples-VideoFrameAnalysis](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/) GitHub repo.
237+
1. Open the sample in Visual Studio 2015 or later, and then build and run the sample applications:
235238
- For BasicConsoleSample, the Face key is hard-coded directly in [BasicConsoleSample/Program.cs](https://github.com/Microsoft/Cognitive-Samples-VideoFrameAnalysis/blob/master/Windows/BasicConsoleSample/Program.cs).
236239
- For LiveCameraSample, enter the keys in the **Settings** pane of the app. The keys are persisted across sessions as user data.
237240

238-
When you're ready to integrate the samples, reference the VideoFrameAnalyzer library from your own projects.
241+
When you're ready to integrate the samples, reference the **VideoFrameAnalyzer** library from your own projects.
239242

240-
The image-, voice-, video-, and text-understanding capabilities of VideoFrameAnalyzer use Azure AI services. Microsoft receives the images, audio, video, and other data that you upload (via this app) and might use them for service-improvement purposes. We ask for your help in protecting the people whose data your app sends to Azure AI services.
243+
The image-, voice-, video-, and text-understanding capabilities of **VideoFrameAnalyzer** use Azure AI services. Microsoft receives the images, audio, video, and other data that you upload (through this app) and might use them for service-improvement purposes. We ask for your help in protecting the people whose data your app sends to Azure AI services.
241244

242245
## Next steps
243246

articles/ai-services/computer-vision/how-to/call-analyze-image-40.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: azure-ai-vision
1010
ms.topic: how-to
1111
ms.date: 08/01/2023
1212
ms.custom: references_regions, devx-track-python, devx-track-extended-java, devx-track-js
13-
zone_pivot_groups: programming-languages-computer-vision-40
13+
zone_pivot_groups: programming-languages-computer-vision
1414
---
1515

1616
# Call the Image Analysis 4.0 Analyze API

0 commit comments

Comments
 (0)