As explained in the intro, we don’t try to parse the MRZ zone to check the validity. Our neural network works like a human brain to detect the MRZ lines regardless the content. The big advantage with such method is that we don’t need to define a list of supported countries or formats. All countries and formats are supported.
Like any implementation there could be errors when the provided image isn’t clear enough. This is where you’ll need to check the characters against some regular expressions. The next sections explain how to reach 100% accuracy using regular expressions and check digits validation.