Cebuano OCR in C
IronOCR ist eine C# Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Cebuano, zu lesen. Es ist ein fortgeschrittener Fork von Tesseract, der exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig in Bezug auf Geschwindigkeit und Genauigkeit andere Tesseract-Engines übertrifft.
Inhalt von IronOcr.Languages.Cebuano
Dieses Paket enthält 46 OCR-Sprachen for .NET:
- Cebuano
- CebuanoBest
- CebuanoFast
Download
Cebuano Sprachpaket [Bisaya]
Installation
Das Erste, was wir tun müssen, ist, unser Cebuano OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Cebuano
Beispielcode
Dieses C# Code-Beispiel liest Cebuano-Text aus einem Bild oder PDF-Dokument.
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
// Install the IronOCR Cebuano language package via NuGet package manager
// PM> Install-Package IronOcr.Languages.Cebuano
using IronOcr;
class Program
{
static void Main()
{
// Instantiate an IronTesseract object
var Ocr = new IronTesseract();
// Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano;
// Define the input source containing the image or PDF with Cebuano text
using (var Input = new OcrInput(@"images\Cebuano.png"))
{
// Perform OCR to read the text from the input source
var Result = Ocr.Read(Input);
// Extract and display the recognized text
var AllText = Result.Text;
Console.WriteLine(AllText);
}
}
}
' Install the IronOCR Cebuano language package via NuGet package manager
' PM> Install-Package IronOcr.Languages.Cebuano
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Instantiate an IronTesseract object
Dim Ocr = New IronTesseract()
' Set the OCR language to Cebuano
Ocr.Language = OcrLanguage.Cebuano
' Define the input source containing the image or PDF with Cebuano text
Using Input = New OcrInput("images\Cebuano.png")
' Perform OCR to read the text from the input source
Dim Result = Ocr.Read(Input)
' Extract and display the recognized text
Dim AllText = Result.Text
Console.WriteLine(AllText)
End Using
End Sub
End Class
Der obige Code-Ausschnitt demonstriert, wie IronOCR genutzt wird, um Cebuano-Text aus einem Bild mit C# und .NET zu lesen. Es beginnt mit der Einrichtung der OCR-Engine und der Angabe der Cebuano-Sprache, verarbeitet dann eine Bilddatei und gibt den extrahierten Text aus. Stellen Sie sicher, dass der Bildpfad für Ihre Projektumgebung korrekt angegeben ist.

