Canadian Aboriginal Alphabet OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

Mais 126 idiomas

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);
        }
    }
}
$vbLabelText   $csharpLabel
  • O código acima usa a classe IronOcr.IronTesseract para realizar OCR.
  • Ele configura OcrLanguage.CanadianAboriginal para especificar o modelo de idioma para texto Aborígene Canadense.
  • O objeto OcrInput carrega a imagem especificada no caminho.
  • O método Ocr.Read processa a imagem e retorna o texto reconhecido.
  • Por fim, o texto extraído é impresso no console.