Afrikaans OCR in C# and .NET
Curtis Chau
Updated: 2026年5月9日
このドキュメントの他のバージョン:
IronOCR は、.NET コーダーがアフリカーンス語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Afrikaans の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- アフリカーンス語
- アフリカーンス語ベスト
- アフリカーンス語高速
ダウンロード
アフリカーンス語言語パック[アフリカーンス語]
インストール
最初に、アフリカーンス語OCR パッケージを .NET プロジェクトにインストールする必要があります。
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 VB.NET package to read text from images or PDFs.
Imports IronOcr
Dim 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 : このプロパティには、入力ドキュメントから抽出されたテキストが含まれます。

テクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。
...
詳しく読む