Latin OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C# Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Latein, zu lesen.
Es ist eine fortschrittliche Abspaltung von Tesseract, die ausschließlich for .NET-Entwickler gebaut wurde und regelmäßig andere Tesseract-Engines sowohl in Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Latin
Dieses Paket enthält 40 OCR-Sprachen for .NET:
- Latein
- LatinBest
- LatinFast
Download
Latein Sprachpaket [latine]
Installation
Das erste, was wir tun müssen, ist, unser Latein OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Latin
Beispielcode
Dieses C# Codebeispiel liest lateinischen Text aus einem Bild oder PDF-Dokument.
// Install the IronOcr.Languages.Latin package via NuGet
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Latin;
// Create an OCR input object by specifying the image or PDF file path
using (var Input = new OcrInput(@"images\Latin.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Log or process the recognized text
}
// Install the IronOcr.Languages.Latin package via NuGet
using IronOcr;
var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Latin;
// Create an OCR input object by specifying the image or PDF file path
using (var Input = new OcrInput(@"images\Latin.png"))
{
// Perform OCR on the input
var Result = Ocr.Read(Input);
// Retrieve the recognized text
var AllText = Result.Text;
// Log or process the recognized text
}
' Install the IronOcr.Languages.Latin package via NuGet
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.Language = OcrLanguage.Latin
' Create an OCR input object by specifying the image or PDF file path
Using Input = New OcrInput("images\Latin.png")
' Perform OCR on the input
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text
Dim AllText = Result.Text
' Log or process the recognized text
End Using
- Dieses Beispiel zeigt, wie das
IronTesseract-Objekt initialisiert und die OCR-Sprache auf Latein eingestellt wird. - Der
OcrInputumschließt die Eingabedatei, in diesem Fall ein Bild mit lateinischem Text. Die MethodeOcr.Readverarbeitet die Eingabe und gibt einOcrResult-Objekt zurück, aus dem Sie den erkannten Text extrahieren können.

