OCR yoruba 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 en C# que permite a los desarrolladores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluyendo Yoruba. Es una bifurcación avanzada de Tesseract, construida exclusivamente para desarrolladores .NET, y regularmente supera a otros motores Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Yoruba

Este paquete contiene 43 idiomas OCR para .NET:

  • Yoruba
  • YorubaBest
  • YorubaFast

Descargar

Paquete de Idioma Yoruba [Yorùbá]

Instalación

La primera tarea es instalar el paquete OCR de Yoruba en su proyecto .NET.

Install-Package IronOCR.Languages.Yoruba

Ejemplo de código

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

// Remember to install the package first:
// PM> Install-Package IronOcr.Languages.Yoruba

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Yoruba
        Ocr.Language = OcrLanguage.Yoruba;

        // Specify the image or PDF file to read
        using (var Input = new OcrInput(@"images\Yoruba.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine("Recognized Text: ");
            Console.WriteLine(AllText);
        }
    }
}
// Remember to install the package first:
// PM> Install-Package IronOcr.Languages.Yoruba

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Yoruba
        Ocr.Language = OcrLanguage.Yoruba;

        // Specify the image or PDF file to read
        using (var Input = new OcrInput(@"images\Yoruba.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine("Recognized Text: ");
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

Los comentarios dentro del código explican cada paso, desde configurar el idioma hasta extraer e imprimir el texto reconocido. Este ejemplo se centra en leer texto en Yoruba usando IronOCR especificando el idioma Yoruba y procesando una imagen o archivo PDF.