Skip to content

Commit 0a2be83

Browse files
author
Aaron Hill
committed
minor rename
1 parent 9c8cc12 commit 0a2be83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/vision/inkrecognizer_sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
# You can also use an Azure credential instance
2020
# <InkRecognizerClientConfig>
21-
URL = "https://api.cognitive.microsoft.com/inkrecognizer"
22-
CREDENTIAL = os.environ['INK_RECOGNIZER_SUBSCRIPTION_KEY'].strip()
21+
INK_RECOGNIZER_URL = "https://api.cognitive.microsoft.com/inkrecognizer"
22+
KEY = os.environ['INK_RECOGNIZER_SUBSCRIPTION_KEY'].strip()
2323

2424
# The default locale is "en-US". Setting a different language for a stroke will overload this value.
2525
LANGUAGE_RECOGNITION_LOCALE = "en-US"
@@ -86,7 +86,7 @@ def send_request(self, ink_stroke_list):
8686
class RecognitionManager:
8787
def __init__(self, pixel_per_mm):
8888
self._pixel_per_mm = pixel_per_mm
89-
self._client = InkClient(URL, CREDENTIAL)
89+
self._client = InkClient(INK_RECOGNIZER_URL, KEY)
9090
self.reset_ink()
9191

9292
def _reset_stroke(self):

0 commit comments

Comments
 (0)