#include "l_bitmap.h"

L_LTIMGKRN_API L_INT L_ImgKrnDetectBusinessCard(bitmap, businessCardArea)

BITMAPHANDLE *bitmap; pointer to the bitmap handle
L_POINT *businessCardArea; points that represent the document corners

Detects and obtains the points that represent the business card corners in an image.

Parameter Description
bitmap Pointer to the bitmap handle that contains the business card to be detected.
businessCardArea An array of L_POINT that contains the points that represent the edges of the business card that have been detected


SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.


For best results, the business card's boundaries should be inside the captured view and have a different background color than the background of the captured view.

Use the results from L_ImgKrnDetectBusinessCard as the input points for the L_ImgKrnPerspectiveCorrectionData structure, which is used by the L_ImgKrnManualPerspectiveCorrection function to correct the perspective of the detected business card.

This function can be used even if there is depth (z-axis) deformation as well as deformation along the x- and y- axes.

Required DLLs and Libraries

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.


Win32, x64, Linux.

Note: All functions with the L_ImgKrn prefix modify the underlying properties of the input BITMAPHANDLE, including but not limited to:

To avoid BITMAPHANDLE property fidelity loss, pass a copy of your BITMAPHANDLE to all L_ImgKrn* functions.

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help