Oriya 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 Oriya dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumalarına olanak tanıyan 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.Oriya İçeriği

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

  • Oriya
  • OriyaBest
  • OriyaFast
  • OriyaAlfabe
  • OriyaAlfabeBest
  • OriyaAlfabeFast

İndir

Oriya Dil Paketi [ଓଡଆ]

Kurulum

Yapmamız gereken ilk şey, .NET projenize Oriya OCR paketini yüklemek.

Install-Package IronOcr.Languages.Oriya

Kod Örneği

Bu C# kod örneği, bir Görüntü veya PDF belgesinden Oriya metnini okumaktadır.

// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate the IronTesseract engine
        var Ocr = new IronTesseract();

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

        // Define the input file path for the OCR
        using (var Input = new OcrInput(@"images\Oriya.png"))
        {
            // Perform OCR and obtain the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
using IronOcr;

class Program
{
    static void Main()
    {
        // Instantiate the IronTesseract engine
        var Ocr = new IronTesseract();

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

        // Define the input file path for the OCR
        using (var Input = new OcrInput(@"images\Oriya.png"))
        {
            // Perform OCR and obtain the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
' This example demonstrates how to use the IronOCR library to perform OCR on an Oriya language image.
Imports IronOcr

Friend Class Program
	Shared Sub Main()
		' Instantiate the IronTesseract engine
		Dim Ocr = New IronTesseract()

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

		' Define the input file path for the OCR
		Using Input = New OcrInput("images\Oriya.png")
			' Perform OCR and obtain the result
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text from the result
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract nesnesi, OCR'yi yapılandırmak ve gerçekleştirmek için kullanılır.
  • OCR dili, OcrLanguage.Oriya kullanılarak Oriya olarak ayarlanmıştır.
  • OcrInput, metin çıkarılması gereken görüntüyü veya belgeyi belirtmenizi sağlar.
  • Read() yöntemi OCR işlemini gerçekleştirir ve tanınan metnin çıkarılabileceği ve kullanılabileceği bir sonuç üretir.