コード例 #1
0
ファイル: Handwriting.py プロジェクト: jbrowne/UCSBsketch
def recognizeHandwriting(strokes):
    """Take in a list of strokes, send them to MyScript, 
    and return any recognized handwriting"""
    mscRequest = MyScriptHwrRequest(inputUnitList=[MyScriptInputUnit.fromStrokeList(strokes)])
    response = getRequestResponse('hwrInput', mscRequest)
    return response
コード例 #2
0
ファイル: Equations.py プロジェクト: jbrowne/UCSBsketch
def recognizeEquation(strokes):
    """Take in a list of strokes, send them to MyScript, 
    and return any recognized equation"""
    mscRequest = MyScriptEqnRequest.fromInputUnit(MyScriptInputUnit.fromStrokeList(strokes))
    response = getRequestResponse('equationInput', mscRequest)
    return response
コード例 #3
0
ファイル: Handwriting.py プロジェクト: jbrowne/UCSBsketch
 def __init__(self, hwrInputType = ['SINGLE_LINE_TEXT', 'CHAR', 'WORD'][0], **kwargs):
     MyScriptInputUnit.__init__(self, **kwargs)
     self.hwrInputType = hwrInputType