MyScript iink SDK Web REST Gesture recognition example
Considering this request body.
rest-gesture-example.json
{
"scaleX": 0.265,
"scaleY": 0.265,
"contentType": "Gesture",
"strokes": [
{
"t": [
1730890320380,
1730890320420,
1730890320437,
1730890320453,
1730890320470,
1730890320486,
1730890320503,
1730890320520,
1730890320537,
1730890320554,
1730890320570,
1730890320586,
1730890320603,
1730890320620,
1730890320637,
1730890320654,
1730890320670,
1730890320687,
1730890320704,
1730890320720,
1730890320737,
1730890320753,
1730890320770,
1730890320787,
1730890320803,
1730890320820,
1730890320837,
1730890320854,
1730890320871,
1730890320888,
1730890320904,
1730890320920,
1730890320937,
1730890320953,
1730890320971,
1730890320987,
1730890321004,
1730890321020,
1730890321037,
1730890321046
],
"x": [
904,
899,
887,
861,
821,
770,
717,
656,
591,
524,
465,
399,
370,
348,
345,
356,
373,
399,
430,
472,
524,
580,
642,
742,
816,
891,
956,
1007,
1040,
1050,
1045,
1025,
989,
946,
872,
812,
732,
640,
556,
521
],
"y": [
96,
92,
85,
76,
64,
54,
49,
47,
46,
48,
57,
83,
105,
133,
152,
168,
186,
211,
240,
269,
294,
313,
321,
318,
309,
300,
288,
272,
253,
233,
209,
178,
147,
119,
91,
79,
68,
62,
58,
58
]
}
]
}
The strokes of this request correspond to that writing:

The recognition result if you ask for application/vnd.myscript.jiix output, is the following one:
{
"version": "3",
"id": "MainBlock",
"type": "Gesture",
"gestures": [ {
"type": "surround",
"strokes": [ {
"id": "ps0",
"bounding-box": {
"x": 91.4249954,
"y": 12.1899996,
"width": 186.825012,
"height": 72.8749924
}
} ],
"bounding-box": {
"x": 91.4249954,
"y": 12.1899996,
"width": 186.825012,
"height": 72.8749924
}
} ]
}