OCR amharique 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 l'amharique.

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.Langues.Amharique

Ce package contient 46 langues OCR pour .NET :

  • Amharique
  • AmharicBest
  • AmharicFast

Télécharger

Pack de langue amharique [አማርኛ]

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

Installation

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

Install-Package IronOCR.Languages.Amharic

Exemple de code

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

// 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
$vbLabelText   $csharpLabel