Slovene OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Slowenisch, zu lesen. Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv für .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Slovene

Dieses Paket enthält 46 OCR-Sprachen für .NET:

  • Slowenisch
  • SlowenischBest
  • SlowenischFast

Download

Slowenisches Sprachpaket style='white-space:default'>[slovenski jezik]

Installation

Das Erste, was Sie tun müssen, ist, das Slowenisch-OCR-Paket in Ihrem .NET-Projekt zu installieren.

Install-Package IronOCR.Languages.Slovene

Beispielcode

Dieses C#-Codebeispiel demonstriert, wie man slowenischen Text aus einem Bild oder PDF-Dokument liest.

// 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
$vbLabelText   $csharpLabel