Icelandic OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English
이 문서의 다른 버전:

IronOCR는 .NET 코더가 126개 언어의 이미지 및 PDF 문서에서 텍스트를 읽을 수 있도록 하는 C# 소프트웨어 구성 요소입니다. 여기에는 아이슬란드어도 포함됩니다. 이는 .NET 개발자 전용으로 제작된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.

IronOcr.Languages.Icelandic 내용

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

  • 아이슬란드어
  • IcelandicBest
  • IcelandicFast

다운로드

아이슬란드어 언어 팩 [Íslenska]

설치

첫 번째로 해야 할 일은 아이슬란드어 OCR 패키지를 .NET 프로젝트에 설치하는 것입니다.

Install-Package IronOcr.Languages.Icelandic

코드 예제

이 C# 코드 예제는 이미지 또는 PDF 문서에서 아이슬란드어 텍스트를 읽습니다.

using IronOcr;

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Icelandic
        Ocr.Language = OcrLanguage.Icelandic;

        // Load the image or PDF file to be processed
        using (var Input = new OcrInput(@"images\Icelandic.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text from the result
            var AllText = Result.Text;

            // Print the extracted text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
using IronOcr;

class Program
{
    static void Main()
    {
        // Create an instance of the IronTesseract OCR engine
        var Ocr = new IronTesseract();

        // Set the language to Icelandic
        Ocr.Language = OcrLanguage.Icelandic;

        // Load the image or PDF file to be processed
        using (var Input = new OcrInput(@"images\Icelandic.png"))
        {
            // Perform OCR on the input file
            var Result = Ocr.Read(Input);

            // Extract all recognized text from the result
            var AllText = Result.Text;

            // Print the extracted text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

설명

  • IronTesseract 클래스는 OCR 작업을 수행하도록 설계된 IronOcr 라이브러리의 일부입니다.
  • Ocr.Language = OcrLanguage.Icelandic;는 OCR 언어를 아이슬란드어로 설정합니다.
  • OcrInput는 입력 파일(이미지 또는 PDF)의 경로를 받아 처리할 준비를 합니다.
  • Ocr.Read(Input)는 입력 파일을 처리하고 OCR 결과를 반환합니다.
  • Result.Text는 처리된 입력에서 인식된 모든 텍스트를 검색합니다.

이 예제를 성공적으로 실행하려면 .NET 프로젝트에 IronOCR 라이브러리와 아이슬란드어 언어 패키지가 설치되어 있는지 확인하십시오.