Yoruba OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Bu belgenin diğer versiyonları:

IronOCR, .NET geliştiricilerinin Yoruba dahil olmak üzere 126 dilde resimlerden ve PDF belgelerinden metin okumasına olanak tanıyan bir C# yazılım bileşenidir. Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.

IronOcr.Languages.Yoruba İçeriği

Bu paket, .NET için 43 OCR dili içerir:

  • Yoruba
  • YorubaBest
  • YorubaFast

İndir

Yoruba Dil Paketi [Yorùbá]

Kurulum

İlk göreviniz, .NET projenize Yoruba OCR paketini yüklemektir.

Install-Package IronOcr.Languages.Yoruba

Kod Örneği

Bu C# kodu örneği, bir resim veya PDF belgesinden Yoruba metin okur.

// Remember to install the package first:
// PM> Install-Package IronOcr.Languages.Yoruba

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Yoruba
        Ocr.Language = OcrLanguage.Yoruba;

        // Specify the image or PDF file to read
        using (var Input = new OcrInput(@"images\Yoruba.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine("Recognized Text: ");
            Console.WriteLine(AllText);
        }
    }
}
// Remember to install the package first:
// PM> Install-Package IronOcr.Languages.Yoruba

using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the OCR language to Yoruba
        Ocr.Language = OcrLanguage.Yoruba;

        // Specify the image or PDF file to read
        using (var Input = new OcrInput(@"images\Yoruba.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine("Recognized Text: ");
            Console.WriteLine(AllText);
        }
    }
}
' Remember to install the package first:
' PM> Install-Package IronOcr.Languages.Yoruba

Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Create a new instance of the IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Yoruba
		Ocr.Language = OcrLanguage.Yoruba

		' Specify the image or PDF file to read
		Using Input = New OcrInput("images\Yoruba.png")
			' Perform OCR on the input file
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine("Recognized Text: ")
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

Kod içindeki yorumlar, dilden çıkarılan ve tanınan metni yazdırmaya kadar her adımı açıklar. Bu örnek, IronOCR kullanarak Yoruba dilini belirterek bir görüntü veya PDF dosyasını işleyecek ve Yoruba metnini okumaya odaklanır.