Belarusian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Outras versões deste documento:

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 bielorrusso.

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.Belarusiano

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

  • Bielorrusso
  • BelarusianBest
  • BelarusianFast

Baixar

Pacote de idioma bielorrusso [беларуская мова]

Instalação

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

Install-Package IronOcr.Languages.Belarusian

Exemplo de código

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

// Import the IronOcr namespace to access OCR functionalities
using IronOcr;

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

        // Set the language to Belarusian for optimal recognition results
        Ocr.Language = OcrLanguage.Belarusian;

        // Define the input source: Image or PDF from a path
        using (var Input = new OcrInput(@"images\Belarusian.png"))
        {
            // Perform OCR to read the text
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace to access OCR functionalities
using IronOcr;

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

        // Set the language to Belarusian for optimal recognition results
        Ocr.Language = OcrLanguage.Belarusian;

        // Define the input source: Image or PDF from a path
        using (var Input = new OcrInput(@"images\Belarusian.png"))
        {
            // Perform OCR to read the text
            var Result = Ocr.Read(Input);

            // Extract the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel