Western Frisian 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 언어 67개가 포함되어 있습니다.

  • 서프리지아어
  • 웨스턴프리지안베스트
  • WesternFrisianFast

다운로드

서부 프리지아어 언어 팩 [Frysk]

설치

먼저 해야 할 일은 서부 프리지아어 OCR 패키지를 .NET 프로젝트에 설치하는 것입니다.

Install-Package IronOcr.Languages.WesternFrisian

코드 예제

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

// Import the IronOcr library
using IronOcr;

class WesternFrisianOcrExample
{
    static void Main()
    {
        // Create a new instance of IronTesseract, which is the OCR engine 
        var Ocr = new IronTesseract();

        // Set the language to Western Frisian
        Ocr.Language = OcrLanguage.WesternFrisian;

        // Perform OCR on a given image
        using (var Input = new OcrInput(@"images\WesternFrisian.png"))
        {
            // Read the input image and store the result
            var Result = Ocr.Read(Input);

            // Extract the text from the result
            string AllText = Result.Text;

            // Output the recognized text to the console
            System.Console.WriteLine(AllText);
        }
    }
}
// Import the IronOcr library
using IronOcr;

class WesternFrisianOcrExample
{
    static void Main()
    {
        // Create a new instance of IronTesseract, which is the OCR engine 
        var Ocr = new IronTesseract();

        // Set the language to Western Frisian
        Ocr.Language = OcrLanguage.WesternFrisian;

        // Perform OCR on a given image
        using (var Input = new OcrInput(@"images\WesternFrisian.png"))
        {
            // Read the input image and store the result
            var Result = Ocr.Read(Input);

            // Extract the text from the result
            string AllText = Result.Text;

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

이 예시에서 우리는 다음과 같은 작업을 수행합니다.

  • OCR 엔진 초기화 IronTesseract.
  • OcrLanguage.WesternFrisian 언어 옵션을 사용하여 Western Frisian 텍스트를 인식하도록 OCR 프로세스를 설정합니다.
  • 경로 images\WesternFrisian.png에 위치한 이미지 파일을 읽습니다.
  • 인식된 텍스트를 AllText에 저장하고 콘솔에 출력합니다.