OCR noruego en C# y .NET
IronOCR es un componente de software C# que permite a los programadores de .NET leer texto de imágenes y documentos PDF en 126 idiomas, incluido el noruego.
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.Norwegian
Este paquete contiene 52 idiomas de OCR para .NET:
- Noruego
- NorwegianBest
- NorwegianFast
Descargar
Paquete de idioma noruego [Norsk]
Instalación
Lo primero que debemos hacer es instalar nuestro paquete OCR de noruego en tu proyecto .NET.
Install-Package IronOCR.Languages.Norwegian
Ejemplo de código
Este ejemplo de código C# lee texto en noruego de una imagen o documento PDF.
// Make sure to install the Norwegian language package:
// PM> Install-Package IronOCR.Languages.Norwegian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\Norwegian.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Store the extracted text in a variable
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}// Make sure to install the Norwegian language package:
// PM> Install-Package IronOCR.Languages.Norwegian
using IronOcr;
var Ocr = new IronTesseract();
// Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian;
// Define the input source as an image file
using (var Input = new OcrInput(@"images\Norwegian.png"))
{
// Perform OCR to read the text from the image
var Result = Ocr.Read(Input);
// Store the extracted text in a variable
var AllText = Result.Text;
// Output the extracted text to the console
Console.WriteLine(AllText);
}- Este código inicializa el motor OCR, establece el idioma en noruego, lee el texto de una imagen y luego muestra el texto reconocido.
- Asegúrate de que el paquete IronOCR y el paquete de idioma noruego estén instalados en tu proyecto .NET para ejecutar este ejemplo con éxito.





