OCR filipino en C# y .NET

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

126 idiomas más

IronOCR es un componente de software C# que permite a los programadores .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el filipino. Es una versión avanzada de Tesseract, construida exclusivamente para desarrolladores .NET y supera regularmente a otros motores Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Filipino

Este paquete contiene 49 idiomas OCR para .NET:

  • Filipino
  • FilipinoBest
  • FilipinoFast

Descargar

Paquete de Idioma Filipino [Idioma Nacional de Filipinas]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR Filipino en tu proyecto .NET.

Install-Package IronOCR.Languages.Filipino

Ejemplo de código

Este ejemplo de código C# lee texto en filipino de una imagen o 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);
        }
    }
}
' Import the IronOcr namespace to use its classes and methods.
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of the IronTesseract OCR engine.
		Dim 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 Input = New OcrInput("images\Filipino.png")
			' Perform OCR on the input.
			Dim Result = Ocr.Read(Input)

			' Extract the read text from the OCR result.
			Dim AllText = Result.Text

			' Output the text to the console or use it in your application.
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel