Cebuano OCR in C#

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 em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o cebuano. É 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.Cebuano

Este pacote contém 46 linguagens de OCR for .NET:

  • Cebuano
  • CebuanoMelhor
  • CebuanoFast

Baixar

Pacote de Idiomas Cebuano [Bisaya]

Instalação

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

Install-Package IronOcr.Languages.Cebuano

Exemplo de código

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

// Install the IronOCR Cebuano language package via NuGet package manager 
// PM> Install-Package IronOcr.Languages.Cebuano

using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate an IronTesseract object
        var Ocr = new IronTesseract();

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

        // Define the input source containing the image or PDF with Cebuano text
        using (var Input = new OcrInput(@"images\Cebuano.png"))
        {
            // Perform OCR to read the text from the input source
            var Result = Ocr.Read(Input);

            // Extract and display the recognized text
            var AllText = Result.Text;
            Console.WriteLine(AllText);
        }
    }
}
// Install the IronOCR Cebuano language package via NuGet package manager 
// PM> Install-Package IronOcr.Languages.Cebuano

using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate an IronTesseract object
        var Ocr = new IronTesseract();

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

        // Define the input source containing the image or PDF with Cebuano text
        using (var Input = new OcrInput(@"images\Cebuano.png"))
        {
            // Perform OCR to read the text from the input source
            var Result = Ocr.Read(Input);

            // Extract and display the recognized text
            var AllText = Result.Text;
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

O trecho de código acima demonstra como usar o IronOCR para ler texto em cebuano a partir de uma imagem usando C# e .NET. O processo começa configurando o mecanismo de OCR e especificando o idioma cebuano, depois processa um arquivo de imagem e gera o texto extraído. Certifique-se de que o caminho da imagem esteja especificado corretamente para o ambiente do seu projeto.