Filipino OCR in C# and .NET

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

126 Weitere Sprachen

IronOCR ist eine C# Softwarekomponente, die es .NET Programmierern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Filipino, zu lesen. Es handelt sich um einen fortgeschrittenen Fork von Tesseract, der ausschließlich für .NET Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch in Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Filipino

Dieses Paket enthält 49 OCR-Sprachen für .NET:

  • Filipino
  • FilipinoBest
  • FilipinoFast

Download

Filipino-Sprachpaket style='white-space:default'>[Nationale Sprache der Philippinen]

Installation

Das erste, was wir tun müssen, ist unser Filipino OCR-Paket in Ihr .NET-Projekt zu installieren.

Install-Package IronOCR.Languages.Filipino

Beispielcode

Dieses C# Codebeispiel liest Filipino-Text aus einem Bild oder PDF-Dokument.

// 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