Skip to content

Commit 59f82cc

Browse files
authored
Minor
1 parent b5060cd commit 59f82cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/Vision/ComputerVision2.1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
API: https://westus.dev.cognitive.microsoft.com/docs/services/5adf991815e1060e6355ad44/operations/587f2c6a154055056008f200
1313
'''
1414

15-
# Add your Bing Search V7 subscription key and endpoint to your environment variables.
15+
# Add your Computer Vision subscription key and endpoint to your environment variables.
1616
subscription_key = os.environ['COMPUTER_VISION_SUBSCRIPTION_KEY']
1717
endpoint = os.environ['COMPUTER_VISION_ENDPOINT'] + "/vision/v2.1/analyze"
1818

@@ -22,16 +22,16 @@
2222
'Ocp-Apim-Subscription-Key': subscription_key,
2323
}
2424

25-
# Request parameters. All of them are optional
25+
# Request parameters. All of them are optional.
2626
params = {
2727
'visualFeatures': 'Categories,Description,Color',
2828
'language': 'en',
2929
}
3030

31-
# Replace the three dots below with the URL of a JPEG image of a celebrity.
31+
# Any image with objects will work.
3232
body = {'url': 'https://raw.githubusercontent.com/Azure-Samples/cognitive-services-sample-data-files/master/ComputerVision/Images/objects.jpg'}
3333

34-
# Call the API
34+
# Call the API.
3535
try:
3636
response = requests.post(endpoint, headers=headers, params=params, json=body)
3737
response.raise_for_status()

0 commit comments

Comments
 (0)