C# と .NET でのオック語 OCR
IronOCR は、.NET コーダーがオック語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。 これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Occitan の内容
このパッケージには、.NET 用の 46 の OCR 言語が含まれています。
- オック語
- オック語ベスト
- オック語ファースト
ダウンロード
オック語言語パック
インストール
最初に、 Occitan OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Occitan
Code Example
この C# コード例は、画像または PDF ドキュメントからオック語のテキストを読み取ります。
// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}この例では、オック語のテキストを含む画像ファイルからテキストを読み取るように IronOCR ライブラリを構成する方法を示します。 OCR 言語をオック語に設定し、画像を処理して認識されたテキストを出力します。





