Hi,
If a QR code is rotated for both 45-degree angle or -45-degree angle, it will be treated as "UP" which causing difficulty in correctly distinguish the two situation since a QR code is a square.
Is it possible to make -45-degree angle been treated as "LEFT" so we can get the top left corner position of the QR-code by calculating the min-distance between the polygon point to the Rect point?
I tried this by generating a QR code and rotate it with GIMP.
Hi, If a QR code is rotated for both 45-degree angle or -45-degree angle, it will be treated as "UP" which causing difficulty in correctly distinguish the two situation since a QR code is a square.
Is it possible to make -45-degree angle been treated as "LEFT" so we can get the top left corner position of the QR-code by calculating the min-distance between the polygon point to the Rect point?
I tried this by generating a QR code and rotate it with GIMP.
45-degree clockwise (to right)
-45-degree counter-clockwise (to left)
46-degree clockwise (to right)
Here are some code for testing