Amharic OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Outras versões deste documento:

O IronOCR é um componente de software em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o amárico.

Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.

Conteúdo de IronOcr.Idiomas.Amárico

Este pacote contém 46 linguagens de OCR for .NET:

  • Amárico
  • AmáricoMelhor
  • AmáricoFast

Baixar

Pacote de idioma amárico [አማርኛ]

Instalação

A primeira coisa que precisamos fazer é instalar nosso pacote de OCR em amárico no seu projeto .NET.

Install-Package IronOcr.Languages.Amharic

Exemplo de código

Este exemplo de código C# lê texto em amárico de uma imagem ou documento 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