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.Quechua の内容

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

  • ケチュア語
  • ケチュア語ベスト
  • ケチュアファスト

ダウンロード

英語言語パック[英語]

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

インストール

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

Install-Package IronOCR.Languages.Quechua

Code Example

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

// Import the IronOcr namespace
using IronOcr;

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

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

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text from the result
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

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

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text from the result
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

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

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

		' Wrap OCR input within a using statement for resource management
		Using Input = New OcrInput("images\Quechua.png")
			' Perform OCR read operation on the input image
			Dim Result = Ocr.Read(Input)

			' Retrieve the recognized text from the result
			Dim AllText = Result.Text

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

IronOcr を使用して Quechua OCR を実装する際の各ステップを明確に理解できるように、コードにコメントが追加されました。 "images\Quechua.png"がシステム上の既存の Quechua イメージ ファイルを指していることを確認します。