Malay OCR in C# and .NET

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

Mais 126 idiomas

IronOCR é um componente de software C# que permite aos programadores .NET lerem texto de imagens e documentos PDF em 126 idiomas, incluindo o malaio.

É um fork avançado do Tesseract, construído exclusivamente para desenvolvedores .NET e supera regularmente outros motores Tesseract em termos de velocidade e precisão.

Conteúdo do IronOcr.Languages.Malay

Este pacote contém 40 idiomas de OCR for .NET:

  • Malaio
  • MalaioBest
  • MalaioFast

Baixar

Pacote de Idioma Malaio [bahasa Melayu]

Instalação

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

Install-Package IronOcr.Languages.Malay

Exemplo de código

Este exemplo de código C# lê texto malaio a partir de uma imagem ou documento PDF.

// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use a using statement to ensure the OcrInput is properly disposed of
        using (var Input = new OcrInput(@"images\Malay.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

            // Output the recognized text (optional)
            Console.WriteLine(AllText);
        }
    }
}
// This example demonstrates how to read Malay text using IronOcr.

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract class
        var Ocr = new IronTesseract();

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

        // Use a using statement to ensure the OcrInput is properly disposed of
        using (var Input = new OcrInput(@"images\Malay.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text from the OCR result
            string AllText = Result.Text;

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