Swedish OCR in C# and .NET
Bu belgenin diğer versiyonları:
IronOCR, .NET kodlayıcıların İsveççe de 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.Swedish İçeriği
Bu paket, .NET için 46 OCR dilini içerir:
- İsveççe
- İsveççeEn iyi
- İsveççeHızlı
İndir
İsveççe Dil Paketi [Svenska]
Kurulum
İlk adım, .NET projenize İsveççe OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Swedish
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden İsveççe metni okur.
// 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

