Interactive Ink SDK Web REST Text recognition example

Considering this request body.

The strokes in the strokeGroups of this request correpond to that writing:

The text/plain result of the recognition is the sentence “Hello, how are you?”.

Following is the result if you ask for application/vnd.myscript.jiix output.

For the sake of simplicity, the char and stroke details were disabled in the following jiix output. Follow this link if you want to see all the details that can be computed in text recognition.

{
"type": "Text",
"bounding-box":{
"x": 16.727083,
"y": 29.691666,
"width": 162.86667,
"height": 26.606251
},
"label": "Hello, are you?",
"words":[
{
"label": "Hello",
"candidates":["Hello", "hello", "Hella", "Heller", "Helen"],
"bounding-box":{"x": 16.727083, "y": 29.691666, "width": 52.800003, "height": 14.170834}
},
{
"label": ",",
"candidates":[",", "i", "I", "a", "1"],
"bounding-box":{"x": 71.495834, "y": 41.597916, "width": 2.5291672, "height": 9.1437492}
},
{
"label": ""
},
{
"label": "are",
"candidates":["are", "ae", "Are", "as", "one"],
"bounding-box":{"x": 113.03542, "y": 38.422916, "width": 15.758331, "height": 5.96875}
},
{
"label": ""
},
{
"label": "you",
"candidates":["you", "You", "gon", "yen", "yon"],
"bounding-box":{"x": 133.9375, "y": 38.6875, "width": 26.077072, "height": 17.610416}
},
{
"label": "?",
"candidates":["?", "7", "T", "I", "A"],
"bounding-box":{"x": 167.01041, "y": 33.131248, "width": 12.583344, "height": 13.641666}
}
],
"version": "2",
"id": "MainBlock"
}

We use cookies to ensure that we give you the best experience on our website Read the privacy policy