OCR sueco en C# y .NET

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

IronOCR es un componente de software en C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el sueco.

Es una rama avanzada de Tesseract, construida exclusivamente para desarrolladores de .NET y supera regularmente a otros motores de Tesseract tanto en velocidad como en precisión.

Contenido de IronOcr.Languages.Swedish

Este paquete contiene 46 idiomas OCR para .NET:

  • Sueco
  • SwedishBest
  • SwedishFast

Descargar

Paquete de idioma sueco [Svenska]

Instalación

Lo primero que tenemos que hacer es instalar nuestro paquete OCR sueco en su proyecto .NET.

Install-Package IronOCR.Languages.Swedish

Ejemplo de código

Este ejemplo de código en C# lee texto en sueco de una imagen o documento 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