Scottish Gaelic OCR in C# and .NET
IronOCR to komponent oprogramowania C# pozwalający programistom .NET czytać tekst z obrazów i dokumentów PDF w 126 językach, w tym w szkockim gaelickim.
Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.
Zawartość IronOcr.Languages.ScottishGaelic
Ten pakiet zawiera 67 języków OCR dla .NET:
- ScottishGaelic
- ScottishGaelicBest
- ScottishGaelicFast
Pobieranie
Scottish Gaelic Language Pack [Gàidhlig]
Instalacja
Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR dla szkockiego gaelickiego w projekcie .NET.
Install-Package IronOcr.Languages.ScottishGaelic
Przyklad kodu
Ten przykład kodu C# odczytuje tekst w języku szkockim gaelickim z obrazu lub dokumentu PDF.
// 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
Powyższy kod instaluje i konfiguruje proces OCR przy użyciu IronOcr dla języka szkockiego gaelickiego. Wykonuje rozpoznawanie optyczne znaków na określonym obrazie ScottishGaelic.png i wyodrębnia tekst zawarty w obrazie. Wyodrębniony tekst zostanie zapisany w zmiennej AllText do dalszego wykorzystania lub przetwarzania.

