Malayalam OCR in C# and .NET
IronOCR, .NET kodlayıcılarının 126 dilde, Malayalam 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.Malayalam İçeriği
Bu paket, .NET için 126 OCR dilini içermektedir:
- Malayalam
- MalayalamEnİyi
- MalayalamHızlı
- MalayalamAlfabesi
- MalayalamAlfabesiEnİyi
- MalayalamAlfabesiHızlı
İndir
Malayalam Dil Paketi [മലയാളം]
Kurulum
Malayalam OCR paketini .NET projenize kurmamız gereken ilk şeydir.
Install-Package IronOcr.Languages.Malayalam
Kod Örneği
Bu C# kod örneği, bir Resim veya PDF belgesinden Malayalam metin 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
- Kod, Malayalam dili ile belirli bir görüntü üzerinde OCR yapmak için IronOCR kurulumu gösterir.
OcrInputnesnesi, görüntü dosyasını girmek için kullanılır.Ocr.Readişlevi, görüntüyü işler ve metni çıkarır.- Çıkarılan metin
AllTextiçinde saklanır ve konsola PRINT edilir.

