Ancient Greek OCR in C
IronOCR to komponent oprogramowania C#, umożliwiający programistom .NET odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym w starożytnogreckim.
Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.
Zawartość IronOcr.Languages.AncientGreek
Ten pakiet zawiera 61 języków OCR dla .NET:
- AncientGreek
- AncientGreekBest
- AncientGreekFast
Pobieranie
Ancient Greek Language Pack [Ἑλληνική]
Instalacja
Pierwszą rzeczą, jaką musimy zrobić, jest zainstalowanie naszego pakietu OCR Starożytny Grecki do twojego projektu .NET.
Install-Package IronOcr.Languages.AncientGreek
Przyklad kodu
Ten przykład kodu C# odczytuje tekst w starożytnogreckim z obrazu lub dokumentu 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

