Detects Magnetic Ink Character Recognition (MICR) zones on a bitmap, using a specified set of options.
#include "l_bitmap.h"
L_LTIMGCOR_API L_INT L_MICRDetectionEXT(pBitmap, pOptions, uFlags)
The reference to the bitmap.
The specified options passed to the detection.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Specify the rcInputROI in the MICRCODEDETECTOROPTIONS structure to detect the MICR zone.
This function processes only the region specified by the rcInputROI. It does not support regions.
This function supports 8-, 12-, and 16-bit grayscale images and 24- and 32-bit color images.
Win32, x64, Linux.
This example loads a bitmap and applies MICR detection with a specified set of options.
L_INT MICRDetectionEXTBitmapExample(L_VOID)
{
L_INT nRet;
/* Bitmap handle to hold the loaded image. */
BITMAPHANDLE LeadBitmap;
MICRCODEDETECTOROPTIONS micrOptions = { 0 };
/* Load the bitmap, keeping the bits per pixel of the file */
nRet = L_LoadBitmap(MAKE_IMAGE_PATH(TEXT("bankcheck.jpg")), &LeadBitmap, sizeof(BITMAPHANDLE), 0, ORDER_BGR, NULL, NULL);
if (nRet != SUCCESS)
return nRet;
/* Specify the region of interest for the MICR zone. */
micrOptions.uStructSize = sizeof(MICRCODEDETECTOROPTIONS);
micrOptions.rcInputROI = { 500, 600, LeadBitmap.Width, LeadBitmap.Height };
nRet = L_MICRDetectionEXT(&LeadBitmap, &micrOptions, 0);
/* Free bitmap. */
if (LeadBitmap.Flags.Allocated)
L_FreeBitmap(&LeadBitmap);
return nRet;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document