title: OCR (tesseract), intelligent rotation for Image
body: <p>I'm developing an Android app which uses tesseract OCR to recognize Text, now I have the Problem that on different Smartphones the image gets rotate in a different way, so on one it is in landscape mode right away and on the other in portrait mode. So now i want to intelligently rotate the Image so that Tesseract can recognize the Text. Which is only in one of the two options possible, but it might be in either, due to the user taking the picture. I don't want the User to have to take the picture in the same format everytime, i want to rotate it so it fits the need, if possible without too much of a performance loss.</p>
  
  <p>The Tesseract lib with the autorotate does not seem to work for me in that way. 
  Anybody an idea how to solve that problem.</p>
  
  <p>Thanks</p>