C# と .NET でのマレー語 OCR

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

他126の言語

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

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

IronOcr.Languages.Malay の内容

このパッケージには.NET用の40のOCR言語が含まれています:

  • マレー語
  • マレーベスト
  • マレーファースト

ダウンロード

マレー語パック[マレー語]

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

インストール

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

Install-Package IronOCR.Languages.Malay

Code Example

この C# コード例は、画像または PDF ドキュメントからマレー語のテキストを読み取ります。

// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use a using statement to ensure the OcrInput is properly disposed of
        using (var Input = new OcrInput(@"images\Malay.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

            // Output the recognized text (optional)
            Console.WriteLine(AllText);
        }
    }
}
// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use a using statement to ensure the OcrInput is properly disposed of
        using (var Input = new OcrInput(@"images\Malay.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

            // Output the recognized text (optional)
            Console.WriteLine(AllText);
        }
    }
}
' This example demonstrates how to read Malay text using IronOcr.

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of the IronTesseract class
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Malay
		Ocr.Language = OcrLanguage.Malay

		' Use a using statement to ensure the OcrInput is properly disposed of
		Using Input = New OcrInput("images\Malay.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract and store the recognized text from the OCR result
			Dim AllText As String = Result.Text

			' Output the recognized text (optional)
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel