Filipino OCR in C# and .NET
IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen zu lesen, einschließlich Filipino. Es ist ein fortgeschrittener Fork von Tesseract, der exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Filipino
Dieses Paket enthält 49 OCR-Sprachen for .NET:
- Filipino
- FilipinoBest
- FilipinoFast
Download
Philippinisches Sprachpaket [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

