Estonian 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 Estnisch, zu lesen. Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Estonian
Dieses Paket enthält die folgenden OCR-Sprachen for .NET:
- Estnisch
- EstonianBest
- EstonianFast
Download
Estnisches Sprachpaket [eesti]
Installation
Das Erste, was wir tun müssen, ist, unser Estnisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Estonian
Beispielcode
Dieses C#-Beispiel liest estnischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract class
var Ocr = new IronTesseract();
// Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian;
// Load the image or PDF from which text needs to be extracted
using (var Input = new OcrInput(@"images\Estonian.png"))
{
// Perform OCR to read text from the specified input
var Result = Ocr.Read(Input);
// Extract all the recognized text from the OCR result
var AllText = Result.Text;
}
' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract class
Private Ocr = New IronTesseract()
' Set the OCR language to Estonian
Ocr.Language = OcrLanguage.Estonian
' Load the image or PDF from which text needs to be extracted
Using Input = New OcrInput("images\Estonian.png")
' Perform OCR to read text from the specified input
Dim Result = Ocr.Read(Input)
' Extract all the recognized text from the OCR result
Dim AllText = Result.Text
End Using
Erläuterung des Codes:
- IronTesseract: Dies ist eine primäre Klasse, die von IronOCR zur Durchführung von OCR-Operationen bereitgestellt wird.
- Ocr.Language: Durch das Setzen dieser Eigenschaft legen wir fest, welche Sprache während der OCR verwendet werden soll. Hier ist er auf Estnisch eingestellt.
- OcrInput: Dies wird verwendet, um das Bild oder PDF-Dokument anzugeben, aus dem wir lesen möchten. Es nimmt einen Dateipfad als Eingabe.
- Ocr.Read(Input): Diese Methode verarbeitet die angegebene Eingabe und führt OCR darauf aus.
- Result.Text: Diese Eigenschaft enthält den gesamten Text, der erfolgreich erkannt und aus dem Bild oder PDF-Dokument extrahiert wurde.

