Canadian Aboriginal Alphabet OCR in C# and .NET
IronOCR ist eine C# .NET-Komponente, die es Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen zu lesen, einschließlich des kanadischen Ureinwohneralphabets.
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.
Inhalte von IronOcr.Languages.CanadianAboriginal
Dieses Paket enthält 103 OCR-Sprachen for .NET:
- KanadischesAboriginalAlphabet
- KanadischesAboriginalAlphabetBest
- KanadischesAboriginalAlphabetFast
Download
Kanadisches Aboriginal-Alphabet Sprachpaket [Kanadische Erste Nationen]
Installation
Das Erste, was wir tun müssen, ist unser Kanadisches Aboriginal-Alphabet OCR-Paket zu Ihrem .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.CanadianAboriginal
Beispielcode
Dieses C#-Codebeispiel liest Kanadisches Aboriginal-Alphabet Text von einem Bild oder PDF-Dokument. Es verwendet die IronOCR-Bibliothek, um optische Zeichenerkennung durchzuführen.
// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal;
// Provide the path to the image or PDF for OCR processing
using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Install the IronOCR package via NuGet
// PM> Install-Package IronOcr.Languages.CanadianAboriginal
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal;
// Provide the path to the image or PDF for OCR processing
using (var Input = new OcrInput(@"images\CanadianAboriginal.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' Install the IronOCR package via NuGet
' PM> Install-Package IronOcr.Languages.CanadianAboriginal
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Canadian Aboriginal
Ocr.Language = OcrLanguage.CanadianAboriginal
' Provide the path to the image or PDF for OCR processing
Using Input = New OcrInput("images\CanadianAboriginal.png")
' Perform OCR on the input file
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Der obige Code verwendet die Klasse
IronOcr.IronTesseractzur OCR-Funktion. - Es setzt
OcrLanguage.CanadianAboriginal, um das Sprachmodell für kanadische indigene Texte festzulegen. - Das Objekt
OcrInputlädt das im Pfad angegebene Bild. Die MethodeOcr.Readverarbeitet das Bild und gibt den erkannten Text zurück. - Schließlich wird der extrahierte Text in der Konsole ausgegeben.

