The decode function is established to decode a barcode image file to get the value. If it is not decodable, the return will be null.
var msg = barcode.decode("test.png");
Calling | Returning |
---|---|
barcode . decode ( imagePath ) | {String | null} |
Parameters | Type | Description |
---|---|---|
imagePath | String | The barcode image file path relatived to the storage folder. |