Ukrainian 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 언어 52개가 포함되어 있습니다.

  • 우크라이나어
  • 우크라이나 최고
  • 우크라니언 패스트

다운로드

우크라이나어 언어 팩 [украѕнська мова]

설치

먼저 .NET 프로젝트에 우크라이나어 OCR 패키지를 설치해야 합니다.

Install-Package IronOcr.Languages.Ukrainian

코드 예제

이 C# 코드 예제는 이미지 또는 PDF 문서에서 우크라이나어 텍스트를 읽습니다.

// Ensure you have the IronOcr.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;

// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();

// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;

// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
    // Perform OCR operation on the image
    var Result = Ocr.Read(Input);

    // Get the extracted text from the result
    var AllText = Result.Text;

    // Output or use the extracted text as needed
    Console.WriteLine(AllText);
}
// Ensure you have the IronOcr.Languages.Ukrainian package installed.
// Using IronOcr namespace to access OCR functionalities.
using IronOcr;

// Initialize a new instance of IronTesseract
var Ocr = new IronTesseract();

// Set the OCR language to Ukrainian
Ocr.Language = OcrLanguage.Ukrainian;

// Use an OcrInput object for image input
using (var Input = new OcrInput(@"images\Ukrainian.png"))
{
    // Perform OCR operation on the image
    var Result = Ocr.Read(Input);

    // Get the extracted text from the result
    var AllText = Result.Text;

    // Output or use the extracted text as needed
    Console.WriteLine(AllText);
}
$vbLabelText   $csharpLabel
  • 경로 "images\Ukrainian.png"를 본인의 이미지 또는 PDF 문서 경로로 변경하십시오.
  • 이 예시는 IronOCR 사용하여 우크라이나어 텍스트를 인식하고 추출된 텍스트를 출력하도록 설정하는 방법을 보여줍니다.