Malayalam OCR in C# and .NET

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

126 Weitere Sprachen

IronOCR ist eine C#-Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Malayalam, zu lesen. Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich für .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.

Inhalt von IronOcr.Languages.Malayalam

Dieses Paket enthält 126 OCR-Sprachen für .NET:

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

Download

Malayalam Sprachpaket [മലയാളം]

  • Herunterladen als Zip
  • Installation mit NuGet

Installation

Das Erste, was wir tun müssen, ist das Malayalam OCR-Paket in Ihr .NET-Projekt zu installieren.

Install-Package IronOCR.Languages.Malayalam

Beispielcode

Dieses C#-Codebeispiel liest Malayalam-Text aus einem Bild oder PDF-Dokument.

// 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
  • Der Code zeigt, wie man IronOCR einrichtet, um OCR auf einem angegebenen Bild mit der Sprache Malayalam durchzuführen.
  • Das OcrInput-Objekt wird verwendet, um die Bilddatei einzugeben.
  • Die Funktion Ocr.Read verarbeitet das Bild und extrahiert den Text.
  • Der extrahierte Text wird in AllText gespeichert und in der Konsole ausgegeben.