Scottish Gaelic OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Schottisch-Gälisch, zu lesen.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.ScottishGaelic
Dieses Paket enthält 67 OCR-Sprachen for .NET:
- SchottischGälisch
- SchottischGälischBest
- SchottischGälischSchnell
Download
Schottisch-Gälisch Sprachpaket [Gàidhlig]
Installation
Das erste, was wir tun müssen, ist, unser schottisch-gälisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.ScottishGaelic
Beispielcode
Dieses C#-Beispiel liest schottisch-gälischen Text aus einem Bild oder PDF-Dokument.
// 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
Der obige Code installiert und richtet einen OCR-Prozess unter Verwendung von IronOcr für die schottisch-gälische Sprache ein. Es führt eine optische Zeichenerkennung an dem angegebenen Bild ScottishGaelic.png durch und extrahiert den im Bild enthaltenen Text. Der extrahierte Text wird in der Variable AllText zur weiteren Verwendung oder Verarbeitung gespeichert.

