C# と .NET での Breton OCR
IronOCR は、.NET コーダーがブルトン語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。 これは Tesseract の高度なフォークであり、.NET 開発者専用に構築されており、速度と精度の両方で他の Tesseract エンジンを常に上回っています。
IronOcr.Languages.Breton の内容
このパッケージには、.NET 用の 43 の OCR 言語が含まれています。
- ブルトン語
- ブルトンベスト
- ブルトンファスト
ダウンロード
ブルトン語パック [brezhoneg]
インストール
最初に、 Breton OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Breton
Code Example
この C# コード例は、画像または PDF ドキュメントからブルトン語のテキストを読み取ります。
// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}// Import the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Initialize the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton;
// Read text from a Breton image or PDF document
using (var Input = new OcrInput(@"images\Breton.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Extract text from the OCR result
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}' Import the IronOCR namespace
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the OCR language to Breton
Ocr.Language = OcrLanguage.Breton
' Read text from a Breton image or PDF document
Using Input = New OcrInput("images\Breton.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Extract text from the OCR result
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Class- この例では、IronOCR ライブラリを使用してブルトン語のテキスト イメージに対して OCR を実行する方法を示します。
IronTesseractコア OCR 機能を提供します。OcrInput、ブルトン語のテキストを含む画像へのパスを使用して作成されます。Readメソッドは入力画像を処理してテキストを抽出し、コンソールに出力します。





