OCR suédois en C# et .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
Other versions of this document:

IronOCR est un composant logiciel C# permettant aux développeurs .NET de lire du texte à partir d'images et de documents PDF dans 126 langues, dont le suédois.

Il s'agit d'une version avancée de Tesseract, conçue exclusivement pour les développeurs .NET et qui surpasse régulièrement les autres moteurs Tesseract en termes de vitesse et de précision.

Contenu de IronOcr.Languages.Suédois

Ce package contient 46 langues OCR pour .NET :

  • Suédois
  • SwedishBest
  • SwedishFast

Télécharger

Pack de langue suédoise [suédois]

  • Télécharger au format ZIP
  • Installer avec NuGet

Installation

La première chose à faire est d'installer notre package OCR suédois dans votre projet .NET.

Install-Package IronOCR.Languages.Swedish

Exemple de code

Cet exemple de code C# lit du texte suédois à partir d'une image ou d'un document 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