Ancient Greek OCR in C
IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le grec ancien.
Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.
Contenu de IronOcr.Languages.AncientGreek
Ce package contient 61 langues OCR for .NET :
- Grec ancien
- Grec ancienBest
- Grec ancienFast
Télécharger
Pack de langue grecque ancienne [Grec]
Installation
La première chose à faire est d'installer notre package OCR de grec ancien sur votre projet .NET.
Install-Package IronOcr.Languages.AncientGreek
Exemple de code
Cet exemple de code C# lit du texte grec ancien à partir d'une image ou d'un document 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

