Swedish OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Inne wersje tego dokumentu:

IronOCR to komponent oprogramowania C#, który umożliwia programistom .NET odczytywanie tekstu z obrazów i dokumentów PDF w 126 językach, w tym po szwedzku.

Jest to zaawansowany fork Tesseracta, zbudowany wyłącznie dla deweloperów .NET i regularnie przewyższający inne silniki Tesseract pod względem szybkości i dokładności.

Zawartość IronOcr.Languages.Swedish

Ten pakiet zawiera 46 języków OCR dla .NET:

  • Szwedzki
  • SwedishBest
  • SwedishFast

Pobieranie

Swedish Language Pack [Svenska]

Instalacja

Pierwszą rzeczą, którą musimy zrobić, jest zainstalowanie naszego pakietu OCR Swedish w twoim projekcie .NET.

Install-Package IronOcr.Languages.Swedish

Przyklad kodu

Ten przykład kodu C# odczytuje tekst w języku szwedzkim z obrazu lub dokumentu PDF.

// 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
$vbLabelText   $csharpLabel