Norwegian OCR in C# and .NET
IronOCR, .NET kodlayıcılarının 126 dilde, Norveççe de dahil olmak üzere, görüntülerden ve PDF belgelerinden metin okumalarını sağlayan bir C# yazılım bileşenidir.
Tesseract'ın ileri düzey bir çatallamasıdır, yalnızca .NET geliştiricileri için oluşturulmuş olup hız ve doğruluk açısından diğer Tesseract motorlarını düzenli olarak geride bırakmaktadır.
IronOcr.Languages.Norwegian İçeriği
Bu paket, .NET için 52 OCR dili içerir:
- Norwegian
- NorwegianBest
- NorwegianFast
İndirme
Norveççe Dil Paketi [Norsk]
Kurulum
İlk yapmamız gereken, .NET projenize Norveççe OCR paketini yüklemektir.
Install-Package IronOcr.Languages.Norwegian
Kod Örneği
Bu C# kod örneği, bir görüntü veya PDF belgesinden Norveççe metnini okur.
// 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, metni bir görüntüden okur ve ardından tanınan metni çıktı olarak verir.
- Bu örneği başarıyla çalıştırmak için IronOCR paketinin ve Norveççe dil paketinin .NET projenizde yüklü olduğundan emin olun.

