Functions | |
cvbres_t | ZXBinarize (IMG imageIn, cvbdim_t plane, cvbdim_t left, cvbdim_t top, cvbdim_t right, cvbdim_t bottom, TZXBinarizerMode binarizerMode, IMG &imgOut) |
Binarize the input image. More... | |
cvbres_t | ZXReadCode (IMG imageIn, cvbdim_t plane, cvbdim_t left, cvbdim_t top, cvbdim_t right, cvbdim_t bottom, TZXBinarizerMode binarizerMode, TZXReaderMode readerMode, TZXBarcodeFormats barcodeFormats, TZXResult &result) |
Read one barcode in an image. More... | |
cvbres_t | ZXReadMultipleCodes (IMG imageIn, cvbdim_t plane, cvbdim_t left, cvbdim_t top, cvbdim_t right, cvbdim_t bottom, TZXBinarizerMode binarizerMode, TZXReaderMode readerMode, TZXBarcodeFormats barcodeFormats, size_t &maxResults, TZXResult *results) |
Read multiple barcodes in an image. More... | |
cvbres_t ZXBinarize | ( | IMG | imageIn, |
cvbdim_t | plane, | ||
cvbdim_t | left, | ||
cvbdim_t | top, | ||
cvbdim_t | right, | ||
cvbdim_t | bottom, | ||
TZXBinarizerMode | binarizerMode, | ||
IMG & | imgOut | ||
) |
Binarize the input image.
This function applies the binarizer that the function ZXReadCode is going use internally.
[in] | imageIn | Input image. The plane of the input image to be processed needs to have 8 bits per pixel, otherwise an error will be returned. |
[in] | plane | Plane of the input image to be processed. Must be in the range [0...ImageDimension(imageIn)-1]. Note that ZXing Barcode can only process luminance information. If the input image uses a color format, either select a suitable plane or convert it to luminance information before processing it in ZXBarcode. |
[in] | left | Left edge of the area of interest. |
[in] | top | Top edge of the area of interest. |
[in] | right | Right edge of the area of interest. |
[in] | bottom | Bottom edge of the area of interest. |
[in] | binarizerMode | Selects the binarization algorithm to use. Valid values are taken from the TZXBinarizerMode enumeration. |
[out] | imgOut | If the input image was binarized successfully, then imgOut will receive the binarized image. |
CVC_ERROR_FROM_HRES
before comparing!): Value | Meaning |
---|---|
CVC_E_OK | The input was successfully processed. |
CVC_E_NOIMAGE | imageIn does not refer to a valid CVB image. |
CVC_E_INVALIDPLANE | plane is outside the range [0...ImageDimension(imageIn)-1] |
CVC_E_INVALIDDATATYPE | the selected image plane does not have 8 bits per pixels |
CVC_E_PARAMETER | The parameters left , top , right and bottom do not define a valid area of interest or an invalid binarizer mode was specified. |
CVC_E_ERROR | an unspecified error occurred |
cvbres_t ZXReadCode | ( | IMG | imageIn, |
cvbdim_t | plane, | ||
cvbdim_t | left, | ||
cvbdim_t | top, | ||
cvbdim_t | right, | ||
cvbdim_t | bottom, | ||
TZXBinarizerMode | binarizerMode, | ||
TZXReaderMode | readerMode, | ||
TZXBarcodeFormats | barcodeFormats, | ||
TZXResult & | result | ||
) |
Read one barcode in an image.
Unlike its counterpart, ZXReadMultipleCodes, this function only reads one code. For an image with more than one code of the selected symbology it is undefined which code will be returned.
[in] | imageIn | Input image. The plane of the input image to be processed needs to have 8 bits per pixel, otherwise an error will be returned. |
[in] | plane | Plane of the input image to be processed. Must be in the range [0...ImageDimension(imageIn)-1]. Note that ZXing Barcode can only process luminance information. If the input image uses a color format, either select a suitable plane or convert it to luminance information before processing it in ZXBarcode. |
[in] | left | Left edge of the area of interest. |
[in] | top | Top edge of the area of interest. |
[in] | right | Right edge of the area of interest. |
[in] | bottom | Bottom edge of the area of interest. |
[in] | binarizerMode | Selects the binarization algorithm to use. Valid values are taken from the TZXBinarizerMode enumeration. |
[in] | readerMode | Specifies a reader mode as defined in the TZXReaderMode enumeration. |
[in] | barcodeFormats | Provides a hint at what barcode formats are to be expected in the image. This hint does not limit the reading of codes
|
[out] | result | Properties of the barcode that has been read. |
CVC_ERROR_FROM_HRES
before comparing!): Value | Meaning |
---|---|
CVC_E_OK | The input was successfully processed. |
CVC_E_NOIMAGE | imageIn does not refer to a valid CVB image. |
CVC_E_INVALIDPLANE | plane is outside the range [0...ImageDimension(imageIn)-1] |
CVC_E_INVALIDDATATYPE | the selected image plane does not have 8 bits per pixels |
CVC_E_PARAMETER | The parameters left , top , right and bottom do not define a valid area of interest or an invalid binarizer mode was specified or an invalid format was specified. |
CVC_E_NOTENOUGHDATA | The function was unable to find and/or read a bar or matrix code |
CVC_E_ERROR | an unspecified error occurred |
cvbres_t ZXReadMultipleCodes | ( | IMG | imageIn, |
cvbdim_t | plane, | ||
cvbdim_t | left, | ||
cvbdim_t | top, | ||
cvbdim_t | right, | ||
cvbdim_t | bottom, | ||
TZXBinarizerMode | binarizerMode, | ||
TZXReaderMode | readerMode, | ||
TZXBarcodeFormats | barcodeFormats, | ||
size_t & | maxResults, | ||
TZXResult * | results | ||
) |
Read multiple barcodes in an image.
Unlike its counterpart, ZXReadCode, this function reads all recognizable codes of the selected symbologies in an image.
[in] | imageIn | Input image. The plane of the input image to be processed needs to have 8 bits per pixel, otherwise an error will be returned. |
[in] | plane | Plane of the input image to be processed. Must be in the range [0...ImageDimension(imageIn)-1]. Note that ZXing Barcode can only process luminance information. If the input image uses a color format, either select a suitable plane or convert it to luminance information before processing it in ZXBarcode. |
[in] | left | Left edge of the area of interest. |
[in] | top | Top edge of the area of interest. |
[in] | right | Right edge of the area of interest. |
[in] | bottom | Bottom edge of the area of interest. |
[in] | binarizerMode | Selects the binarization algorithm to use. Valid values are taken from the TZXBinarizerMode enumeration. |
[in] | readerMode | Specifies a reader mode as defined in the TZXReaderMode enumeration. |
[in] | barcodeFormats | Provides a hint at what barcode formats are to be expected in the image. This hint does not limit the reading of codes
|
[in,out] | maxResults | Maximum number of results the memory block pointed to by maxResults can hold. If the call returns successfully (as indicated by the return value CVC_E_ERROR ) then maxResults will hold the number of codes that was read successfully. If reading failed the parameter will be set to zero. |
[in] | results | Pointer to a block of memory that receives the barcode read results. Must be allocated by the caller and needs to be big enough to hold at least maxResults results. |
CVC_ERROR_FROM_HRES
before comparing!): Value | Meaning |
---|---|
CVC_E_OK | The input was successfully processed. |
CVC_E_NOIMAGE | imageIn does not refer to a valid CVB image. |
CVC_E_INVALIDPLANE | plane is outside the range [0...ImageDimension(imageIn)-1] |
CVC_E_INVALIDDATATYPE | the selected image plane does not have 8 bits per pixels |
CVC_E_PARAMETER | The parameters left , top , right and bottom do not define a valid area of interest or an invalid binarizer mode was specified or an invalid format was specified. |
CVC_E_NOTENOUGHDATA | The function was unable to find and/or read a bar or matrix code |
CVC_E_ERROR | an unspecified error occurred |