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

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

  • ウクライナ語
  • ウクライナベスト
  • ウクライナファースト

ダウンロード

ウクライナ語言語パック[ウクライナ語]

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

インストール

最初に、.NET プロジェクトにウクライナ語OCR パッケージをインストールします。

Install-Package IronOCR.Languages.Ukrainian

Code Example

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

// Ensure you have the IronOCR.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;

// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();

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

// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
    // Perform OCR operation on the image
    var Result = Ocr.Read(Input);

    // Get the extracted text from the result
    var AllText = Result.Text;

    // Output or use the extracted text as needed
    Console.WriteLine(AllText);
}
// Ensure you have the IronOCR.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;

// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();

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

// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
    // Perform OCR operation on the image
    var Result = Ocr.Read(Input);

    // Get the extracted text from the result
    var AllText = Result.Text;

    // Output or use the extracted text as needed
    Console.WriteLine(AllText);
}
' Ensure you have the IronOCR.Languages.Ukrainian package installed.
' Using IronOcr namespace to access OCR functionalities.
Imports IronOcr

' Initialize a new instance of IronTesseract
Private Ocr = New IronTesseract()

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

' Use an OcrInput object for image input
Using Input = New OcrInput("images\Ukrainian.png")
	' Perform OCR operation on the image
	Dim Result = Ocr.Read(Input)

	' Get the extracted text from the result
	Dim AllText = Result.Text

	' Output or use the extracted text as needed
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel
  • パス"images\Ukrainian.png"を、独自の画像または PDF ドキュメントへのパスに置き換えてください。
  • この例では、IronOCR を設定してウクライナ語のテキストを認識し、抽出したテキストを出力する方法を示します。