Canadian Aboriginal Alphabet OCR in C# and .NET
O IronOCR é um componente de software C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o alfabeto aborígine canadense.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdo do IronOcr.Idiomas.Aborígenes Canadenses
Este pacote contém 103 linguagens OCR for .NET:
- Alfabeto Aborígine Canadense
- Melhor Alfabeto Aborígine Canadense
- CanadianAboriginalAlfabetoRápido
Baixar
Pacote de Alfabeto Aborígine Canadense [Primeiras Nações Canadenses]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote OCR do alfabeto aborígine canadense em seu projeto .NET .
Install-Package IronOcr.Languages.CanadianAboriginal
Exemplo de código
Este exemplo de código C# lê o texto do alfabeto aborígine canadense a partir de uma imagem ou documento PDF. Ele utiliza a biblioteca IronOCR para realizar o reconhecimento óptico de caracteres.
// 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
- O código acima usa a classe
IronOcr.IronTesseractpara realizar OCR. - Ele configura
OcrLanguage.CanadianAboriginalpara especificar o modelo de idioma para texto Aborígene Canadense. - O objeto
OcrInputcarrega a imagem especificada no caminho. - O método
Ocr.Readprocessa a imagem e retorna o texto reconhecido. - Por fim, o texto extraído é impresso no console.

