Gurmukhi Alphabet OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126개 언어 추가 지원

IronOCR는 .NET 코더가 구르무키어 알파벳을 포함하여 126개 언어의 이미지 및 PDF 문서에서 텍스트를 읽을 수 있게 하는 C# 소프트웨어 구성 요소입니다.

이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.

IronOcr.Languages.Gurmukhi의 내용

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

  • 구르무키어 알파벳
  • GurmukhiAlphabetBest
  • GurmukhiAlphabetFast

다운로드

구르무키어 알파벳 언어 팩 [Gurmukhī]

설치

첫 번째로 해야 할 일은 .NET 프로젝트에 우리의 구르무키어 알파벳 OCR 패키지를 설치하는 것입니다.

Install-Package IronOcr.Languages.Gurmukhi

코드 예제

이 C# 코드 예제는 이미지나 PDF 문서에서 구르무키어 알파벳 텍스트를 읽습니다.

// Import the IronOcr namespace
using IronOcr;

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Define the input source for OCR using an image file path
        using (var Input = new OcrInput(@"images\Gurmukhi.png"))
        {
            // Perform OCR on the input
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text
            var AllText = Result.Text;

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

class Program
{
    static void Main()
    {
        // Create a new instance of IronTesseract
        var Ocr = new IronTesseract();

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

        // Define the input source for OCR using an image file path
        using (var Input = new OcrInput(@"images\Gurmukhi.png"))
        {
            // Perform OCR on the input
            var Result = Ocr.Read(Input);

            // Retrieve the recognized text
            var AllText = Result.Text;

            // Output the recognized text
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel
  • 프로젝트에서 Gurmukhi 언어 팩을 사용하기 위해 필요한 IronOCR 라이브러리가 설치되었는지 확인하십시오.
  • 실제로 처리하려는 이미지 파일을 가리키도록 "images\Gurmukhi.png" 경로를 수정합니다.
  • 이 프로그램은 지정된 이미지에서 텍스트를 읽고 콘솔에 출력합니다.