Syriac OCR in C# and .NET

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

126 Daha Fazla Dil

IronOCR, .NET kodlayıcıların Süryanice de dahil olmak üzere 126 dildeki görüntülerden 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.Syriac İçeriği

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

  • Süryanice
  • SüryaniceBest
  • SüryaniceFast
  • Süryanice Alfabe
  • SüryaniceAlfabeEnİyi
  • Süryanice AlfabeFast

İndir

Süryanice Dil Paketi [Syriac]

Kurulum

İlk adım, .NET projenize Süryanice OCR paketini yüklemektir.

Install-Package IronOcr.Languages.Syriac

Kod Örneği

Bu C# kod örneği, bir resim veya PDF belgesinden Süryanice metin okur.

// Import the IronOcr library
using IronOcr;

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

        // Set the language to Syriac
        Ocr.Language = OcrLanguage.Syriac;

        // Create an OCR input from an image file
        using (var Input = new OcrInput(@"images\Syriac.png"))
        {
            // Read the image and extract the text
            var Result = Ocr.Read(Input);

            // Retrieve the full recognized text
            var AllText = Result.Text;

            // Output the text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr library
using IronOcr;

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

        // Set the language to Syriac
        Ocr.Language = OcrLanguage.Syriac;

        // Create an OCR input from an image file
        using (var Input = new OcrInput(@"images\Syriac.png"))
        {
            // Read the image and extract the text
            var Result = Ocr.Read(Input);

            // Retrieve the full recognized text
            var AllText = Result.Text;

            // Output the text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Import the IronOcr library
Imports IronOcr

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

		' Set the language to Syriac
		Ocr.Language = OcrLanguage.Syriac

		' Create an OCR input from an image file
		Using Input = New OcrInput("images\Syriac.png")
			' Read the image and extract the text
			Dim Result = Ocr.Read(Input)

			' Retrieve the full recognized text
			Dim AllText = Result.Text

			' Output the text to the console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel

Bu örnekte:

  • OCR işlemini gerçekleştirmek için IronTesseract örneğini oluşturuyoruz.
  • Bu dil için doğru metin tanıma sağlanması amacıyla Ocr.Language, Syriac olarak ayarlanmıştır.
  • Süryanice metin içeren bir görüntüyü OcrInput içine yükler ve Ocr.Read kullanarak işleriz.
  • Tanınan metin daha sonra Result.Text içinde saklanır ve bu metin uygulamanızda daha sonra kullanılabilir.