You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, guys. I've encountered an issue where inverted (dark theme) EAN-13 barcodes are not recognized by mobile_scanner. When using a standard barcode (black bars on white background), the barcode is scanned correctly. However, when I invert the colors (white bars on black background), the scanner fails to detect the barcode.
Steps:
Display an EAN-13 barcode in the standard color scheme (black bars on white background).
– Attempt to scan it using mobile_scanner. This barcode is scanned successfully.
– Invert the colors (white bars on black background) to simulate a dark theme.
– Attempt to scan the inverted barcode. The scanner fails to detect the barcode.
Screenshots:
Correctly recognized barcode in light theme:
Barcode not recognized in dark theme:
As reported above, this seems like an issue in MLKit that does not detect inverted barcodes.
I'll test this on MacOS, to see if the Vision API has the same issue. If MacOS does not have that issue, then this will be fixed in the next major release, that will use the Vision API on iOS as well. For Android we will look into adding support for inverted barcodes, like with the PR mentioned above.
Hello, guys. I've encountered an issue where inverted (dark theme) EAN-13 barcodes are not recognized by mobile_scanner. When using a standard barcode (black bars on white background), the barcode is scanned correctly. However, when I invert the colors (white bars on black background), the scanner fails to detect the barcode.
Steps:
– Attempt to scan it using mobile_scanner. This barcode is scanned successfully.
– Invert the colors (white bars on black background) to simulate a dark theme.
– Attempt to scan the inverted barcode. The scanner fails to detect the barcode.
Screenshots:
Correctly recognized barcode in light theme:
Barcode not recognized in dark theme:
Environment:
mobile_scanner version: 5.2.3
Flutter version: 3.24.3
Dart version: 3.5.3
Devices: Honor 30, Pixel 8, Honor 10x Lite
The text was updated successfully, but these errors were encountered: