Esperanto OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR 是一個 C# 軟體元件,允許 .NET 程式設計師從圖片和 PDF 文件中讀取 126 種語言的文字,包括 Esperanto。

它是一個專為 .NET 開發者設計的 Tesseract 高級分支,在速度和準確性方面經常優於其他 Tesseract 引擎。

IronOcr.Languages.Esperanto 的內容

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

  • Esperanto
  • EsperantoBest
  • EsperantoFast

下載

Esperanto 語言包 [Esperanto]

安裝

我們首先需要做的是將我們的 Esperanto OCR 套件安裝到您的 .NET 項目中。

Install-Package IronOCR.Languages.Esperanto

代碼示例

這個 C# 代碼範例從圖片或 PDF 文件中讀取 Esperanto 文本。

// 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