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)
Several people have asked me by email how they get the fields (names, surnames, nationality, type of document, etc. strings) without access to a protected member of the class. Therefore I have created the fields() method for td1, td2, td3, mrva and mrvb.
Several people have asked me by email how they get the fields (names, surnames, nationality, type of document, etc. strings) without access to a protected member of the class. Therefore I have created the
fields()
method for td1, td2, td3, mrva and mrvb.For example:
To get identifiers, country, and date of birth....
Before (accessing to protected members of the class):
Output:
Now:
fields()
method returns a namedtuple with all fields strings:Returns:
So, to get given names, surnames and birth date:
Output:
Available fields
id cards and others td1's:
td2's:
Passports and other td3's:
Any Visa (mrva & mrvb)