Malayalam 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 126 dildeki, Malayalam dili dahil, resimler ve PDF belgelerinden metin okumalarına olanak 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.Malayalam İçerikleri

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

  • Malayalam
  • MalayalamBest
  • MalayalamFast
  • MalayalamAlphabet
  • MalayalamAlphabetBest
  • MalayalamAlphabetFast

İndirme

Malayalam Dili Paketi [മലയാളം]

Kurulum

Yapmamız gereken ilk şey, .NET projenize Malayalam OCR paketini yüklemektir.

Install-Package IronOcr.Languages.Malayalam

Kod Örneği

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

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Process the image to extract text using OCR
        using (var Input = new OcrInput(@"images\Malayalam.png"))
        {
            // Read the text from the input object
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text
            var AllText = Result.Text;

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

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Process the image to extract text using OCR
        using (var Input = new OcrInput(@"images\Malayalam.png"))
        {
            // Read the text from the input object
            var Result = Ocr.Read(Input);

            // Extract and store the recognized text
            var AllText = Result.Text;

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

Friend Class Program
	Shared Sub Main()
		' Create a new instance of IronTesseract
		Dim Ocr = New IronTesseract()

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

		' Process the image to extract text using OCR
		Using Input = New OcrInput("images\Malayalam.png")
			' Read the text from the input object
			Dim Result = Ocr.Read(Input)

			' Extract and store the recognized text
			Dim AllText = Result.Text

			' Output the recognized text
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • Bu kod, belirtilen bir görüntü üzerinde Malayalam dilinde OCR işlemi yapmak için IronOCR'yi kurmayı gösterir.
  • OcrInput nesnesi, görüntü dosyasını girmek için kullanılır.
  • Ocr.Read fonksiyonu görüntüyü işler ve metni çıkarır.
  • Çıkarılan metin AllText içinde depolanır ve konsola yazdırılır.