Haitian OCR in C# and .NET

Other versions of this document:

IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including Haitian.

It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines for both speed and accuracy.

Contents of IronOcr.Languages.Haitian

This package contains 46 OCR languages for .NET:

  • Haitian
  • HaitianBest
  • HaitianFast

Download

Haitian Language Pack [Kreyòl ayisyen]

Installation

The first thing we have to do is install our Haitian OCR package to your .NET project.

Install-Package IronOCR.Languages.Haitian

Code Example

This C# code example reads Haitian text from an Image or PDF document.

// 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
  • This code snippet demonstrates how to implement OCR using the IronTesseract library for reading Haitian text from images or PDF documents.
  • Ensure that the image or PDF is located in the specified path.
  • This example assumes you're working in a development environment compatible with .NET.