A shape analysis model with application to character and word recognition by