I have this code below which detects lines on my image but I can't align the whole image( scanned image) to make the lines straight, therefore align the text as well.
This is the image: http://tinypic.com/view.php?pic=106hgjs&s=6
The left is the input image and the right should the fixed one.
No products are associated with this question.
Not sure why you would apply a shear. Shouldn't it just be a rotation+translation?