C# と .NET でのテルグ語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがテルグ語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Telugu の内容
このパッケージには、テルグ語に関連する .NET 用の OCR 言語モデルがいくつか含まれています。
- テルグ語
- テルグ語ベスト
- テルグ語ファースト
- テルグ語アルファベット
- テルグ語アルファベットベスト
- テルグ語アルファベット高速
ダウンロード
テルグ語言語パック[タルグ語]
インストール
最初のステップは、テルグ語OCR パッケージを .NET プロジェクトにインストールすることです。
Install-Package IronOCR.Languages.Telugu
Code Example
これは、画像または PDF ドキュメントからテルグ語のテキストを読み取る C# コード例です。
// Ensure that you have installed the IronOCR.Languages.Telugu package before running this code.
using IronOcr;
public class TeluguOcrExample
{
public static void Main()
{
// Create a new IronTesseract instance
var Ocr = new IronTesseract();
// Specify the OCR language as Telugu
Ocr.Language = OcrLanguage.Telugu;
// Create a new OcrInput and specify the path to the image or PDF
using (var Input = new OcrInput(@"images\Telugu.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract and store the recognized text
var AllText = Result.Text;
// Output the recognized text to the console (optional)
Console.WriteLine(AllText);
}
}
}// Ensure that you have installed the IronOCR.Languages.Telugu package before running this code.
using IronOcr;
public class TeluguOcrExample
{
public static void Main()
{
// Create a new IronTesseract instance
var Ocr = new IronTesseract();
// Specify the OCR language as Telugu
Ocr.Language = OcrLanguage.Telugu;
// Create a new OcrInput and specify the path to the image or PDF
using (var Input = new OcrInput(@"images\Telugu.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract and store the recognized text
var AllText = Result.Text;
// Output the recognized text to the console (optional)
Console.WriteLine(AllText);
}
}
}このコード スニペットは、IronOCR パッケージを使用して OCR エンジンを初期化し、OCR 処理用にテルグ語を設定し、ユーザーが指定した入力画像ファイルからテキストを読み取ります。





