Armenian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, .NET kodlayıcılarının Ermenice dahil olmak üzere 126 dilde, görüntülerden ve PDF belgelerden metin okumasına olanak tanıyan bir C# yazılım bileşenidir.

Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Armenian İçeriği

Bu paket, .NET için Ermenice'ye özgü birkaç OCR dili içerir:

  • Ermeni Alfabesi
  • ErmeniceAlfabeEnİyi
  • Ermeni AlfabesiFast
  • Ermenice
  • ErmeniceEn iyi
  • ErmeniceFast

İndir

Ermeni Dil Paketi [Հայերեն]

Kurulum

Yapmamız gereken ilk şey, Ermenice OCR paketimizi .NET projenize yüklemektir.

Install-Package IronOcr.Languages.Armenian

Kod Örneği

Bu C# kod örneği, bir Görüntü veya PDF belgesinden Ermenice metni okur.

// 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);
        }
    }
}
Imports IronOcr

Module Program
    Sub Main()
        ' Initialize the Tesseract OCR engine
        Dim Ocr As 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 As 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 Module
$vbLabelText   $csharpLabel