Recognition and verification of unconstrained handwritten numerals