Norwegian OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern das Lesen von Texten aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Norwegisch, ermöglicht.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Norwegian
Dieses Paket enthält 52 OCR-Sprachen for .NET:
- Norwegisch
- NorwegischBest
- NorwegischSchnell
Download
Norwegisches Sprachpaket [Norsk]
Installation
Das Erste, was wir tun müssen, ist unser Norwegisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Norwegian
Beispielcode
Dieses C#-Codebeispiel liest norwegischen Text aus einem Bild oder PDF-Dokument.
// 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);
}
Imports IronOcr
' Make sure to install the Norwegian language package:
' PM> Install-Package IronOcr.Languages.Norwegian
Dim Ocr As New IronTesseract()
' Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian
' Define the input source as an image file
Using Input As 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
- Dieser Code initialisiert die OCR-Engine, setzt die Sprache auf Norwegisch, liest den Text aus einem Bild und gibt dann den erkannten Text aus.
- Stellen Sie sicher, dass das IronOCR-Paket und das norwegische Sprachpaket in Ihrem .NET-Projekt installiert sind, um dieses Beispiel erfolgreich auszuführen.

