Skip to content

Commit 18b88db

Browse files
authored
Update python-disk.md
1 parent d87fc48 commit 18b88db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/cognitive-services/Computer-vision/QuickStarts/python-disk.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you don't have an Azure subscription, create a [free account](https://azure.m
3737
To create and run the sample, do the following steps:
3838

3939
1. Copy the following code into a text editor.
40-
1. Optionally, replace the value of `image_path` with the path and file name of a different image that you want to analyze.
40+
1. Replace the value of `image_path` with the path and file name of a different image that you want to analyze.
4141
1. Save the code as a file with an `.py` extension. For example, `analyze-local-image.py`.
4242
1. Open a command prompt window.
4343
1. At the prompt, use the `python` command to run the sample. For example, `python analyze-local-image.py`.
@@ -62,9 +62,11 @@ else:
6262
if 'COMPUTER_VISION_ENDPOINT' in os.environ:
6363
endpoint = os.environ['COMPUTER_VISION_ENDPOINT']
6464

65-
analyze_url = endpoint + "vision/v2.1/analyze"
65+
analyze_url = endpoint + "vision/v3.0/analyze"
6666

6767
# Set image_path to the local path of an image that you want to analyze.
68+
# Sample images are here, if needed:
69+
# https://github.com/Azure-Samples/cognitive-services-sample-data-files/tree/master/ComputerVision/Images
6870
image_path = "C:/Documents/ImageToAnalyze.jpg"
6971

7072
# Read the image into a byte array

0 commit comments

Comments
 (0)