Polish 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.언어.폴란드어의 내용

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

  • 폴란드어
  • 폴리시베스트
  • 폴리시패스트

다운로드

폴란드어 언어 팩 [język polski] :

설치

먼저 .NET 프로젝트에 폴란드어 OCR 패키지를 설치해야 합니다.

NuGet 패키지 관리자를 사용하여 설치하려면 다음 명령을 실행하십시오.

Install-Package IronOcr.Languages.Polish

코드 예제

이 C# 코드 예제는 IronOCR을 사용하여 이미지 또는 PDF 문서에서 폴란드어 텍스트를 읽는 방법을 보여줍니다.

// Install the IronOcr.Languages.Polish package via NuGet before using this code.
using IronOcr;

public class PolishOcrExample
{
    public void ReadPolishTextFromImage()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Provide the path to the image or PDF file containing Polish text
        using (var Input = new OcrInput(@"images\Polish.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Display or process the recognized text
            Console.WriteLine(AllText);
        }
    }
}
// Install the IronOcr.Languages.Polish package via NuGet before using this code.
using IronOcr;

public class PolishOcrExample
{
    public void ReadPolishTextFromImage()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Provide the path to the image or PDF file containing Polish text
        using (var Input = new OcrInput(@"images\Polish.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

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

            // Display or process the recognized text
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

이 스크립트는 OCR 엔진을 초기화하고, 언어(폴란드어)를 지정한 다음, "images\Polish.png"에 있는 이미지를 처리하여 텍스트를 추출하고 표시합니다. 코드 실행 전에 파일 경로가 올바른지, OCR 패키지가 설치되어 있는지 확인하십시오.