first cut of deskew

step 1: do a closure (dilate then erode) to close gaps between letters
to form strips
step 2: run linear regression on each strip to determine slope
step 3: eliminate outliers of the slopes and use the mean of the rest to
decide how much to rotate