Armenian OCR in C# and .NET

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

IronOCR ist eine C#-Softwarekomponente, die es .NET-Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Armenisch, zu lesen.

Es ist eine fortgeschrittene Abzweigung von Tesseract, die exklusiv für .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch in Genauigkeit übertrifft.

Inhalte von IronOcr.Languages.Armenian

Dieses Paket enthält mehrere OCR-Sprachen, die spezifisch für Armenisch in .NET sind:

  • ArmenianAlphabet
  • ArmenianAlphabetBest
  • ArmenianAlphabetFast
  • Armenian
  • ArmenianBest
  • ArmenianFast

Download

Armenisches Sprachpaket style='white-space:default'>[Հայերեն]

Installation

Das Erste, was wir tun müssen, ist unser Armenisch OCR-Paket in Ihr .NET-Projekt zu installieren.

Install-Package IronOCR.Languages.Armenian

Beispielcode

Dieses C#-Codebeispiel liest armenischen Text aus einem Bild- oder PDF-Dokument.

// 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