Filipino 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 em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o filipino. É uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em velocidade e precisão.

Conteúdo do IronOcr.Idiomas.Filipino

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

  • Filipino
  • FilipinoBest
  • FilipinoFast

Baixar

Pacote de Língua Filipina [Língua Nacional das Filipinas]

Instalação

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

Install-Package IronOcr.Languages.Filipino

Exemplo de código

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

// Import the IronOcr namespace to use its classes and methods.
using IronOcr;

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

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

        // Create a new OcrInput object, specifying the path to the image
        // or document that contains the text you want to read.
        using (var Input = new OcrInput(@"images\Filipino.png"))
        {
            // Perform OCR on the input.
            var Result = Ocr.Read(Input);

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

            // Output the text to the console or use it in your application.
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace to use its classes and methods.
using IronOcr;

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

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

        // Create a new OcrInput object, specifying the path to the image
        // or document that contains the text you want to read.
        using (var Input = new OcrInput(@"images\Filipino.png"))
        {
            // Perform OCR on the input.
            var Result = Ocr.Read(Input);

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

            // Output the text to the console or use it in your application.
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel