C# および .NET でのアフリカーンス語 OCR
Curtis Chau
更新日: 2026年8月2日
このドキュメントの他のバージョン:
IronOCR は、.NET コーダーがアフリカーンス語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Afrikaans の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- Afrikaans
- AfrikaansBest
- AfrikaansFast
ダウンロード
アフリカーンス語言語パック[アフリカーンス語]
インストール
最初に、アフリカーンス語OCR パッケージを .NET プロジェクトにインストールする必要があります。
コード例
この 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' 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は現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。