IInk SDK Web REST Raw Content recognition example
Considering this request body.
rest-raw-content-new-example.json
{
"contentType": "Raw Content",
"configuration": {
"raw-content": {
"classification": {
"types": [
"text",
"drawing"
]
},
"recognition": {
"types": [
"text"
]
}
},
"export": {
"jiix": {
"strokes": false
}
}
},
"strokeGroups": [
{
"strokes": [
{
"id": "pendingStroke-5",
"pointerType": "mouse",
"pointerId": 1,
"x": [
291,
284,
280,
277,
274,
271,
268,
269,
275,
285,
297,
309,
327,
332,
332,
325,
312,
308
],
"y": [
// Open the file to see the full content (865 lines)
This request corresponds to the extraction and recognition of the text (as we can see because configuration.raw-content.recognition.types is "text") 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",
"bounding-box": {
"x": 62.2354164,
"y": 47.4187469,
"width": 100.160416,
"height": 27.4000015
},
"elements": [ {
"type": "Raw Content",
"kind": "non-text",
"id": "raw-content/14",
"bounding-box": {
"x": 62.2354164,
"y": 52.1812477,
"width": 30.3104134,
"height": 22.6375008
}
}, {
"id": "raw-content/17",
"type": "Text",
"bounding-box": {
"x": 106.42083,
"y": 47.4187469,
"width": 55.9749985,
"height": 18.4041672
},
"label": "hello",
"words": [ {
"label": "hello",
"candidates": [ "hello", "heleo", "helle", "kello", "hells" ],
"bounding-box": {
"x": 106.42083,
"y": 47.4187469,
"width": 55.9749985,
"height": 18.4041672
}
} ]
} ],
"id": "MainBlock",
"version": "3"
}