Handwriting recognition by using deep learning to extract meaningful features