quirc
quirc copied to clipboard
Add support for micro QR-Code
Hello, Would you be willing to add support for micro QR-code? https://www.qrcode.com/en/codes/microqr.html Regards,
On Thu, Dec 16, 2021 at 07:13:13AM -0800, Mathieu Goutelle wrote:
Hello, Would you be willing to add support for micro QR-code? https://www.qrcode.com/en/codes/microqr.html Regards,
That likely wouldn't be easy without writing an entirely new library. Quirc depends pretty heavily on being able to find three finder patterns to align its perspective transformation
-- Daniel Beer @.***> http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B
That's was also my feeling looking at the code. Currently, inspect
shows that the finder pattern is found. What I was unsure about is the difficulty to change the behaviour afterwards...
So I just adapted a QR Code reader to detect Micro QR Codes in a different library. Looking at a change log it took about a week to do it over winter break. Modifying the original QR detector was fairly easy as it now just treats every finder pattern as a possible marker and tries to decode it in 4-different orientations. After that a lot of it could be coded up using a regular QR code as a starting point.
Can't say for sure if this experience will translate to Quirc, but most of the hard problem solving had been done and it's mostly going through the motions.