Norwegian OCR in C# and .NET
O IronOCR é um componente de software em C# que permite aos programadores .NET ler texto de imagens e documentos PDF em 126 idiomas, incluindo o norueguês.
Trata-se de uma versão avançada do Tesseract, criada exclusivamente para desenvolvedores .NET e que supera regularmente outros mecanismos do Tesseract em termos de velocidade e precisão.
Conteúdo de IronOcr.Idiomas.Norueguês
Este pacote contém 52 linguagens de OCR for .NET:
- Norueguês
- NorwegianBest
- NorwegianFast
Baixar
Pacote de idioma norueguês [Norsk]
Instalação
A primeira coisa que precisamos fazer é instalar nosso pacote de OCR norueguês em seu projeto .NET.
Install-Package IronOcr.Languages.Norwegian
Exemplo de código
Este exemplo de código C# lê texto em norueguês a partir de uma imagem ou 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);
}
Imports IronOcr
' Make sure to install the Norwegian language package:
' PM> Install-Package IronOcr.Languages.Norwegian
Dim Ocr As New IronTesseract()
' Set the OCR language to Norwegian
Ocr.Language = OcrLanguage.Norwegian
' Define the input source as an image file
Using Input As New OcrInput("images\Norwegian.png")
' Perform OCR to read the text from the image
Dim Result = Ocr.Read(Input)
' Store the extracted text in a variable
Dim AllText = Result.Text
' Output the extracted text to the console
Console.WriteLine(AllText)
End Using
- Este código inicializa o mecanismo de OCR, define o idioma para norueguês, lê o texto de uma imagem e, em seguida, exibe o texto reconhecido.
- Certifique-se de que o pacote IronOCR e o pacote de idioma norueguês estejam instalados em seu projeto .NET para executar este exemplo com sucesso.

