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# ソフトウェア コンポーネントです。

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

IronOcr.Languages.Nepali の内容

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

  • ネパール語
  • ネパールベスト
  • ネパールファースト

ダウンロード

ネパール語言語パック[ネパール語]

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

インストール

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

Install-Package IronOcr.Languages.Nepali

Code Example

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

// First, ensure the IronOCR and the Nepali language pack are installed:
// PM> Install-Package IronOcr.Languages.Nepali

// Import the IronOcr namespace to access the required OCR functionalities.
using IronOcr;

class NepaliOcrExample
{
    public void ReadNepaliText()
    {
        // Create an instance of IronTesseract, the main class for performing OCR tasks.
        var Ocr = new IronTesseract();

        // Set the language to Nepali. Ensure you have the Nepali language package installed.
        Ocr.Language = OcrLanguage.Nepali;

        // Specify the input image or PDF file which contains Nepali text.
        using (var Input = new OcrInput(@"images\Nepali.png"))
        {
            // Perform the OCR operation on the input and get the result.
            var Result = Ocr.Read(Input);

            // Extract the recognized text from the result.
            var AllText = Result.Text;

            // Print the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
// First, ensure the IronOCR and the Nepali language pack are installed:
// PM> Install-Package IronOcr.Languages.Nepali

// Import the IronOcr namespace to access the required OCR functionalities.
using IronOcr;

class NepaliOcrExample
{
    public void ReadNepaliText()
    {
        // Create an instance of IronTesseract, the main class for performing OCR tasks.
        var Ocr = new IronTesseract();

        // Set the language to Nepali. Ensure you have the Nepali language package installed.
        Ocr.Language = OcrLanguage.Nepali;

        // Specify the input image or PDF file which contains Nepali text.
        using (var Input = new OcrInput(@"images\Nepali.png"))
        {
            // Perform the OCR operation on the input and get the result.
            var Result = Ocr.Read(Input);

            // Extract the recognized text from the result.
            var AllText = Result.Text;

            // Print the recognized text to the console.
            System.Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel