Page 1 of 1

Barcode reading

Posted: August 11th, 2023, 11:51 am
by AriSilva
Hi folks,
I´m using the barcode.read instruction, as in
string resultado = barcode.read("Entrevistador, faça a leitura do código de barras");
It works very well when the Tablet is connected to the internet, but my interviewers are claiming that it does not work if there is no internet connection.
Is that true?
Does it have any limitation in using the barcode instruction as far as the internect conection is concerned?
Best regarsd
Ari

Re: Barcode reading

Posted: August 12th, 2023, 4:32 am
by htuser
This could be because CSPro barcode scanner function depend on Google Play libraries who're based on Google Machine Learning (ML)API (formerly Google Vision API) https://developers.google.com/ml-kit/vi ... e-scanning
https://developers.google.com/ml-kit/vi ... ng/android
And, improve the training of their ML algorithms and increase accuracy could be among reasons that Google require this internet connexion...

If you want standalone Barcode Scanner, I would suggest your to take a look on these JS implementations:
a) https://web.dev/mishipay/
b) https://github.com/mebjas/html5-qrcode
Best

Re: Barcode reading

Posted: August 12th, 2023, 8:41 am
by AriSilva
Thanks, htuser,
I´ll have a look at your suggestions.
Best
Ari