Myanmar 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# 소프트웨어 구성 요소입니다. Tesseract를 기반으로 .NET 개발자를 위해 특별히 개발된 고급 버전으로, 속도와 정확도 면에서 기존 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.

IronOcr.언어.미얀마의 내용

이 패키지는 미얀마에서 사용되는 114개 언어에 대한 OCR 지원 기능을 포함하고 있습니다.

  • 미얀마
  • 미얀마 베스트
  • 미얀마패스트
  • 미얀마 알파벳
  • 미얀마 알파벳 베스트
  • 미얀마알파벳패스트

다운로드

미얀마어 언어 팩 [버마어]

설치

먼저 NuGet을 통해 .NET 프로젝트에 Myanmar OCR 패키지를 설치하세요.

Install-Package IronOcr.Languages.Myanmar

코드 예제

이 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 Myanmar
        Ocr.Language = OcrLanguage.Myanmar;

        // Define input source - image or PDF containing Myanmar text
        using (var Input = new OcrInput(@"images\Myanmar.png"))
        {
            // Perform OCR on the input and obtain the result
            var Result = Ocr.Read(Input);

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

            // Output the recognized Myanmar text
            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 Myanmar
        Ocr.Language = OcrLanguage.Myanmar;

        // Define input source - image or PDF containing Myanmar text
        using (var Input = new OcrInput(@"images\Myanmar.png"))
        {
            // Perform OCR on the input and obtain the result
            var Result = Ocr.Read(Input);

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

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

설명

  • IronTesseract : 이 클래스는 IronOCR 라이브러리에서 제공하는 OCR 작업을 처리하는 주요 클래스입니다.
  • Ocr.Language : OCR에 사용할 언어를 설정합니다. 이 예제는 OcrLanguage.Myanmar로 설정되어 있습니다.
  • OcrInput : 입력 소스를 지정하는 데 사용되며, 이미지 또는 PDF 파일일 수 있습니다.
  • Ocr.Read: OCR 프로세스를 수행하고 OcrResult 객체를 반환합니다.
  • Result.Text : 이미지 또는 PDF 문서에서 추출된 텍스트를 포함합니다.