Norwegian OCR in C# and .NET
IronOCR, .NET geliştiricilerinin Norveççe dahil olmak üzere 126 dildeki görüntü ve PDF belgelerinden metin okumalarına olanak tanıyan C# yazılım bileşenidir.
Tesseract'ın, yalnızca .NET geliştiricileri için özel olarak oluşturulmuş gelişmiş bir dalıdır ve hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakır.
IronOcr.Languages.Norwegian İçeriği
Bu paket, .NET için 52 OCR dilini içerir:
- Norveççe
- NorveççeEn iyi
- NorveççeFast
İndir
Norveççe Dil Paketi [Norsk]
- ZIP olarak indir
- NuGet ile yükleyin
Kurulum
Yapmamız gereken ilk şey, .NET projenize Norveççe OCR paketini yüklemek.
Install-Package IronOcr.Languages.Norwegian
Kod Örneği
Bu C# kod örneği, bir Görüntü veya PDF belgesinden Norveççe metnini okumaktadır.
// 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
- Bu kod, OCR motorunu başlatır, dili Norveççe olarak ayarlar, görüntüden metni okur ve ardından tanınan metni çıktılar.
- Bu örneğin başarılı bir şekilde çalışması için .NET projenizde IronOCR paketi ile Norveç dili paketinin kurulu olduğundan emin olun.

