Scottish Gaelic OCR in C# and .NET
IronOCR, .NET kodlayıcılarının İskoç Galcesi dahil 126 dili içeren görüntülerden ve PDF belgelerinden metin okumalarına olanak tanıyan bir C# yazılım bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.ScottishGaelic içeriği
Bu paket, .NET için 67 OCR dilini içerir:
- İskoç Galcesi
- İskoç GalcesiBest
- İskoç GalcesiFast
İndirme
İskoç Galce Dil Paketi [Gàidhlig]
Kurulum
Yapmamız gereken ilk şey, İskoç Galcesi OCR paketimizi .NET projenize kurmaktır.
Install-Package IronOcr.Languages.ScottishGaelic
Kod Örneği
Bu C# kod örneği, bir Görüntüden veya PDF belgesinden İskoç Galcesi metin okur.
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;
// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
// Perform OCR on the input and obtain the result
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
}
// PM> Install-Package IronOcr.Languages.ScottishGaelic
using IronOcr;
// Create an instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic;
// Create an OcrInput object with the specified image or PDF file
using (var Input = new OcrInput(@"images\ScottishGaelic.png"))
{
// Perform OCR on the input and obtain the result
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
}
' PM> Install-Package IronOcr.Languages.ScottishGaelic
Imports IronOcr
' Create an instance of the IronTesseract class
Private Ocr = New IronTesseract()
' Set the language to Scottish Gaelic
Ocr.Language = OcrLanguage.ScottishGaelic
' Create an OcrInput object with the specified image or PDF file
Using Input = New OcrInput("images\ScottishGaelic.png")
' Perform OCR on the input and obtain the result
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
End Using
Yukarıdaki kod, İskoç Galce dili için IronOcr kullanarak bir OCR sürecini kurar ve yürütür. Belirtilen resim ScottishGaelic.png uzerinde optik karakter tanima işlemi yapar ve resimde bulunan metni cikarir. Cikarilan metin daha fazla kullanim veya işleme icin AllText degiskeninde depolanacaktir.

