0

Having rather rudimentary understanding of both Python and OpenCV, I have tough time finding a solution to deskew some of my pictures, as most examples I have found only use page edges as markers, which are not visible in my case. However, there is always a "central" vertical line that I think I can use, like this: https://i.stack.imgur.com/FDGbX.jpg

What I would like to do is to find this line—I guess using Hough Line Transform?—but only this line (discarding any other potential lines) and calculate the angle between it's extreme points to apply deskew algorithms.

How can that be done in Python?

MrVocabulary
  • 597
  • 1
  • 11
  • 31
  • 2
    See [here](http://stackoverflow.com/a/35014061/5008845). First step is deskewing, and could be easily applied to your image, too – Miki Feb 14 '17 at 20:28
  • Thanks, @Miki, I will try to map this into Python. Seems a bit of a circular logic—deskewing as preparation for deskewing… – MrVocabulary Feb 14 '17 at 22:20
  • Don't mind me, it's just that I found your "first step is deskewing" statement a bit odd, but nevertheless helpful, kind sir :) – MrVocabulary Feb 14 '17 at 22:44

0 Answers0