Skip to content

Commit 6b0b482

Browse files
authored
Updated authentication instruction
1 parent 0007590 commit 6b0b482

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dotnet/ComputerVision/readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ The projects in this code are quickstarts that show how to use Computer Vision R
4343
## Running the samples
4444

4545
1. Right-click on the relavant project (detectObjects, extractText, etc) and click on 'Set as StartUp Project'
46-
2. In 'Program.cs' , update the line ```public const string subscriptionKey = "<your training key here>";``` with your subscription key. For example, if your subscription key is `0123456789abcdef0123456789ABCDEF`, then the line should look like ``` public const string subscriptionKey = "0123456789abcdef0123456789ABCDEF"; ```
47-
3. Update the endpoint with the region you generated your endpoint for. For example, if you are using the westcentralus endpoint, you should change the line ``` public const string endpoint = "https://westus.api.cognitive.microsoft.com"; ``` to ``` public const string endpoint = "https://westcentralus.api.cognitive.microsoft.com"; ```
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.
4847
4. (Optional) Change the remote image URL and location of local image
4948
5. (Optional) Comment out visual parameters not needed for AnalyzeImage
5049
6. Hit F5 or build the solution

0 commit comments

Comments
 (0)