-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codes which has two or more types of blocks cannot be recognized by QRQR. #54
Comments
I haven't been able to fix this problem yet, but I've found that the code that QRQR can't recognize has 2 block definitions. from src.rmqrcode import rMQR, ErrorCorrectionLevel
from src.rmqrcode.format.rmqr_versions import rMQRVersions
def print_table(e: ErrorCorrectionLevel):
rows = [7, 9, 11, 13, 15, 17]
cols = [27, 43, 59, 77, 99, 139]
print('| |' + '|'.join((f'{i:>3}' for i in cols)) + '|')
print('|---|' + '|'.join(('---' for i in rows)) + '|')
for row in rows:
print(f'|R{row:<2}|', end='')
for col in cols:
version = f'R{row}x{col}'
if not rMQR.validate_version(version):
print(' - |', end='')
continue
b = rMQRVersions[version]['blocks'][e]
print(f' {len(b)} |', end='')
print('')
print_table(ErrorCorrectionLevel.M)
print()
print_table(ErrorCorrectionLevel.H) ErrorCorrectionLevel.M
ErrorCorrectionLevel.H
|
rmqrcode-python/src/rmqrcode/rmqrcode.py Lines 387 to 409 in 9dbbc2c
line 394,406 : Change |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The codes that generated this library with these versions are could not be recognized with QRQR.
to Reproduce
Scan the code generated by the following code:
Versions that could not be recognized
ErrorCorrectionLevel.M
ErrorCorrectionLevel.H
The text was updated successfully, but these errors were encountered: