C# での古代ギリシャ語 OCR

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

I26 その他の言語

IronOCR は、.NET コーダーが古代ギリシャ語を含む 126 の言語で画像や PDF ドキュメントからテキストを読み取ることができる C# ソフトウェア コンポーネントです。

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

IronOcr.Languages.AncientGreek の内容

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

  • 古代ギリシャ語
  • 古代ギリシャベスト
  • 古代ギリシャ高速

ダウンロード

古代ギリシャ語言語パック[ギリシャ語]

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

インストール

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

Install-Package IronOCR.Languages.AncientGreek

Code Example

この C# コード例では、画像または PDF ドキュメントから古代ギリシャ語のテキストを読み取ります。

// To use the IronOCR library, ensure you have the Ancient Greek language pack installed.
// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract();

// Set the OCR language to Ancient Greek
Ocr.Language = OcrLanguage.AncientGreek;

// Load the image or PDF document to extract text from
using (var Input = new OcrInput(@"images\AncientGreek.png"))
{
    // Perform OCR to read text from the input
    var Result = Ocr.Read(Input);

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

    // Display the extracted text
    Console.WriteLine(AllText);
}
// To use the IronOCR library, ensure you have the Ancient Greek language pack installed.
// Import the IronOcr namespace
using IronOcr;

var Ocr = new IronTesseract();

// Set the OCR language to Ancient Greek
Ocr.Language = OcrLanguage.AncientGreek;

// Load the image or PDF document to extract text from
using (var Input = new OcrInput(@"images\AncientGreek.png"))
{
    // Perform OCR to read text from the input
    var Result = Ocr.Read(Input);

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

    // Display the extracted text
    Console.WriteLine(AllText);
}
' To use the IronOCR library, ensure you have the Ancient Greek language pack installed.
' Import the IronOcr namespace
Imports IronOcr

Private Ocr = New IronTesseract()

' Set the OCR language to Ancient Greek
Ocr.Language = OcrLanguage.AncientGreek

' Load the image or PDF document to extract text from
Using Input = New OcrInput("images\AncientGreek.png")
	' Perform OCR to read text from the input
	Dim Result = Ocr.Read(Input)

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

	' Display the extracted text
	Console.WriteLine(AllText)
End Using
$vbLabelText   $csharpLabel