Armenian OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die es .NET-Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Armenisch, zu lesen.
Es ist eine fortgeschrittene Abzweigung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch in Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Armenian
Dieses Paket enthält mehrere OCR-Sprachen, die spezifisch für Armenisch in .NET sind:
- ArmenianAlphabet
- ArmenianAlphabetBest
- ArmenianAlphabetFast
- Armenian
- ArmenianBest
- ArmenianFast
Download
Armenisches Sprachpaket [Հայերեն]
Installation
Das Erste, was wir tun müssen, ist unser Armenisch OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Armenian
Beispielcode
Dieses C#-Codebeispiel liest armenischen Text aus einem Bild- oder PDF-Dokument.
// 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

