MICR OCR in C# and .NET

This article was translated from English: Does it need improvement?
Translated
View the article in English

126개 언어 추가 지원

IronOCR은 .NET 개발자가 MICR을 포함한 126개 언어로 이미지와 PDF 문서에서 텍스트를 읽을 수 있도록 하는 C# 소프트웨어 구성 요소입니다.

이는 .NET 개발자 전용으로 개발된 Tesseract의 고급 포크 버전으로, 속도와 정확도 면에서 다른 Tesseract 엔진보다 뛰어난 성능을 보여줍니다.

IronOcr.언어.MICR의 내용

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

  • MICR

다운로드

MICR 언어 팩 [자기 잉크 문자 인식]

설치

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

Install-Package IronOcr.Languages.MICR

코드 예제

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

// Import the IronOCR namespace
using IronOcr;

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

        // Set the OCR language to MICR to recognize magnetic ink characters
        Ocr.Language = OcrLanguage.MICR;

        // Specify the file path of the input image containing MICR text
        using (var Input = new OcrInput(@"images\MICR.png"))
        {
            // Run the OCR engine to read the MICR text from the input image
            var Result = Ocr.Read(Input);

            // Retrieve the entire recognized text from the result
            var AllText = Result.Text;

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

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

        // Set the OCR language to MICR to recognize magnetic ink characters
        Ocr.Language = OcrLanguage.MICR;

        // Specify the file path of the input image containing MICR text
        using (var Input = new OcrInput(@"images\MICR.png"))
        {
            // Run the OCR engine to read the MICR text from the input image
            var Result = Ocr.Read(Input);

            // Retrieve the entire recognized text from the result
            var AllText = Result.Text;

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