OCR haïtien en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

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 haïtien.

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.Haïtien

Ce package contient 46 langues OCR pour .NET :

  • Haïtien
  • HaïtienBest
  • HaïtienFast

Télécharger

Pack de langue haïtienne [créole haïtien]

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

Installation

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

Install-Package IronOCR.Languages.Haitian

Exemple de code

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

// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Install the required IronOcr package
' PM> Install-Package IronOcr.Languages.Haitian

Imports IronOcr

Friend Class HaitianOcrExample
	Shared Sub Main()
		' Initialize the IronTesseract object
		Dim Ocr = New IronTesseract()

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

		' Using the OcrInput class, define the path to the image or PDF
		Using Input = New OcrInput("images\Haitian.png")
			' Read the text from the image
			Dim Result = Ocr.Read(Input)

			' Extract the text found in the image
			Dim AllText = Result.Text

			' Output the extracted text to the console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • Cet extrait de code montre comment implémenter la reconnaissance optique de caractères (OCR) à l'aide de la bibliothèque IronTesseract pour lire du texte haïtien à partir d'images ou de documents PDF.
  • Assurez-vous que l'image ou le PDF est situ\u00e9 dans le chemin sp\u00e9cifi\u00e9. Cet exemple suppose que vous travaillez dans un environnement de développement compatible avec .NET.