OCR occitano en C# y .NET
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo el occitano. 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.Occitan
Este paquete contiene 46 idiomas OCR para .NET:
- Occitano
- OccitanoBest
- OccitanoFast
Descargar
Paquete de idioma occitano
Instalación
Lo primero que debemos hacer es instalar nuestro paquete OCR occitano en su proyecto .NET.
Install-Package IronOCR.Languages.Occitan
Ejemplo de código
Este ejemplo de código en C# lee texto occitanos de una imagen o documento PDF.
// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}// Importing the IronOCR namespace
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of the OCR engine for Occitan language
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Occitan;
// Use a using block for proper disposal of resources
using (var Input = new OcrInput(@"images\Occitan.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}Este ejemplo demuestra cómo configurar la biblioteca IronOCR para leer texto de un archivo de imagen que contiene texto occitano. Configura el idioma de OCR a occitano y procesa la imagen, produciendo el texto reconocido.





