Armenian 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, 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);
}
}
}
Imports IronOcr
Module Program
Sub Main()
' Initialize the Tesseract OCR engine
Dim Ocr As 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 Input As New OcrInput("images\Armenian.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all the text from the OCR result
Dim AllText = Result.Text
' Output the result to the console or any other desired operation
Console.WriteLine(AllText)
End Using
End Sub
End Module

