Amharic OCR in C# and .NET

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

IronOCR to komponent oprogramowania C#, który umożliwia programistom .NET odczyt tekstu z obrazów i dokumentów PDF w 126 językach, w tym w języku amharskim.

Jest to zaawansowany fork Tesseract, stworzony wyłącznie dla programistów .NET i regularnie przewyższa inne silniki Tesseract zarówno pod względem szybkości, jak i dokładności.

Zawartość IronOcr.Languages.Amharic

Ten pakiet zawiera 46 języków OCR dla .NET:

  • Amharic
  • AmharicBest
  • AmharicFast

Pobieranie

Amharic Language Pack [አማርኛ]

Instalacja

Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie pakietu OCR Amharic w projekcie .NET.

Install-Package IronOcr.Languages.Amharic

Przyklad kodu

Ten przykład kodu C# odczytuje tekst w języku amharskim z obrazu lub dokumentu PDF.

// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic

// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Get the extracted text from the OCR result
    // The variable 'AllText' contains the text in Amharic read from the image
}
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOcr.Languages.Amharic
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic

// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Get the extracted text from the OCR result
    // The variable 'AllText' contains the text in Amharic read from the image
}
Imports IronOcr

' Install the necessary Amharic language package for IronOCR
' PM> Install-Package IronOcr.Languages.Amharic

Dim Ocr As New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic ' Set the OCR language to Amharic

' Read text from an image
Using Input As New OcrInput("images\Amharic.png") ' Specify the path to the image file
    Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
    Dim AllText = Result.Text ' Get the extracted text from the OCR result
    ' The variable 'AllText' contains the text in Amharic read from the image
End Using
$vbLabelText   $csharpLabel