OCR du cebuano en C

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 cebuano. Version avancée de Tesseract, conçue exclusivement pour les développeurs .NET, elle surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu de IronOcr.Languages.Cebuano

Ce package contient 46 langues OCR pour .NET :

  • Cebuano
  • CebuanoBest
  • CebuanoFast

Télécharger

Pack linguistique cebuano [Bisaya]

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

Installation

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

Install-Package IronOCR.Languages.Cebuano

Exemple de code

Cet exemple de code C# lit du texte en cebuano à partir d'une image ou d'un document PDF.

// Install the IronOCR Cebuano language package via NuGet package manager 
// PM> Install-Package IronOcr.Languages.Cebuano

using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate an IronTesseract object
        var Ocr = new IronTesseract();

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

        // Define the input source containing the image or PDF with Cebuano text
        using (var Input = new OcrInput(@"images\Cebuano.png"))
        {
            // Perform OCR to read the text from the input source
            var Result = Ocr.Read(Input);

            // Extract and display the recognized text
            var AllText = Result.Text;
            Console.WriteLine(AllText);
        }
    }
}
// Install the IronOCR Cebuano language package via NuGet package manager 
// PM> Install-Package IronOcr.Languages.Cebuano

using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate an IronTesseract object
        var Ocr = new IronTesseract();

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

        // Define the input source containing the image or PDF with Cebuano text
        using (var Input = new OcrInput(@"images\Cebuano.png"))
        {
            // Perform OCR to read the text from the input source
            var Result = Ocr.Read(Input);

            // Extract and display the recognized text
            var AllText = Result.Text;
            Console.WriteLine(AllText);
        }
    }
}
' Install the IronOCR Cebuano language package via NuGet package manager 
' PM> Install-Package IronOcr.Languages.Cebuano

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Instantiate an IronTesseract object
		Dim Ocr = New IronTesseract()

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

		' Define the input source containing the image or PDF with Cebuano text
		Using Input = New OcrInput("images\Cebuano.png")
			' Perform OCR to read the text from the input source
			Dim Result = Ocr.Read(Input)

			' Extract and display the recognized text
			Dim AllText = Result.Text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

L'extrait de code ci-dessus montre comment utiliser IronOCR pour lire du texte cebuano à partir d'une image en utilisant C# et .NET. Il commence par configurer le moteur OCR et spécifier la langue cebuano, puis traite un fichier image et affiche le texte extrait. Assurez-vous que le chemin d'accès à l'image est correctement spécifié pour l'environnement de votre projet.