Norwegian OCR in C# and .NET

126 More Languages

IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including Norwegian.

It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines for both speed and accuracy.

Contents of IronOcr.Languages.Norwegian

This package contains 52 OCR languages for .NET:

  • Norwegian
  • NorwegianBest
  • NorwegianFast

Download

Norwegian Language Pack [Norsk]

Installation

The first thing we have to do is install our Norwegian OCR package to your .NET project.

Install-Package IronOCR.Languages.Norwegian

Code Example

This C# code example reads Norwegian text from an image or PDF document.

// 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
$vbLabelText   $csharpLabel
  • This code initializes the OCR engine, sets the language to Norwegian, reads the text from an image, and then outputs the recognized text.
  • Ensure that the IronOCR package and the Norwegian language pack are installed in your .NET project to run this example successfully.