Clean digit, separate pairs using contours.