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 für .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.
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
Imports IronOcr
Module Program
Sub Main()
' Instantiate an IronTesseract object
Dim Ocr As 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 As 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 ModuleDer 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.

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender Handbücher.