De-skew characters in binary image
There are ways to deal with this. Some on the matching part to avoid the unskew operation itself like this: OCR and character similarity But you want to unskew so: detect the rotation angle/skew slope Obtain bounding box, then cast vertical scan lines and remember first hit point and last regress line through all of … Read more