{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/1334","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/1334/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/1334/events","html_url":"https://github.com/mshabunin/test2/issues/1334","id":96118407,"number":1334,"title":"Cols and Rows are swapped at images acquired with rotated camera","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20core","name":"category: core","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-20T17:42:17Z","updated_at":"2015-07-20T17:42:17Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/3666\r\n```\n|| Peter Bodnar on 2014-04-28 13:25\n|| Priority: Normal\n|| Affected: None\n|| Category: core\n|| Tracker: Feature\n|| Difficulty: Easy\n|| PR: \n|| Platform: None / None\n```\n\nCols and Rows are swapped at images acquired with rotated camera\n-----------\n```\nIt would be desireable to optionally autorotate loaded images by imread, or at least show some information about camera rotation within the Mat instance.\r\n\r\nIf an image is acquired by a rotated camera, OpenCV will determine the rows and cols swapped, and does not rotate the image automatically as many image editors do.\r\n\r\nImage: http://www.inf.u-szeged.hu/~bodnaar/misc/20110817_143.jpg\r\nRows (according to image editors): 2560\r\nCols (according to image editors): 1440 \r\n\r\nWindows file manager also shows thumbnail as a landscape version, however browsers and image viewers/editors rotate it automatically which is confusing, since OpenCV sees image dimensions swapped, and using rowRange and colRange I get \"assertion failed\" exceptions.\n```\n\nHistory\n-------"}}