title: How to get a image of a document rotated so text is in line?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4749915/image-processing-rotate-scanned-document-to-align-text">Image processing - rotate scanned document to align text</a>  </p>
  </blockquote>
  
  
  
  <p>I working on a project where I have scan with a document scanner some documents but the documents can easy be not in line so text is in some angle so my OCR tools not recognize the text.</p>
  
  <p>So what I want is in C# or jQuery get the angle to rotate the image to, to get the right angle I think something need to analyse the image line by line to se if the text is in line.</p>
  
  <p>I hope someone understand the problem, my english is not the best.</p>
  
  <p>Some ideas?</p>