Irish OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden, İrlandaca dahil 126 dilde metin okumasını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Irish İçeriği
Bu paket, .NET için 40 OCR dilini içerir:
- İrlandaca
- İrlandacaBest
- İrlandacaFast
İndir
İrlandaca Dil Paketi [Gaeilge]
Kurulum
Yapmamız gereken ilk şey .NET projenize İrlandaca OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Irish
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden İrlandaca metni okur.
// Install the IronOCR Irish language package via NuGet:
// PM> Install-Package IronOcr.Languages.Irish
using IronOcr;
class IrishOcrExample
{
static void Main()
{
// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Irish for OCR processing
Ocr.Language = OcrLanguage.Irish;
// Using the OCR input, specify the path to the image containing Irish text
using (var Input = new OcrInput(@"images\Irish.png"))
{
// Perform OCR to read the Irish text from the image
var Result = Ocr.Read(Input);
// Get the recognized text as a string from the OCR result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Install the IronOCR Irish language package via NuGet:
// PM> Install-Package IronOcr.Languages.Irish
using IronOcr;
class IrishOcrExample
{
static void Main()
{
// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Irish for OCR processing
Ocr.Language = OcrLanguage.Irish;
// Using the OCR input, specify the path to the image containing Irish text
using (var Input = new OcrInput(@"images\Irish.png"))
{
// Perform OCR to read the Irish text from the image
var Result = Ocr.Read(Input);
// Get the recognized text as a string from the OCR result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Module IrishOcrExample
Sub Main()
' Create a new instance of the IronTesseract OCR engine
Dim Ocr As New IronTesseract()
' Set the language to Irish for OCR processing
Ocr.Language = OcrLanguage.Irish
' Using the OCR input, specify the path to the image containing Irish text
Using Input As New OcrInput("images\Irish.png")
' Perform OCR to read the Irish text from the image
Dim Result = Ocr.Read(Input)
' Get the recognized text as a string from the OCR result
Dim AllText As String = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Module
Bu örnekte, IronOCR kütüphanesinden IronTesseract sınıfı kullanılarak İrlanda dilinde yazılmış metin içeren bir görüntü üzerinde OCR yapılır. OcrInput nesnesi görüntüyü yüklemek için kullanılır ve Ocr.Read yöntemi görüntüyü işleyerek metni çıkarır. Sonuç metni daha sonra AllText değişkeninde saklanır ve konsola PRINT edilir.

