Armenian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
このドキュメントの他のバージョン:

*アルメニア語

IronOCR は、.NET コーダーがアルメニア語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。

これは、.NET 開発者専用に構築された Tesseract の高度なフォークであり、速度と精度の両方において他の Tesseract エンジンを常に上回っています。

IronOcr.Languages.Armenian の内容

このパッケージには、.NET 用のアルメニア語に固有の OCR 言語がいくつか含まれています。

  • アルメニア語アルファベット
  • アルメニア語アルファベットベスト
  • アルメニア語アルファベット高速
  • アルメニア語
  • アルメニアベスト
  • アルメニアファースト

ダウンロード

アルメニア語言語パック[アルメニア語]

  • Zip形式でダウンロード
  • NuGetでインストール

インストール

最初に、アルメニア語OCR パッケージを .NET プロジェクトにインストールする必要があります。

Install-Package IronOcr.Languages.Armenian

Code Example

この C# コード例は、画像または 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);
        }
    }
}
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