Greek Alphabet 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 kodlayıcılarının 126 dil, Yunan Alfabesi dahil, içerisinden resimler ve PDF belgelerinden metin okumalarını sağlayan 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.Greek İçeriği

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

  • Yunanca
  • YunancaBest
  • YunancaFast
  • Yunan Alfabesi
  • Yunan AlfabesiBest
  • Yunan AlfabesiFast

İndir

Yunan Alfabesi Dil Paketi [ελληνικά]

Kurulum

İlk adım, .NET projenize Greek Alphabet OCR paketini kurmanızdır.

Install-Package IronOcr.Languages.Greek

Kod Örneği

Bu C# kod örneği, bir resim veya PDF belgesinden Yunan Alfabesi metni okur.

// Import the IronOcr namespace
using IronOcr;

class GreekOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

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

        // Load the image or PDF containing Greek text
        using (var Input = new OcrInput(@"images\Greek.png"))
        {
            // Perform OCR and get the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            System.Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class GreekOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

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

        // Load the image or PDF containing Greek text
        using (var Input = new OcrInput(@"images\Greek.png"))
        {
            // Perform OCR and get the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized text
            System.Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr namespace
Imports IronOcr

Friend Class GreekOcrExample
	Shared Sub Main()
		' Initialize the IronTesseract OCR engine
		Dim Ocr = New IronTesseract()

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

		' Load the image or PDF containing Greek text
		Using Input = New OcrInput("images\Greek.png")
			' Perform OCR and get the result
			Dim Result = Ocr.Read(Input)

			' Extract all recognized text
			Dim AllText = Result.Text

			' Output the recognized text
			System.Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • IronTesseract: Bu sınıf OCR işlemini gerçekleştirmekten sorumludur.
  • OcrInput: Bu sınıf, OCR işleme için görüntüleri veya PDF dosyalarını yüklemek için kullanılır.
  • Ocr.Read(): Girdi verileri üzerinde OCR'yı gerçekleştirmek ve tanınan metni sağlamak için yöntem.

Bu kodu çalıştırmadan önce, IronOCR kütüphanesi ve Yunanca dil paketi .NET projenize doğru şekilde yüklendiğinden emin olun. Bu kod, images/Greek.png konumunda bulunan görüntüden çıkarılan metni çıktılayacaktır.