IRONSOFTWAREHOME
Leer cheque MICR
using IronOcr;
using IronSoftware.Drawing;
using System;

// 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())
{
    // Specify the MICR of the image to focus on for OCR (coordinates in pixels)
    var contentArea = new Rectangle(x: 124, y: 238, width: 309, height: 13);
    // Load the image with the defined content area
    input.LoadImage("micr.png", contentArea);
    // 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);
}
Imports IronOcr
Imports IronSoftware.Drawing
Imports System

' Create a new instance of IronTesseract for performing OCR operations
Dim 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 input = New OcrInput()
    ' Specify the MICR of the image to focus on for OCR (coordinates in pixels)
    Dim contentArea = New Rectangle(x:=124, y:=238, width:=309, height:=13)
    ' Load the image with the defined content area
    input.LoadImage("micr.png", contentArea)
    ' Run the OCR engine to read the MICR text from the input image
    Dim result = ocr.Read(input)

    ' Output the recognized text to the console
    Console.WriteLine(result.Text)
End Using
NuGet Download
PM > Install-Package IronOcr
Leer cheque MICR

Leer cheque MICR

Los cheques son un método confiable para manejar transacciones significativas. Con IronOCR, puedes procesar de manera confiable cheques MICR E-13B para automatizar depósitos bancarios y otros flujos de trabajo financieros. El motor especializado está ajustado para ofrecer la mayor precisión en información crítica, incluyendo números de ruta, números de cuenta y números de cheque.

El siguiente ejemplo de código demuestra cómo escanear un cheque MICR en solo unos pocos pasos simples.

Explicación del código

Para leer un cheque MICR, primero necesitamos establecer el OCR.Language en OcrLanguage.MICR para asegurar que IronOCR reconozca que esta lectura es específicamente para cheques MICR. Sin embargo, tenga en cuenta que el paquete OcrLanguage.MICR debe instalarse antes de usar, o se producirá un error.

Luego, definimos un rectángulo como nuestra región OCR para especificar a IronOCR que busque la parte MICR en el cheque MICR, asegurando la mayor precisión.

Después, llamamos al LoadImage para cargar la imagen de su cheque junto con el área de contenido definida en la línea anterior. Finalmente, llamamos al método Read para escanear la imagen de cheque de muestra. Luego imprime el texto extraído del proceso OCR.

¡Descubra el poder del reconocimiento de cheques MICR con nuestra completa guía de C#!
Ver en GitHub

¿Listo para empezar?

Nuget Downloads 6,236,385Versión:2026.9recién lanzado

Key in blue circle

Obtenga su clave de prueba gratuita de 30 días al instante.

Your trial license will be sent to your email address

Sin limitaciones. 100 % desbloqueado. Sin tarjeta de crédito.

bullet_checkedNo se requiere tarjeta de crédito ni creación de cuentaSin limitaciones. 100 % desbloqueado. Sin tarjeta de crédito.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Obtén tu Consulta Sin Compromiso
Completa el formulario a continuación o envía un correo a sales@ironsoftware.com
Tus detalles siempre serán mantenidos confidenciales.
Confiado por millones de ingenieros en todo el mundo
Logos de clientes de Iron Software
Obtenga su Clave de Prueba de 30 días gratis al instante.
No se requiere tarjeta de crédito ni creación de cuenta