Leaper WaferScan Toolkit
中文 / English 2.x
Public Member Functions | Properties
ILBarcodeDetector Interface Reference

This interface provide functionalities of barcode detection and quality verification. More...

Inheritance diagram for ILBarcodeDetector:
ILObject LBarcodeDetector

Public Member Functions

LPVErrorCode Detect (ILImage *img, ILRegion *region, ILBarcodeResults **results)
 
- Public Member Functions inherited from ILObject
ILObjectCopy ()
 
LPVErrorCode Load (LString filename)
 
void Reset ()
 
LPVErrorCode Save (LString filename)
 
BOOL Valid ()
 

Properties

BOOL AllowDup [get, set]
 Whether duplicated symbols are allowed in multi-detection. By default, it's False, means for the duplicated barcode of the same decoded contents, only report the first one.
 
BOOL CheckSum [get, set]
 Whether decode will verify the check digit. By default, it's True.
 
int MaxCount [get, set]
 The maximum of barcode results to find. The detection stops if it meets the setting maximum.
 
LPVBarcodeType Type [get, set]
 The barcode symbologies for detection, it could be the combination of multiple symbologies.
 
BOOL VerifyQuality [get, set]
 Whether to do the barcode quality verification during detection. By default, it's False.
 

Detailed Description

This interface provide functionalities of barcode detection and quality verification.

Most popular 1D(linear) and 2D barcode symbologies are supported, see LPVBarcodeType for detailed list. The verification follows ISO-15416 standard for 1D codes, and ISO-15415 for 2D codes.

To use this interface, you should create a LBarcodeDetector object.

Example Code

Note: This interface is currently not available on Linux / MacOS platform.

Member Function Documentation

◆ Detect()

LPVErrorCode Detect ( ILImage img,
ILRegion region,
ILBarcodeResults **  results 
)

Detect barcode(and do quality verification) using the input image and the provided region.

Parameters
[in]img The input image
[in]regionThe input region, to limit the region of detection.
[out]resultsReturn the barcode results.
Return values
errorReturn error code if anything is wrong.