Breton 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 bretão. 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 de IronOcr.Idiomas.Bretão

Este pacote contém 43 linguagens OCR for .NET:

  • Bretão
  • BretãoBest
  • BretãoFast

Baixar

Pacote de idioma bretão [brezhoneg]

Instalação

A primeira coisa que precisamos fazer é instalar nosso pacote OCR Breton em seu projeto .NET .

Install-Package IronOcr.Languages.Breton

Exemplo de código

Este exemplo de código C# lê texto em bretão de uma imagem ou documento PDF.

// Import the IronOCR namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Breton
        Ocr.Language = OcrLanguage.Breton;

        // Read text from a Breton image or PDF document
        using (var Input = new OcrInput(@"images\Breton.png"))
        {
            // Perform OCR on the input
            var Result = Ocr.Read(Input);

            // Extract text from the OCR result
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOCR namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Breton
        Ocr.Language = OcrLanguage.Breton;

        // Read text from a Breton image or PDF document
        using (var Input = new OcrInput(@"images\Breton.png"))
        {
            // Perform OCR on the input
            var Result = Ocr.Read(Input);

            // Extract text from the OCR result
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

Este exemplo demonstra como usar a biblioteca IronOCR para realizar OCR em uma imagem de texto bretão.

  • IronTesseract fornece a funcionalidade principal de OCR.
  • O OcrInput é criado com o caminho para a imagem que contém o texto em bretão.
  • O método Read processa a imagem de entrada e extrai o texto, que é então exibido no console.