Ethiopic Alphabet OCR in C# and .NET

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

Mais 126 idiomas

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 alfabeto etíope.

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.Etíope

Este pacote contém 73 linguagens OCR for .NET:

  • Alfabeto Etíope
  • Alfabeto EtíopeBest
  • Alfabeto Etíope Rápido

Baixar

Pacote de idiomas do alfabeto etíope [Ge'ez]

Instalação

A primeira coisa que precisamos fazer é instalar nosso pacote OCR do alfabeto etíope em seu projeto .NET .

Install-Package IronOcr.Languages.Ethiopic

Exemplo de código

Este exemplo de código C# lê o texto do alfabeto etíope a partir de uma imagem ou documento PDF.

// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;

public class EthiopicOcrExample
{
    public void ReadEthiopicText()
    {
        // Create an instance of IronTesseract
        var Ocr = new IronTesseract();

        // Set the language property to Ethiopic
        Ocr.Language = OcrLanguage.Ethiopic;

        // Define the input image containing Ethiopic text
        using (var Input = new OcrInput(@"images\Ethiopic.png"))
        {
            // Perform OCR to read text from the image
            var Result = Ocr.Read(Input);

            // Store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;

public class EthiopicOcrExample
{
    public void ReadEthiopicText()
    {
        // Create an instance of IronTesseract
        var Ocr = new IronTesseract();

        // Set the language property to Ethiopic
        Ocr.Language = OcrLanguage.Ethiopic;

        // Define the input image containing Ethiopic text
        using (var Input = new OcrInput(@"images\Ethiopic.png"))
        {
            // Perform OCR to read text from the image
            var Result = Ocr.Read(Input);

            // Store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' First, ensure the IronOcr.Languages.Ethiopic package is installed
Imports IronOcr

Public Class EthiopicOcrExample
	Public Sub ReadEthiopicText()
		' Create an instance of IronTesseract
		Dim Ocr = New IronTesseract()

		' Set the language property to Ethiopic
		Ocr.Language = OcrLanguage.Ethiopic

		' Define the input image containing Ethiopic text
		Using Input = New OcrInput("images\Ethiopic.png")
			' Perform OCR to read text from the image
			Dim Result = Ocr.Read(Input)

			' Store the recognized text
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • Este exemplo cria uma instância de IronTesseract para realizar operações de OCR.
  • Ele define o idioma como Etiópico usando OcrLanguage.Ethiopic.
  • O OcrInput é usado para definir a imagem de origem.
  • O método Read realiza o OCR e retorna um resultado contendo o texto reconhecido.
  • O texto reconhecido é armazenado em AllText e impresso no console.