Skip to content

Commit cf85aaa

Browse files
authored
Updated instruction and API version
1 parent 2ba95b9 commit cf85aaa

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

dotnet/ComputerVision/readme.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The projects in this code are quickstarts that show how to use Computer Vision R
1515

1616
| File/folder | Description |
1717
|-------------|-------------|
18-
| AnalyzeImage | Project that analyzes image on specified visual parameters |
18+
| AnalyzeImage | Project that analyzes image on specified visual parameters |
1919
| DetectObjects | Project that detects objects in an image |
2020
| BatchReadFile | Project that looks for printed or handwritten text in an image or PDF|
2121
| OCR | Project that performs OCR on the image|
22-
| DescribeImage| Project for captioning an image|
22+
| DescribeImage | Project for captioning an image|
2323
| GetAreaOfInterest| Project to find one important region in an image |
2424
| RecognizeDomainSpecificContent| Project that recognizes celebrities and landmarks in an image |
2525
| RecognizeText| Project that recognizes text in an image |
@@ -34,21 +34,20 @@ The projects in this code are quickstarts that show how to use Computer Vision R
3434
- [Visual Studio 2015](https://visualstudio.microsoft.com/) or higher
3535
- [An Azure Subscription Key](https://azure.microsoft.com/en-us/try/cognitive-services/?api=computer-vision)
3636

37-
## Setup
38-
39-
1. Clone or download this sample repository
40-
2. Open the solution ComputerVision.sln in Visual Studio
41-
3. Download the images from [this repo](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/ComputerVision/Images/) and add the Images folder as content to each project. Alternatively modify the `imageFilePath` in all projects to reflect the path of an appropriate local image.
37+
1. Clone or download this sample repository: <br>
38+
`git clone https://github.com/Azure-Samples/cognitive-services-REST-api-samples.git`
39+
1. Open the solution ComputerVision.sln in Visual Studio
40+
1. Download the images from [this repo](https://github.com/Azure-Samples/cognitive-services-sample-data-files/blob/master/ComputerVision/Images/) and add the Images folder as content to each project. Alternatively modify the `imageFilePath` in all projects to reflect the path of an appropriate local image.
4241

4342
## Running the samples
4443

4544
1. Right-click on the relavant project (detectObjects, extractText, etc) and click on 'Set as StartUp Project'
46-
2. In 'Program.cs', add your Azure Computer Vision subscription key and endpoint to your environment variables with the variable names: COMPUTER_VISION_SUBSCRIPTION_KEY and COMPUTER_VISION_ENDPOINT.
47-
4. (Optional) Change the remote image URL and location of local image
48-
5. (Optional) Comment out visual parameters not needed for AnalyzeImage
49-
6. Hit F5 or build the solution
45+
1. In 'Program.cs', add your Azure Computer Vision subscription key and endpoint to your environment variables with the variable names: COMPUTER_VISION_SUBSCRIPTION_KEY and COMPUTER_VISION_ENDPOINT.
46+
1. (Optional) Change the remote image URL and location of local image
47+
1. (Optional) Comment out visual parameters not needed for AnalyzeImage
48+
1. Hit F5 or build the solution
5049

5150
## Resources
5251
- Computer Vision documentation: <br>
5352
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/home
54-
- Computer Vision API:<br> https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/56f91f2e778daf14a499e1fa
53+
- Computer Vision 2.1 API:<br> https://westus.dev.cognitive.microsoft.com/docs/services/5cd27ec07268f6c679a3e641/operations/56f91f2e778daf14a499f21b

0 commit comments

Comments
 (0)