Amharic 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 Amharic.
It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines in both speed and accuracy.
Contents of IronOcr.Languages.Amharic
This package contains 46 OCR languages for .NET:
- Amharic
- AmharicBest
- AmharicFast
Download
Amharic Language Pack [አማርኛ]
Installation
The first thing we have to do is install our Amharic OCR package to your .NET project.
Install-Package IronOCR.Languages.Amharic
Code Example
This C# code example reads Amharic text from an image or PDF document.
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOCR.Languages.Amharic
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic
// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Get the extracted text from the OCR result
// The variable 'AllText' contains the text in Amharic read from the image
}
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOCR.Languages.Amharic
using IronOcr;
var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic
// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
var Result = Ocr.Read(Input); // Perform OCR on the input image
var AllText = Result.Text; // Get the extracted text from the OCR result
// The variable 'AllText' contains the text in Amharic read from the image
}
' Install the necessary Amharic language package for IronOCR
' PM> Install-Package IronOCR.Languages.Amharic
Imports IronOcr
Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic ' Set the OCR language to Amharic
' Read text from an image
Using Input = New OcrInput("images\Amharic.png") ' Specify the path to the image file
Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
Dim AllText = Result.Text ' Get the extracted text from the OCR result
' The variable 'AllText' contains the text in Amharic read from the image
End Using