Icelandic OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının görüntülerden ve PDF belgelerinden, İzlandaca dahil 126 dilde metin okumasını sağlayan bir C# yazılım bileşenidir. Bu, özel olarak .NET geliştiricileri için hazırlanmış, Tesseract'ın ileri düzey bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Icelandic İçeriği
Bu paket, .NET için 52 OCR dilini içerir:
- İzlandaca
- İzlandacaEn iyi
- İzlandacaFast
İndir
İzlandaca Dil Paketi [Íslenska]
Kurulum
Yapmamız gereken ilk şey .NET projenize İzlandaca OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Icelandic
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden İzlandaca metni okur.
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Icelandic
Ocr.Language = OcrLanguage.Icelandic;
// Load the image or PDF file to be processed
using (var Input = new OcrInput(@"images\Icelandic.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Print the extracted text to the console
System.Console.WriteLine(AllText);
}
}
}
using IronOcr;
class Program
{
static void Main()
{
// Create an instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Icelandic
Ocr.Language = OcrLanguage.Icelandic;
// Load the image or PDF file to be processed
using (var Input = new OcrInput(@"images\Icelandic.png"))
{
// Perform OCR on the input file
var Result = Ocr.Read(Input);
// Extract all recognized text from the result
var AllText = Result.Text;
// Print the extracted text to the console
System.Console.WriteLine(AllText);
}
}
}
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create an instance of the IronTesseract OCR engine
Dim Ocr = New IronTesseract()
' Set the language to Icelandic
Ocr.Language = OcrLanguage.Icelandic
' Load the image or PDF file to be processed
Using Input = New OcrInput("images\Icelandic.png")
' Perform OCR on the input file
Dim Result = Ocr.Read(Input)
' Extract all recognized text from the result
Dim AllText = Result.Text
' Print the extracted text to the console
System.Console.WriteLine(AllText)
End Using
End Sub
End Class
Açıklama
IronTesseractsınıfı, OCR işlemleri gerçekleştirmek için tasarlanmış IronOCR kütüphanesinin bir parçasıdır.Ocr.Language = OcrLanguage.Icelandic;, OCR dilini İzlandaca olarak ayarlar.OcrInput, giriş dosyasının (bir resim veya PDF) yolunu alır ve işleme için hazırlar.Ocr.Read(Input)giriş dosyasını işler ve OCR sonucunu döndürür.Result.Textişlenen girdiden tanınan tüm metni alır.
Bu örneği başarıyla çalıştırmak için .NET projenizde IronOCR kütüphanesini ve İzlandaca dil paketini yüklü bulundurduğunuzdan emin olun.

