C# と .NET でのエチオピア語アルファベット OCR

This article was translated from English: Does it need improvement?
Translated
View the article in English

他126の言語

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

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

IronOcr.Languages.Ethiopic の内容

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

  • エチオピア語アルファベット
  • エチオピア語アルファベットベスト
  • エチオピア語アルファベット高速

ダウンロード

エチオピア語アルファベット言語パック[Ge'ez]

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

インストール

最初に、エチオピア語アルファベットOCR パッケージを .NET プロジェクトにインストールする必要があります。

Install-Package IronOCR.Languages.Ethiopic

Code Example

この C# コード例は、画像または PDF ドキュメントからエチオピア語のアルファベットのテキストを読み取ります。

// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;

public class EthiopicOcrExample
{
    public void ReadEthiopicText()
    {
        // Create an instance of IronTesseract
        var Ocr = new IronTesseract();

        // Set the language property to Ethiopic
        Ocr.Language = OcrLanguage.Ethiopic;

        // Define the input image containing Ethiopic text
        using (var Input = new OcrInput(@"images\Ethiopic.png"))
        {
            // Perform OCR to read text from the image
            var Result = Ocr.Read(Input);

            // Store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// First, ensure the IronOcr.Languages.Ethiopic package is installed
using IronOcr;

public class EthiopicOcrExample
{
    public void ReadEthiopicText()
    {
        // Create an instance of IronTesseract
        var Ocr = new IronTesseract();

        // Set the language property to Ethiopic
        Ocr.Language = OcrLanguage.Ethiopic;

        // Define the input image containing Ethiopic text
        using (var Input = new OcrInput(@"images\Ethiopic.png"))
        {
            // Perform OCR to read text from the image
            var Result = Ocr.Read(Input);

            // Store the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel
  • この例では、OCR 操作を実行するためのIronTesseractのインスタンスを作成します。
  • OcrLanguage.Ethiopicを使用して言語をエチオピア語に設定します。
  • OcrInputはソース イメージを定義するために使用されます。
  • Readメソッドは OCR を実行し、認識されたテキストを含む結果を返します。
  • 認識されたテキストはAllTextに保存され、コンソールに出力されます。