Esperanto OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
本文件的其他版本:

IronOCR 是一個 C# 軟體元件,讓 .NET 程式設計師能夠從 126 種語言(包括世界語)的圖片和 PDF 文件中讀取文字。

這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度方面,其表現均經常優於其他 Tesseract 引擎。

IronOcr.Languages.Esperanto 的內容

此套件包含 52 種適用於 .NET 的 OCR 語言:

  • 世界語
  • 世界語Best
  • 世界語Fast

下載

世界語語言套件 [世界語]

安裝

我們首先必須將 Esperanto OCR 套件安裝至您的 .NET 專案中。

Install-Package IronOcr.Languages.Esperanto

程式碼範例

此 C# 程式碼範例用於從圖片或 PDF 文件中讀取世界語文字。

// This example demonstrates how to perform OCR on an image file using the IronOCR library with Esperanto language support.
using IronOcr;

var Ocr = new IronTesseract
{
    Language = OcrLanguage.Esperanto // Specify the OCR language as Esperanto
};

using (var Input = new OcrInput(@"images\Esperanto.png")) // Load an image from the file path
{
    var Result = Ocr.Read(Input); // Perform OCR to read the text from the image
    var AllText = Result.Text; // Extract the recognized text from the result
    // You can now use AllText for further processing
}
// This example demonstrates how to perform OCR on an image file using the IronOCR library with Esperanto language support.
using IronOcr;

var Ocr = new IronTesseract
{
    Language = OcrLanguage.Esperanto // Specify the OCR language as Esperanto
};

using (var Input = new OcrInput(@"images\Esperanto.png")) // Load an image from the file path
{
    var Result = Ocr.Read(Input); // Perform OCR to read the text from the image
    var AllText = Result.Text; // Extract the recognized text from the result
    // You can now use AllText for further processing
}
' This example demonstrates how to perform OCR on an image file using the IronOCR library with Esperanto language support.
Imports IronOcr

Private Ocr = New IronTesseract With {.Language = OcrLanguage.Esperanto}

Using Input = New OcrInput("images\Esperanto.png") ' Load an image from the file path
	Dim Result = Ocr.Read(Input) ' Perform OCR to read the text from the image
	Dim AllText = Result.Text ' Extract the recognized text from the result
	' You can now use AllText for further processing
End Using
$vbLabelText   $csharpLabel