Open apimio opened 2 years ago
I think you need to pre process the pictures before recognition. I can't decode this QR code on other websites.
canvas is useful
var canvas = document.getElementsByTagName("canvas")[0];
var ctx = canvas.getContext('2d')
function animate(){
ctx.drawImage(video , 0 , 0 , vw , vh);
var img=ctx.getImageData(0,0,50,50);
...
}
Thanks a lot. Finally .. I found a wait to fix the issue. Sadly, I had to change our implementations by qr-scanner library.
@apimio what was the fix?
Guys ..please ..I have a very big issue. I have some years using the library, working perfectly with it, but now I have a issue with some kind of QR codes. The size of each QR code is about 8x8 cms., but the contrast is lower (some examples attached). The librery is not reading some QR codes. I'd change some config parameter (even I tried useBarCodeDetectorIfSupported not official options). This my current code
If I read any other QR code from a site, QR app generator , I don´t have any problem. If I test reading the QR with native App, even directly from phone camera I dont have any issue, it's just with using the library.
Thanks a Lot for your help!!!!