C# と .NET でのハンガリー語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがハンガリー語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Hungarian の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- ハンガリー語
- ハンガリーベスト
- ハンガリーファースト
ダウンロード
ハンガリー語言語パック[ハンガリー語]
インストール
最初に、ハンガリー語のOCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Hungarian
Code Example
この C# コード例は、画像または PDF ドキュメントからハンガリー語のテキストを読み取ります。
// First, ensure you have installed the Hungarian OCR language pack
// via NuGet: Install-Package IronOcr.Languages.Hungarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Hungarian.
Ocr.Language = OcrLanguage.Hungarian;
// Load the image file containing Hungarian text
using (var Input = new OcrInput(@"images\Hungarian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and store the recognized text
var AllText = Result.Text;
// Output the recognized text to the console (for debugging purposes)
Console.WriteLine(AllText);
}// First, ensure you have installed the Hungarian OCR language pack
// via NuGet: Install-Package IronOcr.Languages.Hungarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Hungarian.
Ocr.Language = OcrLanguage.Hungarian;
// Load the image file containing Hungarian text
using (var Input = new OcrInput(@"images\Hungarian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve and store the recognized text
var AllText = Result.Text;
// Output the recognized text to the console (for debugging purposes)
Console.WriteLine(AllText);
}' First, ensure you have installed the Hungarian OCR language pack
' via NuGet: Install-Package IronOcr.Languages.Hungarian
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Hungarian.
Ocr.Language = OcrLanguage.Hungarian
' Load the image file containing Hungarian text
Using Input = New OcrInput("images\Hungarian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Retrieve and store the recognized text
Dim AllText = Result.Text
' Output the recognized text to the console (for debugging purposes)
Console.WriteLine(AllText)
End Usingこのコードスニペットは、IronOCRライブラリを使用してOCRリーダーを設定し、指定された画像ファイルからハンガリー語のテキストを認識する方法を示しています。抽出されたテキストはAllText変数に保存され、アプリケーション内で必要に応じて使用できます。 この例には、テスト中に OCR の結果を確認するためのオプションのコンソール出力も含まれています。





