Machine Readable Zone generator and checker for official travel documents sizes 1, 2, 3, MRVA and MRVB (Passports, Visas, national id cards and other travel documents)
GNU General Public License v3.0
328
stars
122
forks
source link
mrz.generator: wrong output when primary id == "" #2
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
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:
This wrong output is got:
Originally posted by @Arg0s1080 in https://github.com/Arg0s1080/mrz/issues/1#issuecomment-439701136