Slovak OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C# Softwarekomponente, die es .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Slowakisch, zu lesen. Es ist eine erweiterte Abspaltung von Tesseract, die exklusiv for .NET-Entwickler entwickelt wurde und regelmäßig andere Tesseract-Engines sowohl in Bezug auf Geschwindigkeit als auch Genauigkeit übertrifft.
Inhalt von IronOcr.Languages.Slovak
Dieses Paket enthält 61 OCR-Sprachen for .NET:
- Slowakisch
- SlowakischBest
- SlowakischSchnell
- SlowakischFraktur
Download
Slowakisch Sprachpaket [slovenčina]:
Installation
Das erste, was wir tun müssen, ist unser Slowakisch OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Slovak
Beispielcode
Dieses C#-Codebeispiel liest slowakischen Text aus einem Bild oder PDF-Dokument.
// 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
Dieses Beispiel zeigt, wie man mit der IronOCR-Bibliothek slowakischen Text liest. Es beginnt mit der Erstellung einer Instanz von IronTesseract, gibt Slowakisch als Sprache für die OCR an und verarbeitet das Eingabebild, das sich unter images/Slovak.png befindet. Schließlich wird der erkannte Text aus dem Bild extrahiert und ausgegeben.

