C# と .NET でのモンゴル語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがモンゴル語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Mongolian の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- モンゴル語
- モンゴルベスト
- モンゴリアンファースト
ダウンロード
モンゴル語言語パック[монгол]
インストール
最初のステップは、.NET プロジェクトにモンゴル語OCR パッケージをインストールすることです。
Install-Package IronOCR.Languages.Mongolian
Code Example
この C# コード例は、画像または PDF ドキュメントからモンゴル語のテキストを読み取ります。
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract
var Ocr = new IronTesseract();
// Set the language to Mongolian
Ocr.Language = OcrLanguage.Mongolian;
// Define the input as an image located in the "images" directory
using (var Input = new OcrInput(@"images\Mongolian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}この例では、IronOCR を使用してモンゴル語のテキスト画像に対して光学式文字認識を実行する方法を示します。 OCR エンジンを初期化し、言語を設定し、画像入力を処理して認識されたテキストを取得して表示します。





