C# と .NET でのブルガリア語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがブルガリア語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これは Tesseract の高度なフォークであり、.NET 開発者専用に構築されており、速度と精度の両方で他の Tesseract エンジンを常に上回っています。
IronOcr.Languages.Bulgarian の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- ブルガリア語
- ブルガリアベスト
- ブルガリアファースト
ダウンロード
ブルガリア語言語パック[ブルガリア語]
インストール
最初に、ブルガリア語のOCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Bulgarian
Code Example
この C# コード例は、画像または PDF ドキュメントからブルガリア語のテキストを読み取ります。
// Ensure you have installed the IronOCR language package for Bulgarian
// PM> Install-Package IronOcr.Languages.Bulgarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian;
// Load the image or PDF document containing Bulgarian text
using (var Input = new OcrInput(@"images\Bulgarian.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Optionally, print or use the extracted text as needed
Console.WriteLine(AllText);
}// Ensure you have installed the IronOCR language package for Bulgarian
// PM> Install-Package IronOcr.Languages.Bulgarian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian;
// Load the image or PDF document containing Bulgarian text
using (var Input = new OcrInput(@"images\Bulgarian.png"))
{
// Perform OCR and obtain the result
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Optionally, print or use the extracted text as needed
Console.WriteLine(AllText);
}' Ensure you have installed the IronOCR language package for Bulgarian
' PM> Install-Package IronOcr.Languages.Bulgarian
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Bulgarian
Ocr.Language = OcrLanguage.Bulgarian
' Load the image or PDF document containing Bulgarian text
Using Input = New OcrInput("images\Bulgarian.png")
' Perform OCR and obtain the result
Dim Result = Ocr.Read(Input)
' Extract all the text from the OCR result
Dim AllText = Result.Text
' Optionally, print or use the extracted text as needed
Console.WriteLine(AllText)
End Usingこの例では:
- OCR 操作を実行するために
IronTesseractオブジェクトを作成します。 OcrLanguage.Bulgarian使用して、OCR の言語をブルガリア語に設定します。- 画像ファイル
Bulgarian.pngをOcrInputオブジェクトに読み込みます。 - 画像からテキストを抽出するには、
Ocr.Read(Input)を使用します。 - 最後に、
Result.Textを使用して抽出されたテキストにアクセスします。





