Faroese 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 Faroese.

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

Contents of IronOcr.Languages.Faroese

This package contains 46 OCR languages for .NET:

  • Faroese
  • FaroeseBest
  • FaroeseFast

Download

Faroese Language Pack [føroyskt]

Installation

The first thing to do is install the Faroese OCR package to your .NET project:

Install-Package IronOCR.Languages.Faroese

Code Example

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

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

        // Specify the language to use for OCR 
        // In this case, we're using Faroese
        Ocr.Language = OcrLanguage.Faroese;

        // Use a using statement for automatic resource management
        using (var Input = new OcrInput(@"images\Faroese.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Print the extracted text to console
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of IronTesseract
		Dim Ocr = New IronTesseract()

		' Specify the language to use for OCR 
		' In this case, we're using Faroese
		Ocr.Language = OcrLanguage.Faroese

		' Use a using statement for automatic resource management
		Using Input = New OcrInput("images\Faroese.png")
			' Perform OCR on the input image
			Dim Result = Ocr.Read(Input)

			' Extract the recognized text
			Dim AllText = Result.Text

			' Print the extracted text to console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract: This object serves as the core OCR engine.
  • Ocr.Language: Sets the OCR to the Faroese language. Make sure the Faroese language pack is installed.
  • OcrInput: Provides the input file (image or PDF) for OCR.
  • Ocr.Read: Processes the input and generates an OCR result.
  • Result.Text: Extracts the text information from the OCR operation.