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 für .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.
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
Imports IronOcr
Class SlovakOcrExample
Shared Sub Main()
' Create an instance of IronTesseract for OCR processing
Dim Ocr As 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 As 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 ClassDieses Beispiel zeigt, wie man mit der IronOCR-Bibliothek slowakischen Text liest. Es beginnt mit der Erstellung einer Instanz von IronTesseract, legt Slowakisch als Sprache für OCR fest und verarbeitet das Eingabebild, das sich bei images/Slovak.png befindet. Schließlich wird der erkannte Text aus dem Bild extrahiert und ausgegeben.

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender Handbücher.