OCR für das kanadische Aborigine-Silbenalphabet in C# und .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 Aboriginal-Alphabets.
Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv für .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 für .NET:
- CanadianAboriginalAlphabet
- CanadianAboriginalAlphabetBest
- CanadianAboriginalAlphabetFast
Download
Sprachpaket für das kanadische Aboriginal-Alphabet [Kanadische First Nations]
Installation
Als Erstes installieren wir das OCR-Paket Kanadisches Aboriginal-Alphabet in Ihrem .NET-Projekt.
Beispielcode
Dieses C#-Codebeispiel liest Text im kanadischen Aboriginal-Alphabet aus 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
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' 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
IronOcr.IronTesseract-Klasse, um OCR durchzuführen. - Es legt
OcrLanguage.CanadianAboriginalfest, um das Sprachmodell für Texte im kanadischen Aboriginal-Alphabet anzugeben. - Das
OcrInput-Objekt lädt das im Pfad angegebene Bild. - Die
Ocr.Read-Methode verarbeitet das Bild und gibt den erkannten Text zurück. - Schließlich wird der extrahierte Text in der Konsole ausgegeben.
Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender Handbücher.