OCR de l'alphabet éthiopien en C# et .NET

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

126 autres langues

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont l'alphabet éthiopien.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu de IronOcr.Langues.Éthiopien

Ce package contient 73 langues OCR pour .NET :

  • Alphabet éthiopien
  • Alphabet éthiopienBest
  • Alphabet éthiopienFast

Télécharger

Pack linguistique de l'alphabet éthiopien [Ge'ez]

  • Télécharger au format Zip
  • Installer avec NuGet

Installation

La première chose à faire est d'installer notre package OCR d'alphabet éthiopien sur votre projet .NET.

Install-Package IronOCR.Languages.Ethiopic

Exemple de code

Cet exemple de code C# lit du texte en alphabet éthiopien à partir d'une image ou d'un document 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
  • Cet exemple crée une instance d' IronTesseract pour effectuer des opérations OCR.
  • Il définit la langue sur éthiopien en utilisant OcrLanguage.Ethiopic .
  • L' OcrInput est utilisé pour définir l'image source.
  • La m\u00e9thode Read<\/code> effectue l'OCR et retourne un r\u00e9sultat contenant le texte reconnu.
  • Le texte reconnu est stocké dans AllText et affiché sur la console.