Slovak OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcıların Slovakça da dahil olmak üzere 126 dildeki görüntülerden ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir. Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş 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.Slovak İçeriği
Bu paket, .NET için 61 OCR dilini içerir:
- Slovakça
- SlovakçaBest
- SlovakçaFast
- SlovakçaFraktur
İndir
Slovak Dil Paketi [slovenčina]:
Kurulum
İlk adım, .NET projenize Slovak OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Slovak
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden Slovak metni okur.
// 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üphanesini kullanarak Slovak metni nasıl okuyacağını gösterir. IronTesseract örneğinin oluşturulmasıyla başlar, OCR için dil olarak Slovakça'yı belirtir ve images/Slovak.png konumunda bulunan giriş görüntüsünü işler. Son olarak, görüntüden tanınan metni çıkartır ve çıktısını verir.

