Slovene OCR in C# and .NET
Otras versiones de este documento:
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 for .NET:
- Esloveno
- EslovenoBest
- EslovenoFast
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.
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
Imports IronOcr
Class Program
Shared Sub Main()
' Create a new instance of IronTesseract for OCR operations.
Dim Ocr As 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 As 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
Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien estructurados y visualmente atractivos.