Thanks for the feedback!
The score calculation system is mainly a combination of Pythagoras' theorem to measure the pixel distance between each symbol on the passport, and where it should ideally be, taken away from the max possible score and clamped above 0. There's also an initial bonus for the correct passport cover.