NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
718 stars 175 forks source link

How to ensure the order of the 4 points of the polygon is always correct?How to find the bottom or top border's points? #144

Open 12343954 opened 1 year ago

12343954 commented 1 year ago
image

the same question is here: https://stackoverflow.com/questions/52678376/how-to-detect-top-edge-of-qr-code-in-python-and-pyzbar/52681707

i can not get the correct angle of rotation, because the position of the P1 and P2 is not correct sometimes. what can i do? thank you very much!