Canadian Aboriginal Alphabet OCR in C# and .NET
IronOCR is a C# software component allowing .NET coders to read text from images and PDF documents in 126 languages, including the Canadian Aboriginal Alphabet.
It is an advanced fork of Tesseract, built exclusively for .NET developers and regularly outperforms other Tesseract engines for both speed and accuracy.
Contents of IronOcr.Languages.CanadianAboriginal
This package contains 103 OCR languages for .NET:
- CanadianAboriginalAlphabet
- CanadianAboriginalAlphabetBest
- CanadianAboriginalAlphabetFast
Download
Canadian Aboriginal Alphabet Language Pack [Canadian First Nations]
Installation
The first thing we have to do is install our Canadian Aboriginal Alphabet OCR package to your .NET project.
Install-Package IronOCR.Languages.CanadianAboriginal
Code Example
This C# code example reads Canadian Aboriginal Alphabet text from an Image or PDF document. It uses the IronOCR library to perform optical character recognition.
// 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
- The above code uses the
IronOcr.IronTesseract
class to perform OCR. - It sets
OcrLanguage.CanadianAboriginal
to specify the language model for Canadian Aboriginal text. - The
OcrInput
object loads the image specified in the path. - The
Ocr.Read
method processes the image and returns the recognized text. - Finally, the text extracted is printed to the console.