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.
|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
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.
|Functions:||L_ImgKrnCopyImage, L_ImgKrnCreateImage, L_ImgKrnCropImage, L_ImgKrnDetectGlare, L_ImgKrnFromYUV, L_ImgKrnInvertImage, L_ImgKrnManualPerspectiveCorrection, L_ImgKrnRotateFlipImage, L_ImgKrnSignalToNoiseRatio|
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries