Adaptive Elastic Models for Hand-Printed Character Recognition