C# と .NET でのヒンディー語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがヒンディー語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Hindi の内容
このパッケージには.NET用の40のOCR言語が含まれています:
- いいえ
- ヒンディー語ベスト
- ヒンディー語ファースト
ダウンロード
ヒンディー語言語パック[ヒンディー語]
インストール
最初に、ヒンディー語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Hindi
Code Example
この C# コード例は、画像または PDF ドキュメントからヒンディー語のテキストを読み取ります。
// Make sure to install IronOcr.Languages.Hindi package before running the code
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the OCR engine
Ocr.Language = OcrLanguage.Hindi; // Set the language to Hindi
// Load the image file containing Hindi text
using (var Input = new OcrInput(@"images\Hindi.png"))
{
// Perform OCR on the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can print the extracted text
Console.WriteLine(AllText);
}// Make sure to install IronOcr.Languages.Hindi package before running the code
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the OCR engine
Ocr.Language = OcrLanguage.Hindi; // Set the language to Hindi
// Load the image file containing Hindi text
using (var Input = new OcrInput(@"images\Hindi.png"))
{
// Perform OCR on the image
var Result = Ocr.Read(Input);
// Extract the recognized text
var AllText = Result.Text;
// Optionally, you can print the extracted text
Console.WriteLine(AllText);
}>注意: Hindi.pngへのファイル パスが正しいこと、および必要なパッケージがインストールされていることを確認してください。





