Luxembourgish 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 Luxemburgisch, zu lesen.
Es ist ein erweiterter Fork von Tesseract, der ausschließlich for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalte von IronOcr.Languages.Luxembourgish
Dieses Paket enthält 64 OCR-Sprachen for .NET:
- Luxemburgisch
- LuxemburgischBest
- LuxemburgischFast
Download
Luxemburgisches Sprachpaket [Lëtzebuergesch]
Installation
Das Erste, was wir tun müssen, ist das Luxemburgisch OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Luxembourgish
Beispielcode
Dieses C#-Codebeispiel liest luxemburgischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace to utilize OCR functions
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract to perform OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish;
// Load the input image or PDF from which to extract the text
using (var Input = new OcrInput(@"images\Luxembourgish.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
// Import the IronOcr namespace to utilize OCR functions
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract to perform OCR
var Ocr = new IronTesseract();
// Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish;
// Load the input image or PDF from which to extract the text
using (var Input = new OcrInput(@"images\Luxembourgish.png"))
{
// Perform OCR on the input document
var Result = Ocr.Read(Input);
// Retrieve the recognized text from the result
var AllText = Result.Text;
// Output the recognized text
Console.WriteLine(AllText);
}
}
}
' Import the IronOcr namespace to utilize OCR functions
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract to perform OCR
Dim Ocr = New IronTesseract()
' Set the language for OCR to Luxembourgish
Ocr.Language = OcrLanguage.Luxembourgish
' Load the input image or PDF from which to extract the text
Using Input = New OcrInput("images\Luxembourgish.png")
' Perform OCR on the input document
Dim Result = Ocr.Read(Input)
' Retrieve the recognized text from the result
Dim AllText = Result.Text
' Output the recognized text
Console.WriteLine(AllText)
End Using
End Sub
End Class
- Dieses Beispiel demonstriert die Verwendung von IronOCR zur Erkennung von luxemburgischen Texten aus lokalen Dokumenten.
- Die Sprache wird auf Luxemburgisch gesetzt, um die Erkennungsgenauigkeit für Texte in dieser Sprache zu verbessern.
OcrInput()wird verwendet, um die Eingabebild- oder PDF-Datei anzugeben.Ocr.Read()verarbeitet das Dokument, und der erkannte Text wird überResult.Textabgerufen.

