Python implementation of writer recognition from digits