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

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

This package contains 138 OCR languages for .NET:

  • Azerbaijani
  • AzerbaijaniBest
  • AzerbaijaniFast
  • AzerbaijaniCyrillic
  • AzerbaijaniCyrillicBest
  • AzerbaijaniCyrillicFast

Download

Azerbaijani Language Pack [azərbaycan dili]

Installation

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

Install-Package IronOCR.Languages.Azerbaijani

Code Example

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

// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOCR.Languages.Azerbaijani

using IronOcr;

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

        // Specify the language to be Azerbaijani
        Ocr.Language = OcrLanguage.Azerbaijani;

        // Provide the path to the image file containing Azerbaijani text
        using (var Input = new OcrInput(@"images\Azerbaijani.png"))
        {
            // Process the image to extract text
            var Result = Ocr.Read(Input);

            // Extracted text is stored in Result.Text
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
// Ensure the IronOCR Azerbaijani language package is installed
// PM> Install-Package IronOCR.Languages.Azerbaijani

using IronOcr;

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

        // Specify the language to be Azerbaijani
        Ocr.Language = OcrLanguage.Azerbaijani;

        // Provide the path to the image file containing Azerbaijani text
        using (var Input = new OcrInput(@"images\Azerbaijani.png"))
        {
            // Process the image to extract text
            var Result = Ocr.Read(Input);

            // Extracted text is stored in Result.Text
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
' Ensure the IronOCR Azerbaijani language package is installed
' PM> Install-Package IronOCR.Languages.Azerbaijani

Imports IronOcr

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

		' Specify the language to be Azerbaijani
		Ocr.Language = OcrLanguage.Azerbaijani

		' Provide the path to the image file containing Azerbaijani text
		Using Input = New OcrInput("images\Azerbaijani.png")
			' Process the image to extract text
			Dim Result = Ocr.Read(Input)

			' Extracted text is stored in Result.Text
			Dim AllText = Result.Text

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

In this example, we initialize the IronTesseract object and set its language to Azerbaijani. The OcrInput instance is used to read an image from the specified file path. The Ocr.Read method processes the image to extract the text, which is accessible via the Result.Text property. This allows for easy output or further processing.