OCR arménien en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

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'arménien.

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.Languages.Arménien

Ce package contient plusieurs langages OCR spécifiques à l'arménien pour .NET :

  • Alphabet arménien
  • Meilleur alphabet arménien
  • Alphabet arménien rapide
  • Arménien
  • ArménienMeilleur
  • ArménienFast

Télécharger

Pack de langue arménienne [Arménien]

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

Installation

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

Install-Package IronOCR.Languages.Armenian

Exemple de code

Cet exemple de code C# lit du texte arménien à partir d'une image ou d'un document PDF.

// Ensure the necessary NuGet package is installed.
// PM> Install-Package IronOCR.Languages.Armenian

using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the Tesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language of the OCR to Armenian
        Ocr.Language = OcrLanguage.Armenian;

        // Create an OCR input object with the path to the image
        using (var Input = new OcrInput(@"images\Armenian.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract all the text from the OCR result
            var AllText = Result.Text;

            // Output the result to the console or any other desired operation
            Console.WriteLine(AllText);
        }
    }
}
// Ensure the necessary NuGet package is installed.
// PM> Install-Package IronOCR.Languages.Armenian

using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the Tesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language of the OCR to Armenian
        Ocr.Language = OcrLanguage.Armenian;

        // Create an OCR input object with the path to the image
        using (var Input = new OcrInput(@"images\Armenian.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract all the text from the OCR result
            var AllText = Result.Text;

            // Output the result to the console or any other desired operation
            Console.WriteLine(AllText);
        }
    }
}
' Ensure the necessary NuGet package is installed.
' PM> Install-Package IronOCR.Languages.Armenian

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Initialize the Tesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the language of the OCR to Armenian
		Ocr.Language = OcrLanguage.Armenian

		' Create an OCR input object with the path to the image
		Using Input = New OcrInput("images\Armenian.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract all the text from the OCR result
			Dim AllText = Result.Text

			' Output the result to the console or any other desired operation
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel