OCR del alfabeto etíope en C# y .NET

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

126 idiomas más

IronOCR es un componente de software de C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el Alfabeto Etíope.

Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Ethiopic

Este paquete contiene 73 idiomas OCR para .NET:

  • AlfabetoEtíope
  • AlfabetoEtíopeMejor
  • AlfabetoEtíopeRápido

Descargar

Paquete de Idioma del Alfabeto Etíope [Ge'ez]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR del Alfabeto Etíope en tu proyecto .NET.

Install-Package IronOCR.Languages.Ethiopic

Ejemplo de código

Este ejemplo de código en C# lee texto del Alfabeto Etíope desde una imagen o 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 ejemplo crea una instancia de IronTesseract para realizar operaciones de OCR.
  • Establece el idioma a Etíope usando OcrLanguage.Ethiopic.
  • Se utiliza OcrInput para definir la imagen de origen.
  • El método Read realiza el OCR y devuelve un resultado que contiene el texto reconocido.
  • El texto reconocido se almacena en AllText y se imprime en la consola.