C# と .NET でのノルウェー語 OCR
IronOCR は、.NET コーダーがノルウェー語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Norwegian の内容
このパッケージには、.NET 用の 52 の OCR 言語が含まれています。
- ノルウェー語
- ノルウェーベスト
- ノルウェーファースト
ダウンロード
ノルウェー語言語パック[ノルウェー語]
インストール
最初に、ノルウェー語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Norwegian
Code Example
この C# コード例では、画像または PDF ドキュメントからノルウェー語のテキストを読み取ります。
// Make sure to install the Norwegian language package:
// PM> Install-Package IronOCR.Languages.Norwegian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\Norwegian.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Store the extracted text in a variable
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}// Make sure to install the Norwegian language package:
// PM> Install-Package IronOCR.Languages.Norwegian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\Norwegian.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Store the extracted text in a variable
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}' Make sure to install the Norwegian language package:
' PM> Install-Package IronOCR.Languages.Norwegian
Imports IronOcr
Private Ocr = New IronTesseract()
' Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian
' Define the input source as an image file
Using Input = New OcrInput("images\Norwegian.png")
' Perform OCR to read the text from the image
Dim Result = Ocr.Read(Input)
' Store the extracted text in a variable
Dim AllText = Result.Text
' Output the extracted text to the console
Console.WriteLine(AllText)
End Using- このコードは、OCR エンジンを初期化し、言語をノルウェー語に設定し、画像からテキストを読み取り、認識されたテキストを出力します。
- この例を正常に実行するには、IronOCR パッケージとノルウェー語言語パックが .NET プロジェクトにインストールされていることを確認してください。





