Thank you for contacting us. To answer your questions: 你能保存当前页面并创建一个新的空白页吗? >>Currently, you can save a package as follows, contentPackage.save();, and later re-open it (engine.openPackage(myfile);) Please note before re-opening a package, you should ensure it is properly disposed: contentPackage.close(); contentPackage = null;
如何在图表模式下导出识别结果,例如矩形,多边形。 >>Currently, you can export as JIIX: String JIIXExport = editor.export_(null, MimeType.JIIX); Then, for each element, it will be splitted in "types", which can allow re-build an object. Here is an example: "elements": [ { "type": "Node", "kind": "rectangle", "id": 37, "bounding-box": { "x": 37.153282, "y": 32.723289, "width": 44.070465, "height": 44.070465 }, "items": [ { "type": "line", "timestamp": "2000-08-03 03:23:00.117000", "x1": 38.153282, "y1": 33.723289, "x2": 80.223747, "y2": 33.723289, "id": "0000050001000300ff00" }, { "type": "line", "timestamp": "2000-08-03 03:23:00.117000", "x1": 80.223747, "y1": 33.723289, "x2": 80.223747, "y2": 75.793755, "id": "0000060001000300ff00" }, { "type": "line", "timestamp": "2000-08-03 03:23:00.117000", "x1": 80.223747, "y1": 75.793755, "x2": 38.153282, "y2": 75.793755, "id": "0000070001000300ff00" }, { "type": "line", "timestamp": "2000-08-03 03:23:00.117000", "x1": 38.153282, "y1": 75.793755, "x2": 38.153282, "y2": 33.723289, "id": "0000080001000300ff00" } ], "x": 38.153282, "y": 33.723289, "width": 42.070465, "height": 42.070465 } ],
Best regards,
Olivier
g
gang chen
said
almost 2 years ago
How do I export the position of a print relative to a handwriting in text mode?
O
Olivier @MyScript
said
almost 2 years ago
Answer
Dear Gang Chen,
currently, I am not sure to understand.
Do you mean that when exporting in "text", you would like to get the position of a word?
In that case, export in JIIX: String JIIXExport = editor.export_(null, MimeType.JIIX);
gang chen
你能保存当前页面并创建一个新的空白页吗?
如何在图表模式下导出识别结果,例如矩形,多边形。
Dear Gang Chen,
currently, I am not sure to understand.
Do you mean that when exporting in "text", you would like to get the position of a word?
In that case, export in JIIX: String JIIXExport = editor.export_(null, MimeType.JIIX);
For each word, you will have something such as:
"label": "hello",
"words": [ {
"label": "hello",
"candidates": [ "hello", "hella", "Hello", "bellon", "bello" ],
"first-char": 0,
"last-char": 4,
"bounding-box": {
"x": 3.8356686,
"y": 15.042492,
"width": 18.823877,
"height": 8.3437576
},
The bounding-box coordinates are in milimeters. In order to get the correspondance in between the pixels and the milimeters, you shall get the transform: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Renderer.html#getViewTransform--
If this doesn't help, feel free to provide with more explanation.
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
Dear Gang Chen,
Thank you for contacting us.
To answer your questions:
你能保存当前页面并创建一个新的空白页吗?
>>Currently, you can save a package as follows, contentPackage.save();, and later re-open it (engine.openPackage(myfile);)
Please note before re-opening a package, you should ensure it is properly disposed:
contentPackage.close();
contentPackage = null;
如何在图表模式下导出识别结果,例如矩形,多边形。
>>Currently, you can export as JIIX: String JIIXExport = editor.export_(null, MimeType.JIIX);
Then, for each element, it will be splitted in "types", which can allow re-build an object. Here is an example:
"elements": [ {
"type": "Node",
"kind": "rectangle",
"id": 37,
"bounding-box": {
"x": 37.153282,
"y": 32.723289,
"width": 44.070465,
"height": 44.070465
},
"items": [ {
"type": "line",
"timestamp": "2000-08-03 03:23:00.117000",
"x1": 38.153282,
"y1": 33.723289,
"x2": 80.223747,
"y2": 33.723289,
"id": "0000050001000300ff00"
}, {
"type": "line",
"timestamp": "2000-08-03 03:23:00.117000",
"x1": 80.223747,
"y1": 33.723289,
"x2": 80.223747,
"y2": 75.793755,
"id": "0000060001000300ff00"
}, {
"type": "line",
"timestamp": "2000-08-03 03:23:00.117000",
"x1": 80.223747,
"y1": 75.793755,
"x2": 38.153282,
"y2": 75.793755,
"id": "0000070001000300ff00"
}, {
"type": "line",
"timestamp": "2000-08-03 03:23:00.117000",
"x1": 38.153282,
"y1": 75.793755,
"x2": 38.153282,
"y2": 33.723289,
"id": "0000080001000300ff00"
} ],
"x": 38.153282,
"y": 33.723289,
"width": 42.070465,
"height": 42.070465
} ],
Best regards,
Olivier
gang chen
How do I export the position of a print relative to a handwriting in text mode?
Olivier @MyScript
Dear Gang Chen,
currently, I am not sure to understand.
Do you mean that when exporting in "text", you would like to get the position of a word?
In that case, export in JIIX: String JIIXExport = editor.export_(null, MimeType.JIIX);
For each word, you will have something such as:
"label": "hello",
"words": [ {
"label": "hello",
"candidates": [ "hello", "hella", "Hello", "bellon", "bello" ],
"first-char": 0,
"last-char": 4,
"bounding-box": {
"x": 3.8356686,
"y": 15.042492,
"width": 18.823877,
"height": 8.3437576
},
The bounding-box coordinates are in milimeters. In order to get the correspondance in between the pixels and the milimeters, you shall get the transform: https://developer.myscript.com/refguides/interactive-ink/android/1.3/com/myscript/iink/Renderer.html#getViewTransform--
If this doesn't help, feel free to provide with more explanation.
Best regards,
Olivier