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

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

  • スコットランド・ゲール語
  • スコットランドゲール語ベスト
  • スコットランドゲール語ファースト

ダウンロード

スコットランド・ゲール語言語パック[ゲール語]

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

インストール

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

Install-Package IronOCR.Languages.ScottishGaelic

Code Example

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

// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;

// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();

// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;

// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
    // Perform OCR on the input and obtain the result
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;
}
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;

// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();

// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;

// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
    // Perform OCR on the input and obtain the result
    var Result = Ocr.Read(Input);

    // Retrieve the recognized text
    var AllText = Result.Text;
}
' PM> Install-Package IronOcr.Languages.ScottishGaelic
Imports IronOcr

' Create an instance of the IronTesseract class
Private Ocr = New IronTesseract()

' Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic

' Create an OcrInput object with the specified image or PDF file
Using Input = New OcrInput("images\ScottishGaelic.png")
	' Perform OCR on the input and obtain the result
	Dim Result = Ocr.Read(Input)

	' Retrieve the recognized text
	Dim AllText = Result.Text
End Using
$vbLabelText   $csharpLabel

上記のコードは、スコットランド ゲール語用の IronOcr を使用して OCR プロセスをインストールおよび設定します。 指定された画像ScottishGaelic.pngに対して光学文字認識を実行し、画像に含まれるテキストを抽出します。 抽出されたテキストは、さらに使用または処理するためにAllText変数に保存されます。