C# および .NET でのオランダ語 OCR
この文書の別バージョン
IronOCR は、.NET 開発者が画像や PDF 文書からオランダ語を含む 126 言語のテキストを読み取るための C# ソフトウェアコンポーネントです。
IronOCR は、.NET 開発者専用に開発された Tesseract の高度なフォークで、速度と精度の両面で他の Tesseract エンジンを上回ることが多いです。
IronOcr.Languages.Dutch の内容
このパッケージには、.NET 用の 40 の OCR言語が含まれています。
- Dutch
- DutchBest
- DutchFast
ダウンロード
オランダ語パック[Nederlands]
- ZIP 形式でダウンロード
- NuGet でインストール
インストール
まず、オランダ語 OCR パッケージを .NET プロジェクトにインストールします。
コード例
この C# コード例は、画像または PDF 文書からオランダ語のテキストを読み取ります。
// The first step is to ensure the IronOcr.Languages.Dutch package is installed.
// You can do this from the Package Manager Console with the command:
// PM> Install-Package IronOcr.Languages.Dutch
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Dutch.
// This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch;
// Use a using statement to manage the OcrInput resource lifecycle.
using (var Input = new OcrInput(@"images\Dutch.png"))
{
// Read the image and perform OCR to extract text.
var Result = Ocr.Read(Input);
// Store the recognized text into a variable.
var AllText = Result.Text;
// You can now use the extracted text stored in AllText.
}' The first step is to ensure the IronOcr.Languages.Dutch package is installed.
' You can do this from the Package Manager Console with the command:
' PM> Install-Package IronOcr.Languages.Dutch
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Dutch.
' This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch
' Use a using statement to manage the OcrInput resource lifecycle.
Using Input = New OcrInput("images\Dutch.png")
' Read the image and perform OCR to extract text.
Dim Result = Ocr.Read(Input)
' Store the recognized text into a variable.
Dim AllText = Result.Text
' You can now use the extracted text stored in AllText.
End Using' The first step is to ensure the IronOcr.Languages.Dutch package is installed.
' You can do this from the Package Manager Console with the command:
' PM> Install-Package IronOcr.Languages.Dutch
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Dutch.
' This is crucial for recognizing text in that language effectively.
Ocr.Language = OcrLanguage.Dutch
' Use a using statement to manage the OcrInput resource lifecycle.
Using Input = New OcrInput("images\Dutch.png")
' Read the image and perform OCR to extract text.
Dim Result = Ocr.Read(Input)
' Store the recognized text into a variable.
Dim AllText = Result.Text
' You can now use the extracted text stored in AllText.
End Usingこのコードは、C# でオランダ語のテキストを読み取る OCR の設定と実行を示します。IronTesseract オブジェクトを初期化し、認識言語を指定して、入力画像ファイルを処理します。抽出したテキストは、必要に応じてアプリケーションで利用できます。
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。