C# と .NET でのフィリピン語 OCR

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

他126の言語

IronOCRは、.NETプログラマーが画像やPDF文書から126言語(フィリピン語を含む)のテキストを読み取ることを可能にするC#ソフトウェアコンポーネントです。Tesseractの高度なフォークであり、.NET開発者専用に開発されており、速度と精度の両方で他のTesseractエンジンを常に上回っています。

IronOcr.Languages.Filipino の内容

このパッケージには、.NET 用の 49 個の OCR 言語が含まれています。

  • フィリピン語
  • フィリピンベスト
  • フィリピンファースト

ダウンロード

フィリピン語パック[フィリピンの国語]

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

インストール

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

Install-Package IronOCR.Languages.Filipino

Code Example

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

// Import the IronOcr namespace to use its classes and methods.
using IronOcr;

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

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

        // Create a new OcrInput object, specifying the path to the image
        // or document that contains the text you want to read.
        using (var Input = new OcrInput(@"images\Filipino.png"))
        {
            // Perform OCR on the input.
            var Result = Ocr.Read(Input);

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

            // Output the text to the console or use it in your application.
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace to use its classes and methods.
using IronOcr;

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

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

        // Create a new OcrInput object, specifying the path to the image
        // or document that contains the text you want to read.
        using (var Input = new OcrInput(@"images\Filipino.png"))
        {
            // Perform OCR on the input.
            var Result = Ocr.Read(Input);

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

            // Output the text to the console or use it in your application.
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace to use its classes and methods.
Imports IronOcr

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

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

		' Create a new OcrInput object, specifying the path to the image
		' or document that contains the text you want to read.
		Using Input = New OcrInput("images\Filipino.png")
			' Perform OCR on the input.
			Dim Result = Ocr.Read(Input)

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

			' Output the text to the console or use it in your application.
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel