OCR armenio 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, incluyendo el armenio.
Es una derivación avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET, y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.
Contenido de IronOcr.Languages.Armenian
Este paquete contiene varios idiomas OCR específicos para armenio en .NET:
- ArmenianAlphabet
- ArmenianAlphabetBest
- ArmenianAlphabetFast
- Armenian
- ArmenianBest
- ArmenianFast
Descargar
Paquete de idiomas en armenio [Հայերեն]
Instalación
Lo primero que tenemos que hacer es instalar nuestro paquete OCR de Armenio en tu proyecto .NET.
Install-Package IronOCR.Languages.Armenian
Ejemplo de código
Este ejemplo de código en C# lee texto en armenio de una imagen o documento PDF.
// 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);
}
}
}




