OCR quechua en C# et .NET

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

126 autres langues

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le quechua.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu de IronOcr.Languages.Quechua

Ce package contient 46 langues OCR pour .NET :

  • Quechua
  • QuechuaBest
  • QuechuaFast

Télécharger

Pack de langue anglaise [Anglais]

  • Télécharger au format Zip
  • Installer avec NuGet

Installation

La première chose à faire est d'installer notre package OCR Quechua sur votre projet .NET.

Install-Package IronOCR.Languages.Quechua

Exemple de code

Cet exemple de code C# lit du texte quechua à partir d'une image ou d'un document 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

Des commentaires ont été ajoutés au code pour apporter clarté et compréhension à chaque étape de la mise en œuvre de la reconnaissance optique de caractères quechua à l'aide d'IronOcr. Assurez-vous que " images\Quechua.png " pointe vers un fichier image quechua existant sur votre système.