Maltese 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.Maltese 내용

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

  • 몰타어
  • MalteseBest
  • MalteseFast

다운로드

몰타어 언어 팩 [Malti]

  • Zip로 다운로드
  • NuGet으로 설치

설치

우리가 가장 먼저 해야 할 일은 몰타어 OCR 패키지를 .NET 프로젝트에 설치하는 것입니다.

Install-Package IronOcr.Languages.Maltese

코드 예제

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

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

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

        // Define the input image or PDF document
        using (var Input = new OcrInput(@"images\Maltese.png"))
        {
            // Perform OCR on the input and retrieve the result
            var Result = Ocr.Read(Input);

            // Get all the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Initialize the IronTesseract OCR engine
        var Ocr = new IronTesseract();

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

        // Define the input image or PDF document
        using (var Input = new OcrInput(@"images\Maltese.png"))
        {
            // Perform OCR on the input and retrieve the result
            var Result = Ocr.Read(Input);

            // Get all the recognized text
            var AllText = Result.Text;

            // Output the recognized text to the console
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel

이 예제에서는 IronTesseract OCR 엔진을 사용하여 Maltese.png라는 이미지 파일에서 텍스트를 읽습니다. 인식된 텍스트는 그런 다음 콘솔에 출력됩니다. 이미지 경로가 올바르고 OCR이 효과적으로 작동하려면 이미지 파일에 몰타어 텍스트가 포함되어 있는지 확인하세요. using 문은 더 이상 필요하지 않은 리소스를 올바르게 처리하도록 보장합니다.