ReadBarcode

Detect and interpret a 1d barcode within the provided image. Can be canceled by Watchdog.

Syntax

Definition:

HRESULT ReadBarcode(
    HRESULT          hrPrev,
    ITcVnImage*      ipSrcImage,
    ITcVnContainer*& ipDecodedData,
    ULONG            eBarcodeType
)

Parameters

Name

Type

Description

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

ipSrcImage

ITcVnImage*

Source image (USINT elements, 1 channel or 3 channel (3 channel input is expected to be RGB and internally converted to Gray))

ipDecodedData

ITcVnContainer*&

Returns the decoded code (ContainerType_Vector_String_SINT)

eBarcodeType

ULONG

Types of barcode to search for (ETcVnBarcodeType)

ReadBarcode 1: Return value

HRESULT

Required License

TC3 Vision Code Reading

System Requirements