Swedish OCR in C# and .NET
Andere Versionen dieses Dokuments:
IronOCR ist eine C#-Softwarekomponente, die .NET-Entwicklern ermöglicht, Text aus Bildern und PDF-Dokumenten in 126 Sprachen, einschließlich Schwedisch, 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.Swedish
Dieses Paket enthält 46 OCR-Sprachen for .NET:
- Schwedisch
- SchwedischBest
- SchwedischSchnell
Download
Schwedisches Sprachpaket [Svenska]
Installation
Das erste, was wir tun müssen, ist, unser Schwedisches OCR-Paket in Ihr .NET-Projekt zu installieren.
Install-Package IronOcr.Languages.Swedish
Beispielcode
Dieses C#-Codebeispiel liest schwedischen Text aus einem Bild oder PDF-Dokument.
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish;
// Load the image file or PDF from which the text will be extracted
using (var Input = new OcrInput(@"images\Swedish.png"))
{
// Read the text from the input using the OCR engine
var Result = Ocr.Read(Input);
// Get all the extracted text as a string
var AllText = Result.Text;
}
// Import the IronOcr namespace
using IronOcr;
// Create a new instance of the IronTesseract OCR engine
var Ocr = new IronTesseract();
// Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish;
// Load the image file or PDF from which the text will be extracted
using (var Input = new OcrInput(@"images\Swedish.png"))
{
// Read the text from the input using the OCR engine
var Result = Ocr.Read(Input);
// Get all the extracted text as a string
var AllText = Result.Text;
}
' Import the IronOcr namespace
Imports IronOcr
' Create a new instance of the IronTesseract OCR engine
Private Ocr = New IronTesseract()
' Set the language to Swedish
Ocr.Language = OcrLanguage.Swedish
' Load the image file or PDF from which the text will be extracted
Using Input = New OcrInput("images\Swedish.png")
' Read the text from the input using the OCR engine
Dim Result = Ocr.Read(Input)
' Get all the extracted text as a string
Dim AllText = Result.Text
End Using

