Maltese 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 dilde, Maltaca dahil olmak üzere, resimlerden ve PDF belgelerinden metin okuması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.Maltese İçeriği

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

  • Maltaca
  • MaltacaBest
  • MaltacaHızlı

İndir

Maltaca Dil Paketi [Malti]

Kurulum

Maltaca OCR paketimizi .NET projenize kurmamız gereken ilk şeydir.

Install-Package IronOcr.Languages.Maltese

Kod Örneği

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

// Import the IronOcr namespace
using IronOcr;

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

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

        // Define the input image or PDF document
        using (var Input = new OcrInput(@"images\Maltese.png"))
        {
            // Perform OCR on the input and retrieve the result
            var Result = Ocr.Read(Input);

            // Get all the recognized text
            var AllText = Result.Text;

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

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

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

        // Define the input image or PDF document
        using (var Input = new OcrInput(@"images\Maltese.png"))
        {
            // Perform OCR on the input and retrieve the result
            var Result = Ocr.Read(Input);

            // Get all the recognized text
            var AllText = Result.Text;

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

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

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

		' Define the input image or PDF document
		Using Input = New OcrInput("images\Maltese.png")
			' Perform OCR on the input and retrieve the result
			Dim Result = Ocr.Read(Input)

			' Get all the recognized text
			Dim AllText = Result.Text

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

Bu örnekte, Maltese.png adlı bir görüntü dosyasından metin okumak için IronTesseract OCR motoru kullanılmaktadır. Tanınan metin daha sonra konsola yazdırılır. Görüntü yolunun doğru olduğundan ve görüntü dosyasının OCR'nin etkili çalışabilmesi için Maltaca metni içerdiğinden emin olun. using ifadesi, kaynakların artık ihtiyaç duyulmadığında düzgün bir şekilde imha edilmesini sağlar.