OCR amárico en C# y .NET
Other versions of this document:
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 para .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
}' 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




