Cebuano OCR in C

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

126 wiecej jeżyków

IronOCR to komponent oprogramowania C# pozwalający programistom .NET odczytywać teksty z obrazów i dokumentów PDF w 126 językach, w tym Cebuano. Jest to zaawansowane rozwidlenie Tesseract, zbudowane wyłącznie dla programistów .NET i regularnie przewyższające inne silniki Tesseract zarówno pod względem szybkości, jak i dokładności.

Zawartość IronOcr.Languages.Cebuano

Ten pakiet zawiera 46 języków OCR dla .NET:

  • Cebuano
  • CebuanoBest
  • CebuanoFast

Pobieranie

Cebuano Language Pack [Bisaya]

Instalacja

Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie pakietu OCR Cebuano do twojego projektu .NET.

Install-Package IronOcr.Languages.Cebuano

Przyklad kodu

Ten przykład kodu C# odczytuje tekst w języku Cebuano z obrazu lub dokumentu PDF.

// 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
$vbLabelText   $csharpLabel

Powyższa próbka kodu demonstruje, jak używać IronOCR do odczytywania tekstu w języku Cebuano z obrazu za pomocą C# i .NET. Rozpoczyna się od skonfigurowania silnika OCR i określenia języka Cebuano, następnie przetwarza plik obrazu i wyprowadza wyodrębniony tekst. Upewnij się, że ścieżka do obrazu jest poprawnie określona dla środowiska twojego projektu.