桌面软件中的Onenote OCR功能 [英] Onenote OCR capabilities in a desktop software

查看:98
本文介绍了桌面软件中的Onenote OCR功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在使用Onenote OCR功能自动识别图像中文本的API?

Is there an API to use Onenote OCR capabilities to recognise text in images automatically?

推荐答案

如果您的OneNote客户端与程序将在同一台计算机上执行,则可以在OneNote中创建一个页面,然后通过COM API插入图像.然后,您可以阅读XML格式的页面,其中将包含OCR文本.

If you have OneNote client on the same machine as your program will execute you can create a page in OneNote and insert the image through the COM API. Then you can read the page in XML format which will include the OCR'ed text.

您要使用

  1. Application.CreateNewPage创建页面
  2. Application.UpdatePageContent插入图像
  3. Application.GetPageContent读取页面内容并在XML中查找OCRDataOCRText元素.
  1. Application.CreateNewPage to create a page
  2. Application.UpdatePageContent to insert the image
  3. Application.GetPageContent to read the page content and look for OCRData and OCRText elements in the XML.

此处记录了OneNote COM API: http://msdn.microsoft.com/zh-cn/library/office/jj680120(v=office.15).aspx

OneNote COM API is documented here: http://msdn.microsoft.com/en-us/library/office/jj680120(v=office.15).aspx

这篇关于桌面软件中的Onenote OCR功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