OCR esloveno en C# y .NET
Other versions of this document:
IronOCR es un componente de software C# que permite a los desarrolladores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el esloveno. 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.Slovene
Este paquete contiene 46 idiomas OCR para .NET:
- Esloveno
- EslovenoMejor
- EslovenoRápido
Descargar
Paquete de idioma esloveno [slovenski jezik]
Instalación
Lo primero que necesita hacer es instalar el paquete de OCR Esloveno en su proyecto .NET.
Install-Package IronOCR.Languages.Slovene
Ejemplo de código
Este ejemplo de código en C# demuestra cómo leer texto en esloveno de una imagen o documento PDF.
// 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




