Thaana Alphabet OCR in C#

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.Thana의 내용

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

  • 타아나알파벳
  • 타아나알파벳베스트
  • 타아나알파벳패스트

다운로드

Thaana 알파벳 언어팩 [Thana]

설치

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

Install-Package IronOcr.Languages.Thaana

코드 예제

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

// Import the IronOcr namespace
using IronOcr;

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

// Set the language to Thaana for OCR processing
Ocr.Language = OcrLanguage.Thaana;

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

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

// Create a new IronTesseract OCR object
var Ocr = new IronTesseract();

// Set the language to Thaana for OCR processing
Ocr.Language = OcrLanguage.Thaana;

// Create an OcrInput object with the path to the image
using (var Input = new OcrInput(@"images\Thaana.png"))
{
    // Perform OCR on the input image to extract text
    var Result = Ocr.Read(Input);

    // Store the recognized text from the image in a variable
    var AllText = Result.Text;

    // Output the recognized text to the console or any other use
    Console.WriteLine(AllText);
}
$vbLabelText   $csharpLabel
  • 위 코드는 IronOCR을 사용하여 타아나 문자가 포함된 이미지에 OCR을 수행하는 방법을 보여줍니다.
  • OCR 객체를 설정하고, 언어를 지정한 후, 지정된 이미지 파일에서 텍스트를 읽습니다. 추출된 텍스트는 필요에 따라 애플리케이션에서 사용할 수 있습니다.