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ın Süryanice dahil olmak üzere 126 dilde görüntüler ve PDF belgelerinden metin okumasını sağlayan bir C# yazılım bileşenidir.

Tesseract'ın geliştirilmiş bir dalıdır, yalnızca .NET geliştiricileri için geliştirilmiştir ve hem hız hem de doğruluk bakımı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 dili içerir:

  • Süryanice
  • SüryaniceBest
  • SüryaniceFast
  • SüryaniceAlphabet
  • SüryaniceAlphabetBest
  • SüryaniceAlphabetFast

İndirme

Syriac Dil Paketi [Syriac]

Kurulum

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

Install-Package IronOcr.Languages.Syriac

Kod Örneği

Bu C# kod örneği, bir resim veya PDF belgesinden Süryanice metni 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şleme icin IronTesseract ornegini oluşturuyoruz.
  • Bu dil icin dogru metin tanimasini saglamak icin Ocr.Language Syriac olarak ayarlanir.
  • Süryanice metni iceren bir resmi OcrInput icine yukluyoruz ve Ocr.Read kullanarak isliyoruz.
  • Taninan metin daha sonra Result.Text icinde depolanir ve uygulamanizda daha da kullanilabilir.