Cebuano OCR in C

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

126 Daha Fazla Dil

IronOCR, C# yazılım bileşeni olarak, .NET kodlayıcılarının Cebuano da dahil olmak üzere 126 dilde görüntülerden ve PDF belgelerinden metin okumasını sağlar. Bu, .NET geliştiricileri için özel olarak oluşturulmuş Tesseract'ın gelişmiş bir çatısıdır ve hem hız hem de doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Cebuano İçeriği

Bu paket, .NET için 46 OCR dilini içerir:

  • Cebuano
  • CebuanoEnİyi
  • CebuanoHızlı

İndir

Cebuano Dil Paketi [Bisaya]

Kurulum

Yapmamız gereken ilk şey, Cebuano OCR paketimizi .NET projenize yüklemektir.

Install-Package IronOcr.Languages.Cebuano

Kod Örneği

Bu C# kod örneği, bir Görüntü veya PDF belgesinden Cebuano metnini okur.

// 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

Yukarıdaki kod parçacığı, IronOCR kullanarak C# ve .NET ile bir görüntüden Cebuano metni okumanın nasıl yapılacağını gösterir. OCR motorunu kurarak ve Cebuano dilini belirterek başlar, ardından bir resim dosyasını işler ve çıkartılan metni çıktılar. Görüntü yolunun proje ortamınıza doğru belirtildiğinden emin olun.