quirc icon indicating copy to clipboard operation
quirc copied to clipboard

Add support for micro QR-Code

Open mgoutelle opened this issue 3 years ago • 3 comments

Hello, Would you be willing to add support for micro QR-code? https://www.qrcode.com/en/codes/microqr.html Regards,

mgoutelle avatar Dec 16 '21 15:12 mgoutelle

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

dlbeer avatar Dec 17 '21 09:12 dlbeer

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...

mgoutelle avatar Dec 17 '21 09:12 mgoutelle

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.

lessthanoptimal avatar Feb 15 '22 06:02 lessthanoptimal