Skip to content
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

mrz.generator: wrong output when primary id == "" #2

Open
Arg0s1080 opened this issue Nov 23, 2018 · 0 comments
Open

mrz.generator: wrong output when primary id == "" #2

Arg0s1080 opened this issue Nov 23, 2018 · 0 comments
Assignees
Labels
bug Something isn't working GENERATOR MRZ.GENERATOR Issues

Comments

@Arg0s1080
Copy link
Owner

I discovered that something similar (comes from #1) happens in mrz.generator. When the primary identifier is not given, an incorrect output is got. For example:

from mrz.generator.td3 import TD3CodeGenerator

print(TD3CodeGenerator("P",           # Document type
                       "Utopia",      # Country
                       "",            # Surname(s)
                       "Anna María",  # Given name(s)
                       "L898902C3",   # Passport number
                       "UTO",         # Nationality
                       "740812",      # Birth date
                       "F",           # Genre
                       "120415",      # Expiry date
                       "ZE184226B"))  # Id number

This wrong output is got:

P<UTO<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<<<<<<<<<
L898902C36UTO7408122F1204159ZE184226B<<<<<10

Originally posted by @Arg0s1080 in #1 (comment)

@Arg0s1080 Arg0s1080 self-assigned this Nov 23, 2018
@Arg0s1080 Arg0s1080 added the bug Something isn't working label Nov 23, 2018
@Arg0s1080 Arg0s1080 added the GENERATOR MRZ.GENERATOR Issues label Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GENERATOR MRZ.GENERATOR Issues
Projects
None yet
Development

No branches or pull requests

1 participant