C# と .NET でのルーマニア語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがルーマニア語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。 これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Romanian の内容
このパッケージには、.NET 用の 49 個の OCR 言語が含まれています。
- ルーマニア語
- ルーマニア語ベスト
- ルーマニア語
ダウンロード
ルーマニア語言語パック[ルーマニア語]
インストール
最初に、ルーマニア語のOCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Romanian
Code Example
この C# コード例は、画像または PDF ドキュメントからルーマニア語のテキストを読み取ります。
// Ensure you have installed the Romanian OCR package using the following NuGet command:
// PM> Install-Package IronOCR.Languages.Romanian
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Romanian;
using (var Input = new OcrInput(@"images\Romanian.png"))
{
// Perform OCR on the input image, and store the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the OCR result
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}// Ensure you have installed the Romanian OCR package using the following NuGet command:
// PM> Install-Package IronOCR.Languages.Romanian
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Romanian;
using (var Input = new OcrInput(@"images\Romanian.png"))
{
// Perform OCR on the input image, and store the result
var Result = Ocr.Read(Input);
// Extract all recognized text from the OCR result
var AllText = Result.Text;
// Display the recognized text
Console.WriteLine(AllText);
}' Ensure you have installed the Romanian OCR package using the following NuGet command:
' PM> Install-Package IronOCR.Languages.Romanian
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Romanian
Using Input = New OcrInput("images\Romanian.png")
' Perform OCR on the input image, and store the result
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the OCR result
Dim AllText = Result.Text
' Display the recognized text
Console.WriteLine(AllText)
End Using上記のコードは、画像ファイルからルーマニア語のテキストを読み取るためのIronOCRの設定方法を示しています。IronTesseract IronTesseract()新しいOCRエンジンインスタンスを初期化し、 OcrInput()処理のために画像を読み込みます。 Read()メソッドは OCR 操作を実行します。 最後に、認識されたテキストはAllText変数に保存され、コンソールに出力されます。 "images\Romanian.png"画像ファイルへのパスに置き換えることを忘れないでください。





