You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/how-to/shelf-modify-images.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@ author: PatrickFarley
6
6
manager: nitinme
7
7
ms.service: azure-ai-vision
8
8
ms.topic: how-to
9
-
ms.date: 07/10/2023
10
-
ms.author: ginle
9
+
ms.date: 06/01/2024
10
+
ms.author: pafarley
11
11
ms.custom: references_regions, build-2023
12
12
---
13
13
14
-
# Shelf Image Composition (preview)
14
+
# Shelf image composition (preview)
15
15
16
16
Part of the Product Recognition workflow involves fixing and modifying the input images so the service can perform correctly.
17
17
@@ -59,7 +59,7 @@ To run the image stitching operation on a set of images, follow these steps:
59
59
1. Open a command prompt window.
60
60
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
61
61
62
-
## Examine the stitching response
62
+
### Examine the stitching response
63
63
64
64
The API returns a `200` response, and the new file is downloaded to the location you specified.
65
65
@@ -108,15 +108,12 @@ To correct the perspective distortion in the composite image, follow these steps
108
108
109
109
:::image type="content" source="../media/shelf/rectify.png" alt-text="Photo of a shelf with its four corners outlined.":::
110
110
111
-
> [!NOTE]
112
-
> The brands shown in the images are not affiliated with Microsoft and do not indicate any form of endorsement of Microsoft or Microsoft products by the brand owners, or an endorsement of the brand owners or their products by Microsoft.
113
-
114
111
1. Replace `<your_filename>` with the name and extension of the file where you'd like to get the result (for example, `download.jpg`).
115
112
1. Open a command prompt window.
116
113
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
117
114
118
115
119
-
## Examine the rectification response
116
+
### Examine the rectification response
120
117
121
118
The API returns a `200` response, and the new file is downloaded to the location you specified.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/environment-variables.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,23 +23,23 @@ To set the environment variable for your key and endpoint, open a console window
23
23
#### [Windows](#tab/windows)
24
24
25
25
```console
26
-
setx VISION_KEY your-key
26
+
setx VISION_KEY <your_key>
27
27
```
28
28
29
29
```console
30
-
setx VISION_ENDPOINT your-endpoint
30
+
setx VISION_ENDPOINT <your_endpoint>
31
31
```
32
32
33
33
After you add the environment variables, you may need to restart any running programs that will read the environment variables, including the console window.
34
34
35
35
#### [Linux](#tab/linux)
36
36
37
37
```bash
38
-
export VISION_KEY=your-key
38
+
export VISION_KEY=<your_key>
39
39
```
40
40
41
41
```bash
42
-
export VISION_ENDPOINT=your-endpoint
42
+
export VISION_ENDPOINT=<your_endpoint>
43
43
```
44
44
45
45
After you add the environment variables, run `source ~/.bashrc` from your console window to make the changes effective.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-js.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,10 @@ Alternatively, you can pass in the image as a data array. For example, read from
45
45
46
46
## Select visual features
47
47
48
-
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the available visual features, but for practical usage you likely need fewer.
48
+
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [Overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the available visual features, but for practical usage you likely need fewer.
49
+
50
+
> [!IMPORTANT]
51
+
> The visual features [Captions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-caption) and [DenseCaptions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-dense-captions) are only supported in the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-python.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,10 @@ ms.author: pafarley
10
10
11
11
## Prerequisites
12
12
13
-
This guide assumes you have followed the steps mentioned in the [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40). This means:
13
+
This guide assumes you've followed the steps of the [quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40). This means:
14
14
15
-
* You have <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision"title="created a Computer Vision resource"target="_blank">created a Computer Vision resource </a> and obtained a key and endpoint URL.
16
-
* You have the appropriate SDK package installed and you have a running[quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40) application. You can modify this quickstart application based on the code examples here.
15
+
* You've <ahref="https://portal.azure.com/#create/Microsoft.CognitiveServicesComputerVision"title="Created a Computer Vision resource"target="_blank">created a Computer Vision resource </a> and obtained a key and endpoint URL.
16
+
* You've installed the appropriate SDK package and have a working[quickstart](/azure/ai-services/computer-vision/quickstarts-sdk/image-analysis-client-library-40) application. You can modify this quickstart application based on the code examples here.
17
17
18
18
## Create and authenticate the client
19
19
@@ -27,7 +27,7 @@ To authenticate against the Image Analysis service, you need a Computer Vision k
27
27
28
28
Start by creating an [ImageAnalysisClient](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient) object using one of the constructors. For example:
Alternatively, you can pass in the image as [bytes](https://docs.python.org/3/library/stdtypes.html#bytes-objects) object. For example, read from a local image file you want to analyze.
The Analysis 4.0 API gives you access to all of the service's image analysis features. Choose which operations to do based on your own use case. See the [overview](/azure/ai-services/computer-vision/overview-image-analysis) for a description of each feature. The example in this section adds all of the [available visual features](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.models.visualfeatures), but for practical usage you likely need fewer.
> The visual features [Captions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-caption) and [DenseCaptions](/java/api/com.azure.ai.vision.imageanalysis.models.visualfeatures#com-azure-ai-vision-imageanalysis-models-visualfeatures-dense-captions) are only supported in the following Azure regions: East US, France Central, Korea Central, North Europe, Southeast Asia, West Europe, West US.
@@ -65,9 +68,9 @@ To use a custom model, create the [ImageAnalysisOptions](/python/api/azure-ai-vi
65
68
66
69
## Call the analyze_from_url method with options
67
70
68
-
The following code calls the [analyze_from_url](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyzefromurl) method on the client with the features you selected above and additional options, defined below. To analyze from an image buffer instead of URL, call the method [analyze](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyze) instead, with `image_data=image_data` as the first argument.
71
+
The following code calls the [analyze_from_url](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyzefromurl) method on the client with the features you selected above and other options, defined below. To analyze from an image buffer instead of URL, call the method [analyze](/python/api/azure-ai-vision-imageanalysis/azure.ai.vision.imageanalysis.imageanalysisclient#azure-ai-vision-imageanalysis-imageanalysisclient-analyze) instead, with `image_data=image_data` as the first argument.
Message: Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.
125
128
```
126
129
127
-
Or when you provide an image URL that does not exist or not accessible:
130
+
Or when you provide an image URL that doesn't exist or is not accessible:
By default logs redact the values of URL query strings, the values of some HTTP request and response headers (including `Ocp-Apim-Subscription-Key` which holds the key), and the request and response payloads. To create logs without redaction, set the method argument `logging_enable = True` when you create `ImageAnalysisClient`, or when you call `analyze` on the client.
167
+
By default logs redact the values of URL query strings, the values of some HTTP request and response headers (including `Ocp-Apim-Subscription-Key`, which holds the key), and the request and response payloads. To create logs without redaction, set the method argument `logging_enable = True` when you create `ImageAnalysisClient`, or when you call `analyze` on the client.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/how-to-guides/analyze-image-40-rest.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,10 @@ Authentication is done by adding the HTTP request header **Ocp-Apim-Subscription
32
32
33
33
The code in this guide uses remote images referenced by URL. You may want to try different images on your own to see the full capability of the Image Analysis features.
34
34
35
-
35
+
### Image URL
36
36
When analyzing a remote image, you specify the image's URL by formatting the request body like this: `{"url":"https://learn.microsoft.com/azure/cognitive-services/computer-vision/images/windows-kitchen.jpg"}`. The **Content-Type** should be `application/json`.
37
37
38
+
### Image file
38
39
To analyze a local image, you'd put the binary image data in the HTTP request body. The **Content-Type** should be `application/octet-stream` or `multipart/form-data`.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/identity-curl-quickstart.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ Get started with facial recognition using the Face REST API. The Face service pr
24
24
* You'll need the key and endpoint from the resource you create to connect your application to the Face API. You'll paste your key and endpoint into the code below later in the quickstart.
25
25
* You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
26
26
*[PowerShell version 6.0+](/powershell/scripting/install/installing-powershell-core-on-windows), or a similar command-line application.
Copy file name to clipboardExpand all lines: articles/ai-services/computer-vision/includes/quickstarts-sdk/identity-csharp-sdk.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.date: 05/03/2022
13
13
ms.author: pafarley
14
14
---
15
15
16
-
Get started with facial recognition using the Face client library for .NET. The Face service provides you with access to advanced algorithms for detecting and recognizing human faces in images. Follow these steps to install the package and try out the example code for basic face identification using remote images.
16
+
Get started with facial recognition using the Face client library for .NET. The Azure AI Face service provides you with access to advanced algorithms for detecting and recognizing human faces in images. Follow these steps to install the package and try out the example code for basic face identification using remote images.
0 commit comments