Cebuano OCR in C#

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 .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 für .NET:

  • Cebuano
  • CebuanoBest
  • CebuanoFast

Download

Cebuano Sprachpaket [Bisaya]

  • Herunterladen als Zip
  • Installieren mit NuGet

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);
        }
    }
}
$vbLabelText   $csharpLabel

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.