Scottish Gaelic OCR in C# and .NET
IronOCR, .NET kodlayıcıların İskoç Galce dahil olmak üzere 126 dildeki görüntülerden ve PDF belgelerinden metin okumaları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.ScottishGaelic İçeriği
Bu paket .NET için 67 OCR dili içerir:
- İskoç Galcesi
- İskoç GalcesiEn İyi
- İskoç Galcesi Hızlı
İndir
İskoç Galcesi Dil Paketi [Gàidhlig]
Kurulum
İlk adım, .NET projenize Scottish Gaelic OCR paketini yüklemek.
Install-Package IronOcr.Languages.ScottishGaelic
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden İskoç Galcesi metnini 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ç Galcesi dili için IronOCR kullanarak bir OCR işlemi yükler ve kurar. Belirtilen görüntü ScottishGaelic.png üzerinde optik karakter tanıma işlemi gerçekleştirir ve görüntüde bulunan metni çıkarır. Çıkarılan metin, daha sonra kullanılmak veya işlenmek üzere AllText değişkeninde saklanacaktır.

