Armenian OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET yazılımcılarının resimlerden ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir ve Ermenice dahil 126 dili destekler.
Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Armenian İçeriği
Bu paket, .NET için özel Ermenice OCR dillerini içerir:
- ErmeniceAlfabe
- ErmeniceAlfabeBest
- ErmeniceAlfabeFast
- Ermenice
- ErmeniceBest
- ErmeniceFast
İndirme
Ermenice Dil Paketi [Հայերեն]
Kurulum
Yapmamız gereken ilk şey, Ermenice OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Armenian
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Ermenice metin okur.
// 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

