Tigrinya OCR in C# and .NET
Curtis Chau
更新日: 2026年8月2日
IronOCR は、.NET コーダーがティグリニャ語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。 これはTesseractの高度なフォークであり、.NET開発者専用に構築され、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。
IronOcr.Languages.Tigrinya の内容
このパッケージには、.NET 用の 49 個の OCR 言語が含まれています。
- ティグリニャ語
- ティグリニャ語ベスト
- ティグリニャ語Fast
ダウンロード
ティグリニャ言語パック[ティグリニャ]
インストール
最初に、ティグリニャ語OCR パッケージを .NET プロジェクトにインストールする必要があります。
Code Example
この C# コード例は、画像または PDF ドキュメントからティグリニャ語のテキストを読み取ります。
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract to perform OCR
var Ocr = new IronTesseract();
// Set the OCR language to Tigrinya
Ocr.Language = OcrLanguage.Tigrinya;
// Using statement ensures the OcrInput object is disposed of after use
using (var Input = new OcrInput(@"images\Tigrinya.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Extract all text recognized in the image and store it in a variable
var AllText = Result.Text;
// Output the extracted text
Console.WriteLine(AllText);
}
}
}Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract to perform OCR
Dim Ocr = New IronTesseract()
' Set the OCR language to Tigrinya
Ocr.Language = OcrLanguage.Tigrinya
' Using statement ensures the OcrInput object is disposed of after use
Using Input = New OcrInput("images\Tigrinya.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all text recognized in the image and store it in a variable
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End ClassImports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract to perform OCR
Dim Ocr = New IronTesseract()
' Set the OCR language to Tigrinya
Ocr.Language = OcrLanguage.Tigrinya
' Using statement ensures the OcrInput object is disposed of after use
Using Input = New OcrInput("images\Tigrinya.png")
' Perform OCR on the input image
Dim Result = Ocr.Read(Input)
' Extract all text recognized in the image and store it in a variable
Dim AllText = Result.Text
' Output the extracted text
Console.WriteLine(AllText)
End Using
End Sub
End Class説明
- IronTesseract: これはIronOCRからの特殊なクラスで、テキストの認識を行います。
- Ocr.Language: OCRエンジンが使用する言語を設定します。このインスタンスではティグリニアに設定されています。
- OcrInput: 入力ソースを表し、この場合は画像で、テキストに変換されます。
Ocr.Read(Input): 指定された入力に対してOCRを実行し、結果を返します。- Result.Text: OCR処理後に入力画像から抽出されたテキストを含みます。
Console.WriteLine(AllText): 抽出されたテキストをコンソールに出力します。 この行はオプションであり、コンソール出力が不要な場合は削除できます。
テクニカルライター
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。