Slovene OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET geliştiricilerinin Slovence dahil olmak üzere 126 dilde görüntüler ve PDF belgelerinden metin okumasını sağlayan bir C# yazılım bileşenidir. Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Slovene İçeriği
Bu paket, .NET için 46 OCR dili içerir:
- Slovence
- SloveneBest
- SloveneFast
İndirme
Slovence Dil Paketi [slovenski jezik]
Kurulum
Yapmanız gereken ilk şey, .NET projenizde Slovence OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Slovene
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Slovence metin okumayı gösterir.
// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene;
// Perform OCR inside a using block to ensure resources are released properly.
using (var Input = new OcrInput(@"images\Slovene.png"))
{
// Read the text from the input image or PDF.
var Result = Ocr.Read(Input);
// Get all the recognized text as a string.
var AllText = Result.Text;
// Output the recognized text to the console.
System.Console.WriteLine(AllText);
}
}
}
// Install the package before using it.
// PM> Install-Package IronOcr.Languages.Slovene
using IronOcr;
class Program
{
static void Main()
{
// Create a new instance of IronTesseract for OCR operations.
var Ocr = new IronTesseract();
// Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene;
// Perform OCR inside a using block to ensure resources are released properly.
using (var Input = new OcrInput(@"images\Slovene.png"))
{
// Read the text from the input image or PDF.
var Result = Ocr.Read(Input);
// Get all the recognized text as a string.
var AllText = Result.Text;
// Output the recognized text to the console.
System.Console.WriteLine(AllText);
}
}
}
' Install the package before using it.
' PM> Install-Package IronOcr.Languages.Slovene
Imports IronOcr
Friend Class Program
Shared Sub Main()
' Create a new instance of IronTesseract for OCR operations.
Dim Ocr = New IronTesseract()
' Set the OCR language to Slovene.
Ocr.Language = OcrLanguage.Slovene
' Perform OCR inside a using block to ensure resources are released properly.
Using Input = New OcrInput("images\Slovene.png")
' Read the text from the input image or PDF.
Dim Result = Ocr.Read(Input)
' Get all the recognized text as a string.
Dim AllText = Result.Text
' Output the recognized text to the console.
System.Console.WriteLine(AllText)
End Using
End Sub
End Class

