Skip to content

Commit 76a0b4a

Browse files
authored
Merge pull request #42 from wiazur/extract-text
Initial commit, new sample
2 parents 748767b + 84ed90a commit 76a0b4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

samples/vision/computer_vision_extract_text.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
SDK: https://docs.microsoft.com/en-us/python/api/overview/azure/cognitiveservices/computervision?view=azure-python
1111
'''
1212

13-
# Replace with your region and key from the Azure portal
14-
endpoint = 'https://westus.api.cognitive.microsoft.com/'
15-
key = 'COMPUTER_VISION_KEY'
13+
# Replace with your endpoint and key from the Azure portal
14+
endpoint = '<ADD ENDPOINT HERE>'
15+
key = '<ADD COMPUTER VISION SUBSCRIPTION KEY HERE>'
1616

1717
# Alternatively, uncomment and get endpoint/key from environment variables
1818
'''
1919
import os
20-
endpoint = os.environ['ACCOUNT_ENDPOINT']
21-
key = os.environ['ACCOUNT_KEY']
20+
endpoint = os.environ['COMPUTER_VISION_ENDPOINT']
21+
key = os.environ['COMPUTER_VISION_SUBSCRIPTION_KEY']
2222
'''
2323

2424
# Set credentials

0 commit comments

Comments
 (0)