I know that usually an UPC-A code can be "converted" into an EAN13 code by placing a leading 0, so maybe this could be the cause of the error. But the graphical render of a EAN13 code is quite different from an UPC-A code, as one can see from the following comparison:
Capacitor doctor
$ npx cap doctor
[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
💊 Capacitor Doctor 💊
This should be an issue in the underlying library. Please create an issue in https://github.com/googlesamples/mlkit. This Capacitor plugin is just a wrapper around the ML Kit SDK.
Plugin(s)
Version
5.4.0
Platform(s)
Current behavior
EAN13 codes starting with 0 are detected as UPC-A code, dropping the leading 0 in the returned code.
Expected behavior
EAN13 codes should be detected as they are, even when the code starts with 0.
Reproduction
https://github.com/robingenz/capacitor-mlkit-plugin-demo
Steps to reproduce
Other information
I know that usually an UPC-A code can be "converted" into an EAN13 code by placing a leading 0, so maybe this could be the cause of the error. But the graphical render of a EAN13 code is quite different from an UPC-A code, as one can see from the following comparison:
Capacitor doctor
$ npx cap doctor [warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted. 💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.7.3 @capacitor/core: 5.7.3 @capacitor/android: 5.7.3 @capacitor/ios: 5.7.3
Installed Dependencies:
@capacitor/cli: 5.4.1 @capacitor/core: 5.4.1 @capacitor/android: 5.4.1 @capacitor/ios: 5.4.1
[success] iOS looking great! 👌 [success] Android looking great! 👌
Before submitting