IInk SDK Web REST Raw Content recognition example

Considering this request body.

This request corresponds to the extraction and recognition of the text (as we can see because configuration.raw-content.recognition.text is true) of the following ink, where the word “hello” is preceded by a drawing of a flower.

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

You will notice that the word “hello” was extracted in a text part and the strokes corresponding to the flower are grouped in a non-text part.

{
 "type": "Raw Content",
 "elements": [ {
   "type": "Raw Content",
   "kind": "non-text",
   "id": 7,
   "bounding-box": {
    "x": 62.235416,
    "y": 52.181248,
    "width": 30.310413,
    "height": 22.637501
   }
  }, {
   "type": "Text",
   "id": 10,
   "bounding-box": {
    "x": 106.42083,
    "y": 47.418747,
    "width": 55.974998,
    "height": 18.404167
   },
   "label": "hello",
   "words": [ {
     "label": "hello",
     "candidates": [ "hello", "Hello", "bello", "halo", "heeler" ],
     "bounding-box": {
      "x": 106.42083,
      "y": 47.418747,
      "width": 55.974998,
      "height": 18.404167
     }
    } ]
  } ],
 "id": "MainBlock"
}

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