跳至页脚内容

专业化阅读

超越普通文本。使用专用的高性能工具准确读取护照(MRZ)、支票(MICR)、车牌和条形码。

Icon Main related to 专业化阅读
专业化阅读

2

读取护照

using IronOcr;
using System;

// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputPassport = new OcrInput();
inputPassport.LoadImage("passport.jpg");

// Perform OCR
OcrPassportResult result = ocr.ReadPassport(inputPassport);

// Output name and passport number
Console.WriteLine(result.PassportInfo.GivenNames);
Console.WriteLine(result.PassportInfo.PassportNumber);
C#
3

MICR 支票阅读

可靠读取支票上的 E-13B MICR 字体,实现银行存款处理和财务工作流程自动化。我们的专业引擎可确保路由号码、账户号码和支票金额等关键数据的最高准确性。

// Import the IronOCR namespace
using IronOcr;

// 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

// Must have MICR (IronOcr.Languages.MICR) installed beforehand
Ocr.Language = OcrLanguage.MICR;

// Specify the file path of the input image containing MICR text
using (var Input = new OcrInput())
{
   Input.LoadImage("sampleChequeImage.png");

   // Run the OCR engine to read the MICR text from the input image 
   var Result = Ocr.Read(Input);

   // Output the recognized text to the console 
   Console.WriteLine(Result.Text);
}
C#
准备开始了吗?
Nuget 下载 5,384,824 | 版本: 2026.2 刚刚发布