How to read InkML file to image or text using C#

时间:2019-03-28 13:41:37

标签: xml microsoft-graph onenote onenote-api inkml

I am trying to read handwritten text in onenote from the APIs provided by microsoft. I am able to get the handwritten text from onenote as inkML. Unfortunately I am unable to read from the inkML to image/text.Please suggest some solutions or links that can help me.

I need library or package that will help me with C#

1 个答案:

答案 0 :(得分:0)

OneNote API支持在测试版中获取InkML:https://developer.microsoft.com/en-us/office/blogs/onenote-ink-beta-apis/

您可以使用InkMLJ将其呈现到画布上:https://github.com/Microsoft/InkMLjs

一旦将其保存在画布中,就可以导出为图像 How To Save Canvas As An Image With canvas.toDataURL()?

关于“提取文本”部分……OneNote API不支持从OneNote页面获取墨水分析文本,因此您必须自己通过InkML中的坐标运行分析。