How to Extract Read Results

This article was translated from English: Does it need improvement?
Translated
View the article in English

读取或 OCR 结果包含大量与检测到的段落、行、单词和单个字符相关的信息。 对于每个要素,翻译结果都提供了一套全面的详细信息。

对于每个元素,它都提供了文本内容、精确的 X 和 Y 坐标、尺寸(宽和高)、文本方向(从左到右或从上到下)以及在 CropRectangle 对象中的位置。

as-heading:2(快速入门:从第一个检测到的单词检索单词文本)</em

只需几秒钟即可开始使用:使用 IronTesseract 的 "读取 "方法对图像进行 OCR 识别,然后使用 "单词 "集合提取第一个单词的文本。 非常适合快速设置和简单提取任务。

Nuget IconGet started making PDFs with NuGet now:

  1. Install IronOCR with NuGet Package Manager

    PM > Install-Package IronOcr

  2. Copy and run this code snippet.

    string wordText = new IronTesseract().Read("file.jpg").Words[0].Text;
  3. Deploy to test on your live environment

    Start using IronOCR in your project today with a free trial
    arrow pointer

OcrResult 中的数据

OcrResult 中的数据