Unconstrained handwriting recognition applied to the processing of bank cheques