Luxembourgish OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının 126 dildeki, Lüksemburgca dahil, resimler ve PDF belgelerinden metin okumalarına olanak sağlayan bir C# yazılım bileşenidir.
Sadece .NET geliştiricileri için inşa edilen Tesseract'ın gelişmiş bir dalı olup, hem hız hem de doğruluk açısından diğer Tesseract motorlarını sık sık geride bırakır.
IronOcr.Languages.Luxembourgish İçerikleri
Bu paket, .NET için 64 OCR dili içerir:
- Lüksemburgca
- LüksemburgcaBest
- LüksemburgcaFast
İndirme
Lüksemburgca Dil Paketi [Lëtzebuergesch]
Kurulum
Yapmamız gereken ilk şey, .NET projenize Lüksemburgca OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Luxembourgish
Kod Örneği
Bu C# kod örneği, bir resim veya PDF belgesinden Lüksemburgca metin okur.
// 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
- Bu örnek, yerel belgelerden Lüksemburgca metin tanımak için IronOCR kullanımını göstermektedir.
- Dil, o dildaki metinlerin tanıma doğruluğunu artırmak için Lüksemburgca olarak ayarlanır.
OcrInput(), giriş görüntüsünü veya PDF dosyasını belirtmek için kullanılır.Ocr.Read(), belgeyi işler ve tanınan metneResult.Textaracılığıyla erişilir.

