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. I've had fun with the Barcode Detection API, but found that Safari and Chrome doesn't support it on iOS. I have found your library looking for a way to work around the issues and polyfill the API.
Every time I call Quagga to decodeSingle, it adds a bunch of warnings to the console to the point that its difficult to debug anything else when streaming video. It seems that these warnings are diagnostic information for debugging rather than actual warnings. I have tried changing the configuration debug setting to false, but the warnings still appear.
Here is my code. In this case, the src is a data url from canvas.toDataURL()
// https://cdn.jsdelivr.net/npm/@ericblade/quagga2/dist/quagga.min.jsconstconfig={
src,decoder: {readers: ['code_128_reader']},debug: false};constcallback=result=>{if(result){console.log('got a result',result);}else{console.log('nothing');}};window.Quagga.decodeSingle(config,callback)
I reviewed the quagga2 source code and found that all of the console messages are hard-coded to write output without checking any of the configuration debug settings.
Thank you for filing an issue! Please be patient. :-)
lewismoten
changed the title
Console has warning logs that only contain diagnostic information when debug is false
config.debug ignored. console.warn only contains debug info
May 19, 2024
Hello. I've had fun with the Barcode Detection API, but found that Safari and Chrome doesn't support it on iOS. I have found your library looking for a way to work around the issues and polyfill the API.
Every time I call Quagga to
decodeSingle
, it adds a bunch of warnings to the console to the point that its difficult to debug anything else when streaming video. It seems that these warnings are diagnostic information for debugging rather than actual warnings. I have tried changing the configurationdebug
setting tofalse
, but the warnings still appear.Here is my code. In this case, the src is a data url from canvas.toDataURL()
I reviewed the
quagga2
source code and found that all of the console messages are hard-coded to write output without checking any of the configuration debug settings.https://github.com/search?q=repo%3Aericblade%2Fquagga2%20console.warn&type=code
The text was updated successfully, but these errors were encountered: