Malayalam OCR in C# and .NET
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le malayalam. Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.Malayalam
Ce package contient 126 langues OCR for .NET :
- Malayalam
- MalayalamMeilleur
- MalayalamFast -Alphabet malayalam -Alphabet malayalamBest -Alphabet malayalamFast
Télécharger
Pack de langue malayalam [Malayalam]
Installation
La première chose à faire est d'installer le package OCR malayalam dans votre projet .NET.
Install-Package IronOcr.Languages.Malayalam
Exemple de code
Cet exemple de code C# lit du texte en malayalam à partir d'une image ou d'un document PDF.
// 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
- Ce code illustre la configuration d'IronOCR pour effectuer une reconnaissance optique de caractères (OCR) sur une image spécifique en langue malayalam.
- L'objet
OcrInputest utilisé pour saisir le fichier image. - La fonction
Ocr.Readtraite l'image et extrait le texte. - Le texte extrait est stocké dans
AllTextet imprimé sur la console.

