Malayalam OCR in C# and .NET
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 for .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 for .NET:
- Malayalam
- MalayalamBest
- MalayalamFast
- MalayalamAlphabet
- MalayalamAlphabetBest
- MalayalamAlphabetFast
Download
Malayalam Sprachpaket [മലയാളം]
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
- Der Code zeigt, wie man IronOCR einrichtet, um OCR auf einem angegebenen Bild mit der Sprache Malayalam durchzuführen.
- Das Objekt
OcrInputdient zum Einlesen der Bilddatei. Die FunktionOcr.Readverarbeitet das Bild und extrahiert den Text. Der extrahierte Text wird inAllTextgespeichert und auf der Konsole ausgegeben.

