IMVBarcodeDecoder3 Interface

The IMVBarcodeDecoder3 extends the IMVBarcodeDecoder2 interface. The IMVBarcodeDecoder3 interface contains methods and properties to configure the MontiVision Barcode Decoder filter.

 

Methods:
BinarizationThreshold The segmentation threshold used in "limited environment" mode to binarize the input image (value 0 to 255).
OutputPreprocessedImage Output the preprocessed image in order to be able to visually improve the environment settings.
AutomaticOptimization Not implemented.
ReadSingleCode Search for a single barcode rather than multiple codes.
Attention: The standard decoder may decode multiple codes anyway, since this option just optimizes the recognition algorithm for one code.
WhiteCodes Search for bright codes on dark background. By default, the standard decoder searches dark codes on a brighter background.
Attention: Not implemented on the advanced decoder, since it automatically detects both types.
DataIsUNICODE Specifies whether the code content should be converted to UNICODE.

 

Header file: IMVBarcodeDecoder.h
Interface definition language file: IMVBarcodeDecoder.idl
Type Library: MVBarcodeDecoderStandard, MVBarcodeDecoderAdvanced
Interface ID: IID_IMVBarcodeDecoder3

 

Methods:

 

Property IMVBarcodeDecoder3::BinarizationThreshold

Declaration: Property Get/Put BinarizationThreshold As Integer

The segmentation threshold used in "limited environment" mode to binarize the input image (value 0 to 255). Used, if the environment is set to MV_BARCODE_ENV_LIMITED using the IMVBarcodeDecoder::Environment property.

Parameter:
- -

 

C Prototype:

HRESULT put_BinarizationThreshold(int);
HRESULT get_BinarizationThreshold(int*);

 

Property IMVBarcodeDecoder3::OutputPreprocessedImage

Declaration: Property Get/Put OutputPreprocessedImage As Boolean

Output the preprocessed image in order to be able to visually improve the environment settings.

Parameter:
- -

 

C Prototype:

HRESULT put_OutputPreprocessedImage(VARIANT_BOOL);
HRESULT get_OutputPreprocessedImage(VARIANT_BOOL*);

 

Property IMVBarcodeDecoder3::AutomaticOptimization

Declaration: Property Get/Put AutomaticOptimization As Boolean

Not implemented.

Parameter:
- -

 

C Prototype:

HRESULT put_AutomaticOptimization(VARIANT_BOOL);
HRESULT get_AutomaticOptimization(VARIANT_BOOL*);

 

Property IMVBarcodeDecoder3::ReadSingleCode

Declaration: Property Get/Put ReadSingleCode As Boolean

Search for a single barcode rather than multiple codes.
Attention: The standard decoder may decode multiple codes anyway, since this option just optimizes the recognition algorithm for one code.

Parameter:
- -

 

C Prototype:

HRESULT put_ReadSingleCode(VARIANT_BOOL);
HRESULT get_ReadSingleCode(VARIANT_BOOL*);

 

Property IMVBarcodeDecoder3::WhiteCodes

Declaration: Property Get/Put WhiteCodes As Boolean

Search for bright codes on dark background. By default, the standard decoder searches dark codes on a brighter background.
Attention: Not implemented on the advanced decoder, since it automatically detects both types.

Parameter:
- -

 

C Prototype:

HRESULT put_WhiteCodes(VARIANT_BOOL);
HRESULT get_WhiteCodes(VARIANT_BOOL*);

 

Property IMVBarcodeDecoder3::DataIsUNICODE

Declaration: Property Get/Put DataIsUNICODE As Boolean

Specifies whether the code content should be converted to UNICODE.

Parameter:
- -

 

C Prototype:

HRESULT put_DataIsUNICODE(VARIANT_BOOL);
HRESULT get_DataIsUNICODE(VARIANT_BOOL*);