Armenian 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 Armenian.
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.Armenian
This package contains several OCR languages specific to Armenian for .NET:
- ArmenianAlphabet
- ArmenianAlphabetBest
- ArmenianAlphabetFast
- Armenian
- ArmenianBest
- ArmenianFast
Download
Armenian Language Pack [Հայերեն]
Installation
The first thing we have to do is install our Armenian OCR package to your .NET project.
Install-Package IronOCR.Languages.Armenian
Code Example
This C# code example reads Armenian text from an Image or PDF document.
// Ensure the necessary NuGet package is installed.
// PM> Install-Package IronOCR.Languages.Armenian
using IronOcr;
class Program
{
static void Main()
{
// Initialize the Tesseract OCR engine
var Ocr = new IronTesseract();
// Set the language of the OCR to Armenian
Ocr.Language = OcrLanguage.Armenian;
// Create an OCR input object with the path to the image
using (var Input = new OcrInput(@"images\Armenian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Output the result to the console or any other desired operation
Console.WriteLine(AllText);
}
}
}
// Ensure the necessary NuGet package is installed.
// PM> Install-Package IronOCR.Languages.Armenian
using IronOcr;
class Program
{
static void Main()
{
// Initialize the Tesseract OCR engine
var Ocr = new IronTesseract();
// Set the language of the OCR to Armenian
Ocr.Language = OcrLanguage.Armenian;
// Create an OCR input object with the path to the image
using (var Input = new OcrInput(@"images\Armenian.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all the text from the OCR result
var AllText = Result.Text;
// Output the result to the console or any other desired operation
Console.WriteLine(AllText);
}
}
}
' Ensure the necessary NuGet package is installed.
' PM> Install-Package IronOCR.Languages.Armenian
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Initialize the Tesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language of the OCR to Armenian
Ocr.Language = OcrLanguage.Armenian
' Create an OCR input object with the path to the image
Using Input = New OcrInput("images\Armenian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all the text from the OCR result
Dim AllText = Result.Text
' Output the result to the console or any other desired operation
Console.WriteLine(AllText)
End Using
End Sub
End Class