C# と .NET でのマラヤーラム語 OCR
IronOCR は、.NET コーダーがマラヤーラム語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。 これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Malayalam の内容
このパッケージには、.NET 用の 126 の OCR 言語が含まれています。
- マラヤーラム語
- マラヤーラム語ベスト
- マラヤーラムファスト -マラヤーラム語アルファベット
- マラヤーラム語アルファベットベスト
- マラヤーラム語アルファベットファースト
ダウンロード
マラヤーラム語言語パック[マラヤーラム語]
インストール
最初に、マラヤーラム語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Malayalam
Code Example
この C# コード例は、画像または 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- このコードは、マラヤーラム語で指定された画像に対して OCR を実行するための IronOCR の設定方法を示しています。
OcrInputオブジェクトは画像ファイルの入力に使用されます。Ocr.Read関数は画像を処理してテキストを抽出します。- 抽出されたテキストは
AllTextに保存され、コンソールに出力されます。





