Skip to content

Commit 6e9d994

Browse files
Merge pull request #249174 from ginalee-dotcom/ginalee-dotcom-patch-1
Update shelf docs
2 parents 74cc1a1 + 7bc83fb commit 6e9d994

File tree

5 files changed

+28
-18
lines changed

5 files changed

+28
-18
lines changed

articles/ai-services/computer-vision/concept-shelf-analysis.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Try out the capabilities of Product Recognition quickly and easily in your brows
3030
3131
## Product Recognition features
3232

33-
### Image modification
33+
### Shelf Image Composition
3434

3535
The [stitching and rectification APIs](./how-to/shelf-modify-images.md) let you modify images to improve the accuracy of the Product Understanding results. You can use these APIs to:
3636
* Stitch together multiple images of a shelf to create a single image.
3737
* Rectify an image to remove perspective distortion.
3838

39-
### Product Understanding (pretrained)
39+
### Shelf Product Recognition (pretrained model)
4040

4141
The [Product Understanding API](./how-to/shelf-analyze.md) lets you analyze a shelf image using the out-of-box pretrained model. This operation detects products and gaps in the shelf image and returns the bounding box coordinates of each product and gap, along with a confidence score for each.
4242

@@ -85,7 +85,7 @@ The following JSON response illustrates what the Product Understanding API retur
8585
}
8686
```
8787

88-
### Product Understanding (custom)
88+
### Shelf Product Recognition - Custom (customized model)
8989

9090
The Product Understanding API can also be used with a [custom trained model](./how-to/shelf-model-customization.md) to detect your specific products. This operation returns the bounding box coordinates of each product and gap, along with the label of each product.
9191

@@ -134,7 +134,7 @@ The following JSON response illustrates what the Product Understanding API retur
134134
}
135135
```
136136

137-
### Planogram matching
137+
### Shelf Planogram Compliance (preview)
138138

139139
The [Planogram matching API](./how-to/shelf-planogram.md) lets you compare the results of the Product Understanding API to a planogram document. This operation matches each detected product and gap to its corresponding position in the planogram document.
140140

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.author: pafarley
1212
ms.custom: references_regions, build-2023, build-2023-dataai
1313
---
1414

15-
# Analyze a shelf image using pretrained models
15+
# Shelf Product Recognition (preview): Analyze shelf images using pretrained model
1616

1717
The fastest way to start using Product Recognition is to use the built-in pretrained AI models. With the Product Understanding API, you can upload a shelf image and get the locations of products and gaps.
1818

@@ -37,13 +37,14 @@ To analyze a shelf image, do the following steps:
3737
1. Copy the following `curl` command into a text editor.
3838

3939
```bash
40-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/vision/v4.0-preview.1/operations/shelfanalysis-productunderstanding:analyze" -d "{
40+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/productrecognition/ms-pretrained-product-detection/runs/<your_run_name>?api-version=2023-04-01-preview" -d "{
4141
'url':'<your_url_string>'
4242
}"
4343
```
4444
1. Make the following changes in the command where needed:
45-
1. Replace the value of `<subscriptionKey>` with your Vision resource key.
46-
1. Replace the value of `<endpoint>` with your Vision resource endpoint. For example: `https://YourResourceName.cognitiveservices.azure.com`.
45+
1. Replace the `<subscriptionKey>` with your Vision resource key.
46+
1. Replace the `<endpoint>` with your Vision resource endpoint. For example: `https://YourResourceName.cognitiveservices.azure.com`.
47+
2. Replace the `<your_run_name>` with your unique test run name for the task queue. It is an async API task queue name for you to be able retrieve the API response later. For example, `.../runs/test1?api-version...`
4748
1. Replace the `<your_url_string>` contents with the blob URL of the image
4849
1. Open a command prompt window.
4950
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.

articles/ai-services/computer-vision/how-to/shelf-model-customization.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.date: 05/02/2023
1313
ms.author: pafarley
1414
---
1515

16-
# Train a custom Product Recognition model
16+
# Shelf Product Recognition - Custom Model (preview)
1717

1818
You can train a custom model to recognize specific retail products for use in a Product Recognition scenario. The out-of-box [Analyze](shelf-analyze.md) operation doesn't differentiate between products, but you can build this capability into your app through custom labeling and training.
1919

