Amharic OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, .NET kodlayıcılarının Amharca dahil olmak üzere 126 dilde, görüntülerden ve PDF belgelerden metin okumasına olanak tanıyan bir C# yazılım bileşenidir.

Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Amharic İçeriği

Bu paket, .NET için 46 OCR dilini içerir:

  • Amharca
  • AmharcaEn iyi
  • AmharcaFast

İndir

Amharca Dil Paketi [አማርኛ]

Kurulum

Yapmamız gereken ilk şey, Amharic OCR paketimizi .NET projenize kurmaktır.

Install-Package IronOcr.Languages.Amharic

Kod Örneği

Bu C# kod örneği, görüntüden veya PDF belgesinden Amharic metin okur.

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