C# と .NET でのバスク語 OCR

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

*バスク語

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

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

IronOcr.Languages.Basque の内容

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

  • バスク語
  • バスクベスト
  • バスクファスト

ダウンロード

バスク語言語パック[バスク語]

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

インストール

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

Install-Package IronOCR.Languages.Basque

Code Example

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

// Import the IronOcr namespace
using IronOcr;

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

        // Set the language to Basque
        Ocr.Language = OcrLanguage.Basque;

        // Read the text from a Basque image or PDF
        using (var Input = new OcrInput(@"images\Basque.png"))
        {
            // Perform OCR to get the result
            var Result = Ocr.Read(Input);

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

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

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

        // Set the language to Basque
        Ocr.Language = OcrLanguage.Basque;

        // Read the text from a Basque image or PDF
        using (var Input = new OcrInput(@"images\Basque.png"))
        {
            // Perform OCR to get the result
            var Result = Ocr.Read(Input);

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

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

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

		' Set the language to Basque
		Ocr.Language = OcrLanguage.Basque

		' Read the text from a Basque image or PDF
		Using Input = New OcrInput("images\Basque.png")
			' Perform OCR to get the result
			Dim Result = Ocr.Read(Input)

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

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

このコードは、バスク語専用の IronOCR を使用して OCR エンジンを設定します。 画像 (または PDF へのパス) を読み込んで OCR を実行し、すべてのテキスト コンテンツを抽出して、コンソールに出力します。