id1945 / ngx-scanner-qrcode

This library is built to provide a solution scanner QR code. This library takes in raw images and will locate, extract and parse any QR code found within.
https://id1945.github.io/ngx-scanner-qrcode
GNU Lesser General Public License v2.1
54 stars 26 forks source link

Ability to scan inverted (white on black) codes #63

Open Romanizat opened 4 months ago

Romanizat commented 4 months ago

I use your library to activate video scanning from a device and it's active until it scans the QR code, and it works great, thanks!

But...

I require scanning of inverted QR codes (white code on black background), and I've been trying all kinds of hacks to get it to work, but apparently it only registers black code on white background.

I have been trying to invert the input video, but to no avail.

id1945 commented 3 months ago

@Romanizat Thank you for raising the above issue. Currently I don't have a way to solve this problem.

Romanizat commented 3 months ago

@id1945 Thank you for the reply.

If it is any help, I have found jsQR and am using it in my project now for scanning inverted and normal QR codes.

This is a pure javascript library for which i need to make a wrapper for the webcam and mobile devices that already exist in your library.

I don't know which underlying library you are using for the scanning, but if you can just replace it with this one, or try both, I think it will solve the issue and provide a better expansion to your library.

All the best!