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

  • 루마니아어
  • 루마니아 최고
  • 루마니아 패스트

다운로드

루마니아어 언어 팩 [limba română]

설치

먼저 루마니아어 OCR 패키지를 .NET 프로젝트에 설치해야 합니다.

Install-Package IronOcr.Languages.Romanian

코드 예제

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

// Ensure you have installed the Romanian OCR package using the following NuGet command:
// PM> Install-Package IronOcr.Languages.Romanian

using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Romanian;

using (var Input = new OcrInput(@"images\Romanian.png")) 
{
    // Perform OCR on the input image, and store the result
    var Result = Ocr.Read(Input);

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

    // Display the recognized text
    Console.WriteLine(AllText);
}
// Ensure you have installed the Romanian OCR package using the following NuGet command:
// PM> Install-Package IronOcr.Languages.Romanian

using IronOcr;

var Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.Romanian;

using (var Input = new OcrInput(@"images\Romanian.png")) 
{
    // Perform OCR on the input image, and store the result
    var Result = Ocr.Read(Input);

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

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

위의 코드는 IronOCR을 설정하여 이미지 파일에서 루마니아어로 된 텍스트를 읽는 방법을 보여줍니다. IronTesseract()는 새로운 OCR 엔진 인스턴스를 초기화하고, OcrInput()는 처리를 위해 이미지를 로드합니다. Read() 메서드는 OCR 작업을 수행합니다. 마지막으로, 인식된 텍스트는 콘솔에 출력되는 AllText 변수에 저장됩니다. "images\Romanian.png"를 이미지 파일의 경로로 교체하는 것을 잊지 마세요.