Slovak OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcılarının Slovakça 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.Slovak İçeriği
Bu paket, .NET için 61 OCR dili içerir:
- Slovakça
- SlovakBest
- SlovakFast
- SlovakFraktur
İndirme
Slovak Dili Paketi [slovenčina]:
Kurulum
Yapmamız gereken ilk şey, Slovak OCR paketimizi .NET projenize yüklemektir.
Install-Package IronOcr.Languages.Slovak
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Slovakça metin okumayı gösterir.
// Ensure you have installed the Slovak language pack for IronOCR
// PM> Install-Package IronOcr.Languages.Slovak
using IronOcr;
class SlovakOcrExample
{
static void Main()
{
// Create an instance of IronTesseract for OCR processing
var Ocr = new IronTesseract();
// Set the language to Slovak
Ocr.Language = OcrLanguage.Slovak;
// Using an OcrInput to specify the source of the image or PDF
using (var Input = new OcrInput(@"images\Slovak.png"))
{
// Perform OCR to read the text from the input image or PDF
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
// Ensure you have installed the Slovak language pack for IronOCR
// PM> Install-Package IronOcr.Languages.Slovak
using IronOcr;
class SlovakOcrExample
{
static void Main()
{
// Create an instance of IronTesseract for OCR processing
var Ocr = new IronTesseract();
// Set the language to Slovak
Ocr.Language = OcrLanguage.Slovak;
// Using an OcrInput to specify the source of the image or PDF
using (var Input = new OcrInput(@"images\Slovak.png"))
{
// Perform OCR to read the text from the input image or PDF
var Result = Ocr.Read(Input);
// Extract all recognized text
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}
}
}
' Ensure you have installed the Slovak language pack for IronOCR
' PM> Install-Package IronOcr.Languages.Slovak
Imports IronOcr
Friend Class SlovakOcrExample
Shared Sub Main()
' Create an instance of IronTesseract for OCR processing
Dim Ocr = New IronTesseract()
' Set the language to Slovak
Ocr.Language = OcrLanguage.Slovak
' Using an OcrInput to specify the source of the image or PDF
Using Input = New OcrInput("images\Slovak.png")
' Perform OCR to read the text from the input image or PDF
Dim Result = Ocr.Read(Input)
' Extract all recognized text
Dim AllText = Result.Text
' Output the extracted text to the console
Console.WriteLine(AllText)
End Using
End Sub
End Class
Bu örnek, IronOCR kütüphanesi kullanılarak Slovakça metnin nasıl okunacağını gösterir. OCR için dili Slovak olarak belirten IronTesseract örneği oluşturulmasıyla başlanır ve images/Slovak.png konumundaki giriş görüntüsü işlenir. Son olarak, görüntüden tanınan metni çıkarır ve çıktılar.

