title: Detect and fix text skew by rotating image
body: <p>Is there a way (using something like OpenCV) to detect text skew and correct it by rotating the image? Pretty much like this?</p>
  
  <p><img src="https://i.stack.imgur.com/uQslJ.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/rTa8X.png" alt="enter image description here"></p>
  
  <p>Rotating an image seems easy enough if you know the angle, but for the images I'm processing, I wont...it will need to be detected somehow. </p>