heuer / segno

Python QR Code and Micro QR Code encoder
https://pypi.org/project/segno/
BSD 3-Clause "New" or "Revised" License
624 stars 54 forks source link

Not able to decode with OpenCV or Instascan #103

Closed rickmedlin closed 2 years ago

rickmedlin commented 2 years ago

I'm able to create the codes, but not able to scan them with either OpenCV / pyzbar or the Javascript Instascan library.

Is there a minimum size that is needed for scanning? The requirement for my job is to fit the QR on a very small (1.5" x 0.5") label.

heuer commented 2 years ago

I've no experience with OpenCV but I discovered that pyzbar needs a minimum scale of three, see https://github.com/heuer/segno/blob/master/tests/test_encode_decode.py#L36

One pixel per module might be too small for OpenCV as well.

I hope that helps.

PS: Assuming that we're talking about QR codes and not Micro QR codes. OpenCV and pyzbar don't support Micro QR codes.

rickmedlin commented 2 years ago

Okay, thanks. Closing for now.