L_ImgKrnDetectBusinessCard

#include "l_bitmap.h"

L_LTIMGKRN_API L_INT L_ImgKrnDetectBusinessCard(bitmap, businessCardArea)

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

Parameters

BITMAPHANDLE *bitmap

Pointer to the bitmap handle that contains the business card to be detected.

L_POINT *businessCardArea

An array of L_POINT that contains the points that represent the edges of the business card that have been detected.

Returns

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

Comments

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.

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.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

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

LEADTOOLS Raster Imaging C API Help