MyScript iink SDK Web REST Shape recognition example

Considering this request body.

rest-shape-example.json
{
  "scaleX": 0.265,
  "scaleY": 0.265,
  "contentType": "Shape",
  "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:

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

{
 "version": "3",
 "id": "MainBlock",
 "type": "Shape",
 "bounding-box": {
  "x": 90.4249954,
  "y": 11.1899996,
  "width": 188.825012,
  "height": 74.8749924
 },
 "elements": [ {
   "bounding-box": {
    "x": 90.4249954,
    "y": 11.1899996,
    "width": 188.825012,
    "height": 74.8749924
   },
   "shape": {
    "kind": "ellipse",
    "primitives": [ {
      "type": "arc",
      "cx": 182.78064,
      "cy": 49.0672455,
      "rx": 90.2107544,
      "ry": 34.850235,
      "phi": -1.48002755e-7,
      "startAngle": -0.942544341,
      "sweepAngle": 6.28318548
     } ]
   },
   "candidates": [ {
     "kind": "ellipse",
     "primitives": [ {
       "type": "arc",
       "cx": 182.78064,
       "cy": 49.0672455,
       "rx": 90.2107544,
       "ry": 34.850235,
       "phi": -1.48002755e-7,
       "startAngle": -0.942544341,
       "sweepAngle": 6.28318548
      } ]
    } ],
   "items": [ {
     "timestamp": "2024-11-06 10:52:00.380000",
     "X": [ 239.559982, 238.234985, 235.054993, 228.164993, 217.564987, 204.049988, 190.00499, 173.839996,
      156.61499, 138.859985, 123.224991, 105.734993, 98.0499954, 92.2199936, 91.4249954, 94.3399963,
      98.8449936, 105.734993, 113.949997, 125.079994, 138.859985, 153.699997, 170.12999, 196.62999,
      216.23999, 236.11499, 253.339981, 266.85498, 275.599976, 278.25, 276.924988, 271.625,
      262.084991, 250.689987, 231.079987, 215.179993, 193.979996, 169.599991, 147.339996, 138.064987 ],
     "Y": [ 25.4399986, 24.3799992, 22.5249996, 20.1399994, 16.9599991, 14.3099995, 12.9849997, 12.454999,
      12.1899996, 12.7199993, 15.1049995, 21.9949989, 27.8249989, 35.2449989, 40.2799988, 44.5199966,
      49.2899971, 55.9149971, 63.5999985, 71.284996, 77.909996, 82.9449921, 85.0649948, 84.2699966,
      81.8849945, 79.4999924, 76.3199921, 72.0799942, 67.0449982, 61.7449951, 55.3849983, 47.1699982,
      38.954998, 31.5349979, 24.1149979, 20.9349995, 18.0199986, 16.4299984, 15.3699989, 15.3699989 ],
     "F": [ 0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0,
      0, 0, 0, 0, 0, 0, 0, 0 ],
     "T": [ 0, 40, 57, 73, 90, 106, 123, 140,
      157, 174, 190, 206, 223, 240, 257, 274,
      290, 307, 324, 340, 357, 373, 390, 407,
      423, 440, 457, 474, 491, 508, 524, 540,
      557, 573, 591, 607, 624, 640, 657, 666 ],
     "type": "stroke",
     "id": "0000000001004f00ff00"
    } ]
  } ]
}