C# と .NET でのアッサム語 OCR
IronOCR は、.NET コーダーがアッサム語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。
これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Assamese の内容
このパッケージには、.NET 用の 49 個の OCR 言語が含まれています。
- アッサム語
- アッサムベスト
- アッサムファースト
ダウンロード
アッサム語言語パック[アッサム語]
インストール
最初に、 Assamese OCR パッケージを .NET プロジェクトにインストールする必要があります。
Install-Package IronOCR.Languages.Assamese
Code Example
この C# コード例は、画像または PDF ドキュメントからアッサム語のテキストを読み取ります。
// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese
using IronOcr;
class OCRExample
{
public void ReadAssameseText()
{
// Create an instance of IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese;
// Create an OCR input object with the specified image or PDF file
using (var Input = new OcrInput(@"images\Assamese.png"))
{
// Read the text from the input file
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}// Make sure to install the necessary package:
// PM> Install-Package IronOcr.Languages.Assamese
using IronOcr;
class OCRExample
{
public void ReadAssameseText()
{
// Create an instance of IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese;
// Create an OCR input object with the specified image or PDF file
using (var Input = new OcrInput(@"images\Assamese.png"))
{
// Read the text from the input file
var Result = Ocr.Read(Input);
// Retrieve the text from the OCR result
var AllText = Result.Text;
// Output the recognized text to the console
Console.WriteLine(AllText);
}
}
}' Make sure to install the necessary package:
' PM> Install-Package IronOcr.Languages.Assamese
Imports IronOcr
Friend Class OCRExample
Public Sub ReadAssameseText()
' Create an instance of IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Assamese
Ocr.Language = OcrLanguage.Assamese
' Create an OCR input object with the specified image or PDF file
Using Input = New OcrInput("images\Assamese.png")
' Read the text from the input file
Dim Result = Ocr.Read(Input)
' Retrieve the text from the OCR result
Dim AllText = Result.Text
' Output the recognized text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class- IronTesseract : これは OCR 操作を担当するメインクラスです。
- OcrLanguage.Assamese : OCR の言語を指定します。 この場合は、アッサム語に設定されています。
- OcrInput : このクラスは、テキストを抽出する画像または PDF を読み込むために使用されます。
- Result.Text : 画像または PDF から抽出された完全なテキストが含まれます。





