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

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

  • 아이티어
  • 아이티어최상
  • 아이티어빠른

다운로드

아이티어 언어 팩 [Kreyòl ayisyen]

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

설치

첫 번째로 해야 할 일은 .NET 프로젝트에 아이티어 OCR 패키지를 설치하는 것입니다.

Install-Package IronOcr.Languages.Haitian

코드 예제

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

// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
// Install the required IronOcr package
// PM> Install-Package IronOcr.Languages.Haitian

using IronOcr;

class HaitianOcrExample
{
    static void Main()
    {
        // Initialize the IronTesseract object
        var Ocr = new IronTesseract();

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

        // Using the OcrInput class, define the path to the image or PDF
        using (var Input = new OcrInput(@"images\Haitian.png"))
        {
            // Read the text from the image
            var Result = Ocr.Read(Input);

            // Extract the text found in the image
            var AllText = Result.Text;

            // Output the extracted text to the console
            Console.WriteLine(AllText);
        }
    }
}
$vbLabelText   $csharpLabel
  • 이 코드 스니펫은 IronTesseract 라이브러리를 사용하여 이미지 또는 PDF 문서에서 아이티어 텍스트를 읽는 방법을 보여줍니다.
  • 이미지 또는 PDF가 지정된 경로에 위치해 있는지 확인하십시오.
  • 이 예제는 .NET과 호환되는 개발 환경에서 작업하고 있다고 가정합니다.