An end-to-end deep learning system for medieval writer identification