File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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.
2525LANGUAGE_RECOGNITION_LOCALE = "en-US"
@@ -86,7 +86,7 @@ def send_request(self, ink_stroke_list):
8686class 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 ):
You can’t perform that action at this time.
0 commit comments