Slovene OCR in C# and .NET
Other versions of this document:
IronOCR is a C# software component that allows .NET developers to read text from images and PDF documents in 126 languages, including Slovene. 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.Slovene
This package contains 46 OCR languages for .NET:
- Slovene
- SloveneBest
- SloveneFast
Download
Slovene Language Pack [slovenski jezik]
Installation
The first thing you need to do is install the Slovene OCR package in your .NET project.
Install-Package IronOCR.Languages.Slovene
Code Example
This C# code example demonstrates how to read Slovene text from an image or PDF document.
// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene;
// Perform OCR inside a using block to ensure resources are released properly.
using (var Input = new OcrInput(@"images\Slovene.png"))
{
// Read the text from the input image or PDF.
var Result = Ocr.Read(Input);
// Get all the recognized text as a string.
var AllText = Result.Text;
// Output the recognized text to the console.
System.Console.WriteLine(AllText);
}
}
}
// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene;
// Perform OCR inside a using block to ensure resources are released properly.
using (var Input = new OcrInput(@"images\Slovene.png"))
{
// Read the text from the input image or PDF.
var Result = Ocr.Read(Input);
// Get all the recognized text as a string.
var AllText = Result.Text;
// Output the recognized text to the console.
System.Console.WriteLine(AllText);
}
}
}
' Install the package before using it.
' PM> Install-Package IronOcr.Languages.Slovene
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract for OCR operations.
Dim Ocr = New IronTesseract()
' Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene
' Perform OCR inside a using block to ensure resources are released properly.
Using Input = New OcrInput("images\Slovene.png")
' Read the text from the input image or PDF.
Dim Result = Ocr.Read(Input)
' Get all the recognized text as a string.
Dim AllText = Result.Text
' Output the recognized text to the console.
System.Console.WriteLine(AllText)
End Using
End Sub
End Class