Tigrinya 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.언어.티그리냐어의 내용

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

  • 티그리냐어
  • 티그리냐베스트
  • 티그리냐 패스트

다운로드

티그리냐어 언어 팩 [ትግርኛ]

설치

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

Install-Package IronOcr.Languages.Tigrinya

코드 예제

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

using IronOcr;

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

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

        // Using statement ensures the OcrInput object is disposed of after use
        using (var Input = new OcrInput(@"images\Tigrinya.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract all text recognized in the image and store it in a variable
            var AllText = Result.Text;

            // Output the extracted text
            Console.WriteLine(AllText);
        }
    }
}
using IronOcr;

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

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

        // Using statement ensures the OcrInput object is disposed of after use
        using (var Input = new OcrInput(@"images\Tigrinya.png"))
        {
            // Perform OCR on the input image
            var Result = Ocr.Read(Input);

            // Extract all text recognized in the image and store it in a variable
            var AllText = Result.Text;

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

설명

  • IronTesseract : IronOCR에서 텍스트 인식을 수행하는 데 사용되는 특수 클래스입니다.
  • Ocr.Language : OCR 엔진에서 사용할 언어를 설정합니다. 이 예에서는 티그리냐어로 설정되어 있습니다.
  • OcrInput : 텍스트로 변환될 입력 소스(이 경우 이미지)를 나타냅니다.
  • Ocr.Read(Input) : 지정된 입력에 대해 OCR을 실행하고 결과를 반환합니다.
  • Result.Text : OCR 처리 후 입력 이미지에서 추출된 텍스트를 포함합니다.
  • Console.WriteLine(AllText) : 추출된 텍스트를 콘솔에 출력합니다. 이 줄은 선택 사항이며 콘솔 출력이 필요하지 않은 경우 삭제할 수 있습니다.