Ancient Greek OCR in C

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

I26 更多語言

IronOCR 是一款 C# 軟體元件,讓 .NET 開發人員能夠從 126 種語言(包括古希臘文)的圖片和 PDF 文件中讀取文字。

這是 Tesseract 的進階分支版本,專為 .NET 開發人員打造,無論在速度或準確度方面,其表現均經常優於其他 Tesseract 引擎。

IronOcr.Languages.AncientGreek 的內容

此套件包含 61 種適用於 .NET 的 OCR 語言:

  • 古希臘文
  • 古希臘文Best
  • 古希臘文Fast

下載

古希臘語語言套件 [Ἑλληνική]

安裝

我們首先必須將古希臘文 OCR 套件安裝至您的 .NET 專案中。

Install-Package IronOcr.Languages.AncientGreek

程式碼範例

此 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