title: Highgui.imread read rotated image
body: <p>I am using camera to capture an image on my phone which use Android 4.03  and opencv for android 2.4.3 </p>
  
  <p>In my application I am reading the image from disk using Highgui.imread </p>
  
  <p>But the problem is the function is rotating the image always in contrast to the actual saved image! </p>
  
  <pre><code>if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {
          if (resultCode == RESULT_OK) {
              Mat img = Highgui.imread(file.getAbsolutePath());
              if(img!=null)
                  n.detectDocument(img.getNativeObjAddr());
  </code></pre>
  
  <p>and in native side </p>
  
  <pre><code>jbyteArray JNICALL Java_com_example_superemr_NSuperEMR_detectDocument(JNIEnv *env, jobject object, jlong addr)
  {
      Mat* image = (Mat*) addr;
      imwrite("/mnt/sdcard/work/hala.jpg",*image);
      return NULL;
  }
  </code></pre>
  
  <p>How can I read the image in the correct position? </p>