C# と .NET でのアムハラ語 OCR

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR は、.NET コーダーがアムハラ語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることを可能にする C# ソフトウェア コンポーネントです。

これは、特に.NET開発者向けに構築されたTesseractの高度なフォークであり、速度と精度の両方で他のTesseractエンジンを定期的に上回ります。

IronOcr.Languages.Amharic の内容

このパッケージには、.NET 用の 46 の OCR 言語が含まれています。

  • アムハラ語
  • アムハラ語ベスト
  • アムハラ語のファースト

ダウンロード

アムハラ語言語パック[አማርኛ]

  • Zip形式でダウンロード
  • NuGetでインストール

インストール

最初に、アムハラ語OCR パッケージを .NET プロジェクトにインストールする必要があります。

Install-Package IronOCR.Languages.Amharic

Code Example

この C# コード例は、画像または PDF ドキュメントからアムハラ語のテキストを読み取ります。

// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOCR.Languages.Amharic
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic

// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Get the extracted text from the OCR result
    // The variable 'AllText' contains the text in Amharic read from the image
}
// Install the necessary Amharic language package for IronOCR
// PM> Install-Package IronOCR.Languages.Amharic
using IronOcr;

var Ocr = new IronTesseract(); // Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic; // Set the OCR language to Amharic

// Read text from an image
using (var Input = new OcrInput(@"images\Amharic.png")) // Specify the path to the image file
{
    var Result = Ocr.Read(Input); // Perform OCR on the input image
    var AllText = Result.Text; // Get the extracted text from the OCR result
    // The variable 'AllText' contains the text in Amharic read from the image
}
' Install the necessary Amharic language package for IronOCR
' PM> Install-Package IronOCR.Languages.Amharic
Imports IronOcr

Private Ocr = New IronTesseract() ' Create a new instance of the IronTesseract OCR engine
Ocr.Language = OcrLanguage.Amharic ' Set the OCR language to Amharic

' Read text from an image
Using Input = New OcrInput("images\Amharic.png") ' Specify the path to the image file
	Dim Result = Ocr.Read(Input) ' Perform OCR on the input image
	Dim AllText = Result.Text ' Get the extracted text from the OCR result
	' The variable 'AllText' contains the text in Amharic read from the image
End Using
$vbLabelText   $csharpLabel