OCR eslovaco en C# y .NET

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

IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el eslovaco. Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Slovak

Este paquete contiene 61 idiomas OCR para .NET:

  • Eslovaco
  • EslovacoBest
  • EslovacoFast
  • EslovacoFraktur

Descargar

Paquete de idioma eslovaco [slovenčina]:

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR Eslovaco en tu proyecto .NET.

Install-Package IronOCR.Languages.Slovak

Ejemplo de código

Este ejemplo de código en C# lee texto en eslovaco de una imagen o documento PDF.

// Ensure you have installed the Slovak language pack for IronOCR
// PM> Install-Package IronOcr.Languages.Slovak

using IronOcr;

class SlovakOcrExample
{
    static void Main()
    {
        // Create an instance of IronTesseract for OCR processing
        var Ocr = new IronTesseract();

        // Set the language to Slovak
        Ocr.Language = OcrLanguage.Slovak;

        // Using an OcrInput to specify the source of the image or PDF
        using (var Input = new OcrInput(@"images\Slovak.png"))
        {
            // Perform OCR to read the text from the input image or PDF
            var Result = Ocr.Read(Input);

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

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Ensure you have installed the Slovak language pack for IronOCR
// PM> Install-Package IronOcr.Languages.Slovak

using IronOcr;

class SlovakOcrExample
{
    static void Main()
    {
        // Create an instance of IronTesseract for OCR processing
        var Ocr = new IronTesseract();

        // Set the language to Slovak
        Ocr.Language = OcrLanguage.Slovak;

        // Using an OcrInput to specify the source of the image or PDF
        using (var Input = new OcrInput(@"images\Slovak.png"))
        {
            // Perform OCR to read the text from the input image or PDF
            var Result = Ocr.Read(Input);

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

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Ensure you have installed the Slovak language pack for IronOCR
' PM> Install-Package IronOcr.Languages.Slovak

Imports IronOcr

Friend Class SlovakOcrExample
	Shared Sub Main()
		' Create an instance of IronTesseract for OCR processing
		Dim Ocr = New IronTesseract()

		' Set the language to Slovak
		Ocr.Language = OcrLanguage.Slovak

		' Using an OcrInput to specify the source of the image or PDF
		Using Input = New OcrInput("images\Slovak.png")
			' Perform OCR to read the text from the input image or PDF
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

			' Output the extracted text to the console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

Este ejemplo demuestra cómo leer texto en eslovaco utilizando la biblioteca IronOCR. Comienza creando una instancia de IronTesseract, especifica eslovaco como el idioma para OCR y procesa la imagen de entrada ubicada en images/Slovak.png. Finalmente, extrae y muestra el texto reconocido de la imagen.