Amharic OCR in C# and .NET
Otras versiones de este documento:
IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el amárico.
Es una versión avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y que supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Amharic
Este paquete contiene 46 idiomas OCR for .NET:
- Amárico
- AmharicBest
- AmharicFast
Descargar
Paquete de idioma amárico [አማርኛ]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR amárico en tu proyecto .NET.
Install-Package IronOcr.Languages.Amharic
Ejemplo de código
Este ejemplo de código C# lee texto en amárico desde una imagen o documento 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
}
Imports IronOcr
' Install the necessary Amharic language package for IronOCR
' PM> Install-Package IronOcr.Languages.Amharic
Dim Ocr As 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 As 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

