1717# </imports>
1818
1919# You can also use an Azure credential instance
20- # <InkRecognizerClientConfig >
20+ # <inkRecognizerClientConfig >
2121INK_RECOGNIZER_URL = "https://api.cognitive.microsoft.com/inkrecognizer"
2222KEY = os .environ ['INK_RECOGNITION_SUBSCRIPTION_KEY' ].strip ()
2323
2828# For example, ApplicationKind.WRITING or ApplicationKind.DRAWING
2929
3030APPLICATION_KIND = ApplicationKind .MIXED
31- # </InkRecognizerClientConfig >
31+ # </inkRecognizerClientConfig >
3232
3333# Shows simple implementation of InkPoint and InkStroke
34- # <StrokeImplementations >
34+ # <strokeImplementations >
3535InkPoint = namedtuple ("InkPoint" , "x y" )
3636
3737class InkStroke ():
@@ -44,7 +44,7 @@ def __init__(self,
4444 self .points = ink_points
4545 self .kind = stroke_kind
4646 self .language = stroke_language
47- # </StrokeImplementations >
47+ # </strokeImplementations >
4848
4949# Wrapper for InkRecognizerClient that shows how to
5050# (1) Convert stroke unit from pixel to mm
@@ -126,7 +126,7 @@ def search(self, word):
126126# </recognitionManager>
127127
128128
129- # <SampleUI >
129+ # <sampleUI >
130130CANVAS_WIDTH = 800
131131CANVAS_HEIGHT = 500
132132STROKE_COLOR = "#476042" # python green
@@ -198,7 +198,7 @@ def _search(self):
198198
199199 def run (self ):
200200 mainloop ()
201- # </SampleUI >
201+ # </sampleUI >
202202
203203# <entrypoint>
204204if __name__ == "__main__" :
0 commit comments