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.Haitian の内容

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

  • ハイチ人
  • ハイチアンベスト
  • ハイチアンファスト

ダウンロード

ハイチ語パック[ハイチ語クレオール語]

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

インストール

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

Install-Package IronOCR.Languages.Haitian

Code Example

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

// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

        // Set the OCR language to Haitian
        Ocr.Language = OcrLanguage.Haitian;

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

        // Set the OCR language to Haitian
        Ocr.Language = OcrLanguage.Haitian;

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
' Install the required IronOcr package
' PM> Install-Package IronOcr.Languages.Haitian

Imports IronOcr

Friend Class HaitianOcrExample
	Shared Sub Main()
		' Initialize the IronTesseract object
		Dim Ocr = New IronTesseract()

		' Set the OCR language to Haitian
		Ocr.Language = OcrLanguage.Haitian

		' Using the OcrInput class, define the path to the image or PDF
		Using Input = New OcrInput("images\Haitian.png")
			' Read the text from the image
			Dim Result = Ocr.Read(Input)

			' Extract the text found in the image
			Dim AllText = Result.Text

			' Output the extracted text to the console
			Console.WriteLine(AllText)
		End Using
	End Sub
End Class
$vbLabelText   $csharpLabel
  • このコード スニペットは、画像または PDF ドキュメントからハイチ語のテキストを読み取るために IronTesseract ライブラリを使用して OCR を実装する方法を示しています。
  • 画像または PDF が指定されたパスにあることを確認します。
  • この例では、.NET と互換性のある開発環境で作業していることを前提としています。