@@ -47,11 +47,20 @@ When your custom model is trained and ready (you've completed the steps in the [
4747
The API call will look like this:
4848

4949
```bash
50-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/vision/v4.0-preview.1/operations/shelfanalysis-productunderstanding:analyze?PRODUCT_CLASSIFIER_MODEL=myModelName" -d "{
50+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/productrecognition/ms-pretrained-product-detection/models/<your_model_name>/runs/<your_run_name>?api-version=2023-04-01-preview" -d "{
5151
'url':'<your_url_string>'
5252
}"
5353
```
5454

55+
1. Make the following changes in the command where needed:
56+
1. Replace the `<subscriptionKey>` with your Vision resource key.
57+
1. Replace the `<endpoint>` with your Vision resource endpoint. For example: `https://YourResourceName.cognitiveservices.azure.com`.
58+
1. Replace the `<your_model_name>` with your unique custom model name. This will be the name of the customized model you have trained with your own data. For example, `.../models/mymodel1/runs/...`
59+
2. Replace the `<your_run_name>` with your unique test run name for the task queue. It is an async API task queue name for you to be able retrieve the API response later. For example, `.../runs/test1?api-version...`
60+
1. Replace the `<your_url_string>` contents with the blob URL of the image
61+
1. Open a command prompt window.
62+
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
63+
5564
## Next steps
5665

5766
In this guide, you learned how to use a custom Product Recognition model to better meet your business needs. Next, set up planogram matching, which works in conjunction with custom Product Recognition.

articles/ai-services/computer-vision/how-to/shelf-modify-images.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ ms.author: ginle
1212
ms.custom: references_regions, build-2023
1313
---
1414

15-
# Prepare images for Product Recognition
15+
# Shelf Image Composition (preview)
1616

1717
Part of the Product Recognition workflow involves fixing and modifying the input images so the service can perform correctly.
1818

19-
This guide shows you how to use the Stitching API to combine multiple images of the same physical shelf: this gives you a composite image of the entire retail shelf, even if it's only viewed partially by multiple different cameras.
19+
This guide shows you how to use the **Stitching API** to combine multiple images of the same physical shelf: this gives you a composite image of the entire retail shelf, even if it's only viewed partially by multiple different cameras.
2020

21-
This guide also shows you how to use the Rectification API to correct for perspective distortion when you stitch together different images.
21+
This guide also shows you how to use the **Rectification API** to correct for perspective distortion when you stitch together different images.
2222

2323
## Prerequisites
2424
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services/)
@@ -44,7 +44,7 @@ To run the image stitching operation on a set of images, follow these steps:
4444
1. Copy the following `curl` command into a text editor.
4545

4646
```bash
47-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "<endpoint>/computervision/imagecomposition:stitch?api-version=2023-04-01-preview" --output <your_filename> -d "{
47+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/imagecomposition:stitch?api-version=2023-04-01-preview" --output <your_filename> -d "{
4848
'images': [
4949
{
5050
'url':'<your_url_string>'
@@ -83,7 +83,7 @@ To correct the perspective distortion in the composite image, follow these steps
8383
1. Copy the following `curl` command into a text editor.
8484

8585
```bash
86-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "<endpoint>/computervision/imagecomposition:rectify?api-version=2023-04-01-preview" --output <your_filename> -d "{
86+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/imagecomposition:rectify?api-version=2023-04-01-preview" --output <your_filename> -d "{
8787
'url': '<your_url_string>',
8888
'controlPoints': {
8989
'topLeft': {

articles/ai-services/computer-vision/how-to/shelf-planogram.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ ms.date: 05/02/2023
1212
ms.author: pafarley
1313
---
1414

15-
# Check planogram compliance with Image Analysis
15+
# Shelf Planogram Compliance (preview)
1616

17-
A planogram is a diagram that indicates the correct placement of retail products on shelves. The Image Analysis Planogram Matching API lets you compare analysis results from a photo to the store's planogram input. It returns an account of all the positions in the planogram, and whether a product was found in each position.
17+
A planogram is a diagram that indicates the correct placement of retail products on shelves. The Planogram Compliance API lets you compare analysis results from a photo to the store's planogram input. It returns an account of all the positions in the planogram, and whether a product was found in each position.
1818

1919
:::image type="content" source="../media/shelf/planogram.png" alt-text="Photo of a retail shelf with detected products outlined and planogram position rectangles outlined separately.":::
2020

@@ -251,7 +251,7 @@ This is the text you'll use in your API request body.
251251
1. Copy the following `curl` command into a text editor.
252252

253253
```bash
254-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/vision/v4.0-preview.1/operations/shelfanalysis-planogrammatching:analyze" -d "<body>"
254+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://<endpoint>/computervision/planogramcompliance:match?api-version=2023-04-01-preview" -d "<body>"
255255
```
256256
1. Make the following changes in the command where needed:
257257
1. Replace the value of `<subscriptionKey>` with your Vision resource key.

0 commit comments

Comments
 (0)