Norwegian OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126개 언어 추가 지원

IronOCR은 .NET 개발자가 노르웨이어를 포함한 126개 언어로 된 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 해주는 C# 소프트웨어 구성 요소입니다.

이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.

IronOcr.언어.노르웨이어의 내용

이 패키지에는 .NET용 OCR 언어 52개가 포함되어 있습니다.

  • 노르웨이어
  • 노르웨지안베스트
  • NorwegianFast

다운로드

노르웨이어 언어 팩 [Norsk]

설치

먼저 .NET 프로젝트에 노르웨이어 OCR 패키지를 설치해야 합니다.

Install-Package IronOcr.Languages.Norwegian

코드 예제

이 C# 코드 예제는 이미지 또는 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);
}
$vbLabelText   $csharpLabel
  • 이 코드는 OCR 엔진을 초기화하고, 언어를 노르웨이어로 설정하고, 이미지에서 텍스트를 읽어들인 후, 인식된 텍스트를 출력합니다.
  • 이 예제를 성공적으로 실행하려면 .NET 프로젝트에 IronOCR 패키지와 노르웨이어 언어 팩이 설치되어 있는지 확인하십시오.