Closed monsieurtanuki closed 1 year ago
@MKCOOL142 (OnePlus 7Pro), @teolemon (Pixel 6), @thestarsahil (Redmi Note 8 pro), @natrius (Xiaomi Mi 9 with Android 10), @M123-dev (Samsung galaxy s21), @raphael0202 (Oneplus 7T), @chk1 (Sony Xperia 10 IV), @monsieurtanuki (Samsung Galaxy Core Prime SM-G360F), @CharlesNepote (???), @g123k (ZFlip3), @stephanegigandet (Samsung Galaxy S8)
Guys, the current develop
version of Smoothie now includes the "new" barcode scanner.
Please test it as much as possible, in real life conditions. If something strange happens it's better to know asap so we can fix it.
If you don't know how to install the develop
version of the app, I don't either, but I guess @M123-dev does know.
@monsieurtanuki i am confused on where to select which of the two (Zxing MLkit) to use for scanning, I found nothing in the settings mby I overlooked it
@MKCOOL142 (OnePlus 7Pro), @teolemon (Pixel 6), @thestarsahil (Redmi Note 8 pro), @natrius (Xiaomi Mi 9 with Android 10), @M123-dev (Samsung galaxy s21), @raphael0202 (Oneplus 7T), @chk1 (Sony Xperia 10 IV), @monsieurtanuki (Samsung Galaxy Core Prime SM-G360F), @CharlesNepote (???), @g123k (ZFlip3), @stephanegigandet (Samsung Galaxy S8)
Guys, the current
develop
version of Smoothie now includes the "new" barcode scanner. Please test it as much as possible, in real life conditions. If something strange happens it's better to know asap so we can fix it. If you don't know how to install thedevelop
version of the app, I don't either, but I guess @M123-dev does know.
Still Facing the same Autofocus problem
@MKCOOL142 @thestarsahil @natrius Be sure to use the latest develop
version - well, 4.6.0 is the latest published version.
If you're familiar with flutter, you can
flutter upgrade
# should be something like flutter 3.7 / dart 2.19smooth_app
codecd smooth-app/packages/smooth_app
flutter run -t lib/entrypoints/android/main_google_play.dart
# for mlkit (to be deployed in almost all play store)flutter run -t lib/entrypoints/android/main_fdroid.dart
# for zxing (to be deployed only on FDroid)I'm currently trying to create an apk
; I'll keep you posted.
@MKCOOL142 @thestarsahil @natrius Be sure to use the latest
develop
version - well, 4.6.0 is the latest published version.If you're familiar with flutter, you can
flutter upgrade
# should be something like flutter 3.7 / dart 2.19- get the latest
smooth_app
codecd smooth-app/packages/smooth_app
flutter run -t lib/entrypoints/android/main_google_play.dart
# for mlkit (to be deployed in almost all play store)flutter run -t lib/entrypoints/android/main_fdroid.dart
# for zxing (to be deployed only on FDroid)I'm currently trying to create an
apk
; I'll keep you posted.
Thanks for the update men
@thestarsahil Do you mean it finally works?
I'm currently trying to create an apk; I'll keep you posted.
Unfortunately I don't seem to be able to create that stupid apk. There are tons of thing I ignore about compiling - and I intend to keep it that way.
(Re-opening for the discussion in here)
Here a build apk ready to test, not for looks but for functionality. You can now switch the scanning engine (mlkit and zxing) in the dev settings (how to enter it)
https://drive.google.com/file/d/1R2b_rbQuq9Lv-vGErU-8xdvmumQYwhcz/view?usp=sharing
mhhh so I did some testing with ML Kit and it is more prone to scanning incorrectly (these screenshots are both from the same bar code)
@thestarsahil Do you mean it finally works?
I'm currently trying to create an apk; I'll keep you posted.
Unfortunately I don't seem to be able to create that stupid apk. There are tons of thing I ignore about compiling - and I intend to keep it that way.
Not working properly Have some time to update
@MKCOOL142 Possible reasons/fixes:
Not working properly Have some time to update
@thestarsahil Could you please be a little more specific about what works and what does not work, and with mlkit and zxing?
Not working properly Have some time to update
@thestarsahil Could you please be a little more specific about what works and what does not work, and with mlkit and zxing?
Actually, When we try to scan the barcode the scanner couldn't recognize that information from the product So Update on the camera feature! That Camera Focusing focuses on the object barcode
(Re-opening for the discussion in here)
Here a build apk ready to test, not for looks but for functionality. You can now switch the scanning engine (mlkit and zxing) in the dev settings (how to enter it)
https://drive.google.com/file/d/1R2b_rbQuq9Lv-vGErU-8xdvmumQYwhcz/view?usp=sharing
Test on Sony Xperia 10 IV:
MLKIT:
Zxing:
Thank you @chk1 for your positive feedback! About the red snackbar, it's being dealt with in #3782 #3787. The only problem seems to be the initial non-display of the scanner after onboarding: I'll have a look at it again.
@chk1 Could not reproduce the "no scanner after onboarding" bug with the latest code, with mlkit as default. Perhaps it's a side effect of the new (and temporary) mlkit/zxing test switch. I'll keep that bug in mind, hoping (?) I will reproduce it.
I just installed the new version (4.6.0) using internal release on my cellphone (OnePlus 7T), it works really well using MLKit, scanning is superfast, good job! :tada:
@raphael0202 Sounds good but unfortunately there's a possible confusion with versions, so please test with https://drive.google.com/file/d/1R2b_rbQuq9Lv-vGErU-8xdvmumQYwhcz/view?usp=sharing
Hi all, as the developer of the mobile_scanner package i am happy to help with any issues regarding the package.
A quick note about some people having trouble getting the correct barcode from a scan: The MLKit framework decides which resolution is used for an image to be analyzed, and i have found out that this can be to low on some devices.
I'm currently trying to find a solution by using some kind of 'quality presets', so we can improve scan accuracy on all devices.
I'm currently trying to find a solution by using some kind of 'quality presets', so we can improve scan accuracy on all devices.
Thank you @juliansteenbakker! If you could make it optional we'll have a better assessment of the actual impact of that fine-tuning.
This issue is closed now: we do have 2 barcode scanners (mlkit and zxing) working on flutter 3.7. Changes and improvements can be dealt with in different issues.
What
Steps to reproduce the behavior
Expected behavior
The barcode scan is supposed to work.
Why
The barcode scan is a key feature of Smoothie.
Additional context
Icing on the cake would be to refactor the barcode scan:
flutter run
start time) as - I suppose - the code was local and less complex. The PR worked very well and fixed a dozen of issues, including P0, but I had to close it because it discarded most of the current barcode scan code. The current barcode scan code is embedded in the rest of the code - you cannot touch it without touching the rest of the app - and should be completely isolated in a package instead.camera
package doesn't seem to work very well either (cf. #3674), and I recommend using native camera code.flutter run
takes 30 minutes and when I reload the app it crashes)