OCR quechua en C# y .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126 idiomas más

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 quechua.

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.Quechua

Este paquete contiene 46 idiomas OCR para .NET:

  • Quechua
  • QuechuaBest
  • QuechuaFast

Descargar

Paquete de idioma Quechua [Runa Simi]

Instalación

Lo primero que debemos hacer es instalar nuestro paquete OCR Quechua en tu proyecto .NET.

Install-Package IronOCR.Languages.Quechua

Ejemplo de código

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

// Import the IronOcr namespace
using IronOcr;

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

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

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text from the result
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

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

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

        // Wrap OCR input within a using statement for resource management
        using (var Input = new OcrInput(@"images\Quechua.png"))
        {
            // Perform OCR read operation on the input image
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text from the result
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Quechua
		Ocr.Language = OcrLanguage.Quechua

		' Wrap OCR input within a using statement for resource management
		Using Input = New OcrInput("images\Quechua.png")
			' Perform OCR read operation on the input image
			Dim Result = Ocr.Read(Input)

			' Retrieve the recognized text from the result
			Dim AllText = Result.Text

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

Se han añadido comentarios al código para proporcionar claridad y comprensión de cada paso involucrado en la implementación del OCR quechua utilizando IronOcr. Asegúrate de que "images\Quechua.png" apunte a un archivo de imagen quechua existente en tu sistema.