BarcodeReader.decode Method¶
Module: BarcodeReader
Definition¶
Attempts to decode a barcode from the provided raw image data.
decode(self, data: bytearray) -> bool
Parameters
data
bytearrayin An array of bytes representing the raw image data that contains the barcode to be decoded.
Returns
bool
A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Exceptions
An error has occurred during Bioseal Library execution.
bool decode(Uint8List? data)
Parameters
data
Uint8Listin An array of bytes representing the raw image data that contains the barcode to be decoded.
Returns
bool
A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Exceptions
An error has occurred during Bioseal Library execution.
public bool Decode(byte[] data)
Parameters
data
byte[]in An array of bytes representing the raw image data that contains the barcode to be decoded.
Returns
bool
A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Exceptions
An error has occurred during Bioseal Library execution.
public boolean decode(byte[] data) throws BiosealException
Parameters
data
byte[]in An array of bytes representing the raw image data that contains the barcode to be decoded.
Returns
boolean
A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Exceptions
An error has occurred during Bioseal Library execution.
public func decode(data: [UInt8]) throws -> Bool
Parameters
data
[UInt8]in An array of bytes representing the raw image data that contains the barcode to be decoded.
Returns
Bool
A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Exceptions
An error has occurred during Bioseal Library execution.
int id3BiosealBarcodeReader_Decode (
ID3_BIOSEAL_BARCODE_READER hBarcodeReader,
unsigned char * data,
int dataSize,
bool * result)
Parameters
hBarcodeReader
ID3_BIOSEAL_BARCODE_READERin Handle to the BarcodeReader object.data
unsigned char *in An array of bytes representing the raw image data that contains the barcode to be decoded.dataSize
intin Size of the ‘data’ buffer.result
bool *out A boolean output that indicates the success of the decoding process. It is set to ‘true’ if the barcode is successfully decoded, otherwise ‘false’.
Returns