C# と .NET でのアフリカーンス語 OCR
Other versions of this document:
IronOCR は、.NET コーダーがアフリカーンス語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Afrikaans の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- アフリカーンス語
- アフリカーンス語ベスト
- アフリカーンス語高速
ダウンロード
アフリカーンス語言語パック[アフリカーンス語]
インストール
最初に、アフリカーンス語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Afrikaans
Code Example
この C# コード例では、画像または PDF ドキュメントからアフリカーンス語のテキストを読み取ります。
// First, ensure the IronOcr.Languages.Afrikaans package is installed in your project.
// This example requires the IronOcr C# package to read text from images or PDFs.
using IronOcr;
var Ocr = new IronTesseract(); // Initialize the IronTesseract class
Ocr.Language = OcrLanguage.Afrikaans; // Set the language to Afrikaans
// Load the image or PDF document into an OcrInput object
using (var Input = new OcrInput(@"images\Afrikaans.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the complete recognized text
var AllText = Result.Text;
// Output the recognized text (this step is customizable for your use-case)
Console.WriteLine(AllText);
}// First, ensure the IronOcr.Languages.Afrikaans package is installed in your project.
// This example requires the IronOcr C# package to read text from images or PDFs.
using IronOcr;
var Ocr = new IronTesseract(); // Initialize the IronTesseract class
Ocr.Language = OcrLanguage.Afrikaans; // Set the language to Afrikaans
// Load the image or PDF document into an OcrInput object
using (var Input = new OcrInput(@"images\Afrikaans.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the complete recognized text
var AllText = Result.Text;
// Output the recognized text (this step is customizable for your use-case)
Console.WriteLine(AllText);
}' First, ensure the IronOcr.Languages.Afrikaans package is installed in your project.
' This example requires the IronOcr C# package to read text from images or PDFs.
Imports IronOcr
Private Ocr = New IronTesseract() ' Initialize the IronTesseract class
Ocr.Language = OcrLanguage.Afrikaans ' Set the language to Afrikaans
' Load the image or PDF document into an OcrInput object
Using Input = New OcrInput("images\Afrikaans.png")
' Perform OCR on the input document
Dim Result = Ocr.Read(Input)
' Retrieve the complete recognized text
Dim AllText = Result.Text
' Output the recognized text (this step is customizable for your use-case)
Console.WriteLine(AllText)
End Using説明:
- IronTesseract : このクラスは IronOCR ライブラリの一部であり、OCR プロセスの設定に使用されます。
- OcrLanguage : このプロパティは、OCR の言語を設定します。 ここではアフリカーンス語に設定されています。
- OcrInput : このクラスは、OCR プロセスの入力ファイルをカプセル化します。 さまざまな画像形式と PDF ファイルをサポートしています。
- Ocr.Read() : このメソッドは OCR プロセスを実行し、認識されたテキストを結果オブジェクトにラップして返します。
- Result.Text : このプロパティには、入力ドキュメントから抽出されたテキストが含まれます。





