Kazakh 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 C# que permite aos desenvolvedores .NET ler texto a partir de imagens e documentos PDF em 126 idiomas, incluindo o cazaque.

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údos de IronOcr.Languages.Kazakh

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

  • Cazaque
  • KazakhBest
  • KazakhFast

Baixar

Pacote de Idioma Cazaque [қазақ тілі]

Instalação

A primeira coisa que temos que fazer é instalar nosso pacote OCR de Kazakh no seu projeto .NET.

Install-Package IronOcr.Languages.Kazakh

Exemplo de código

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

// Import the IronOcr namespace
using IronOcr;

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

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

        // Use a 'using' statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Kazakh.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Retrieve and store the recognized text
            var AllText = Result.Text;

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

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

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

        // Use a 'using' statement to manage resources efficiently
        using (var Input = new OcrInput(@"images\Kazakh.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Retrieve and store the recognized text
            var AllText = Result.Text;

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

Este código demonstra como realizar o Reconhecimento Óptico de Caracteres (OCR) em um arquivo de imagem chamado Kazakh.png usando o IronOCR configurado para o idioma cazaque. O texto reconhecido é extraído e impresso no console.