mobile_scanner
mobile_scanner copied to clipboard
Multiple values for code39 barcode
I get multiple values when I scan a code39 type of barcode.
Flutter version: 3.19.0 Package version: 3.5.7
Example:
Output onDetect:
onDetect: (capture) {
for (final bc in capture.barcodes) {
print('${bc.rawValue} || ${bc.displayValue} (format = ${bc.format}, type = ${bc.type})');
}
// Returns
/*
20472E8
20472O
20472148
20472142 // Should be the only result
20472842
2047HE8
20472E
204724
*/
Where do the values come from?
Well, that depends on how MLKit detects the barcode. There isn't much we can do here.