{"action":"created","issue":{"url":"https://api.github.com/repos/sirfz/tesserocr/issues/4","repository_url":"https://api.github.com/repos/sirfz/tesserocr","labels_url":"https://api.github.com/repos/sirfz/tesserocr/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/sirfz/tesserocr/issues/4/comments","events_url":"https://api.github.com/repos/sirfz/tesserocr/issues/4/events","html_url":"https://github.com/sirfz/tesserocr/issues/4","id":155286386,"number":4,"title":"incorrectly detects orientation","user":{"login":"reubano","id":157864,"avatar_url":"https://avatars.githubusercontent.com/u/157864?v=3","gravatar_id":"","url":"https://api.github.com/users/reubano","html_url":"https://github.com/reubano","followers_url":"https://api.github.com/users/reubano/followers","following_url":"https://api.github.com/users/reubano/following{/other_user}","gists_url":"https://api.github.com/users/reubano/gists{/gist_id}","starred_url":"https://api.github.com/users/reubano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reubano/subscriptions","organizations_url":"https://api.github.com/users/reubano/orgs","repos_url":"https://api.github.com/users/reubano/repos","events_url":"https://api.github.com/users/reubano/events{/privacy}","received_events_url":"https://api.github.com/users/reubano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-17T15:17:22Z","updated_at":"2016-05-18T09:15:22Z","closed_at":null,"body":"I've noticed the orientation example doesn't distinguish between upside down/rightside up and clockwise/counter clockwise orientations. \r\n\r\n```bash\r\nreubano@tokpro [~]⚡ tesseract -psm 0 up.jpg - \r\nOrientation: 0\r\nOrientation in degrees: 0\r\nOrientation confidence: 0.23\r\nScript: 1\r\nScript confidence: 0.98\r\n\r\nreubano@tokpro [~]⚡ tesseract -psm 0 down.jpg - \r\nOrientation: 2\r\nOrientation in degrees: 180\r\nOrientation confidence: 0.21\r\nScript: 1\r\nScript confidence: 0.61\r\n```\r\n\r\n```python\r\nwith PyTessBaseAPI(psm=PSM.AUTO_OSD) as api:\r\n    for path in ['up.jpg', 'down.jpg']:\r\n        image = Image.open(path)\r\n        api.SetImage(image)\r\n        api.Recognize()\r\n        it = api.AnalyseLayout()    \r\n        print it.Orientation()\r\n    \r\n(0, 0, 2, 0.0)\r\n(0, 0, 2, 0.0)\r\n```"},"comment":{"url":"https://api.github.com/repos/sirfz/tesserocr/issues/comments/219970428","html_url":"https://github.com/sirfz/tesserocr/issues/4#issuecomment-219970428","issue_url":"https://api.github.com/repos/sirfz/tesserocr/issues/4","id":219970428,"user":{"login":"sirfz","id":4741099,"avatar_url":"https://avatars.githubusercontent.com/u/4741099?v=3","gravatar_id":"","url":"https://api.github.com/users/sirfz","html_url":"https://github.com/sirfz","followers_url":"https://api.github.com/users/sirfz/followers","following_url":"https://api.github.com/users/sirfz/following{/other_user}","gists_url":"https://api.github.com/users/sirfz/gists{/gist_id}","starred_url":"https://api.github.com/users/sirfz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirfz/subscriptions","organizations_url":"https://api.github.com/users/sirfz/orgs","repos_url":"https://api.github.com/users/sirfz/repos","events_url":"https://api.github.com/users/sirfz/events{/privacy}","received_events_url":"https://api.github.com/users/sirfz/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T09:15:22Z","updated_at":"2016-05-18T09:15:22Z","body":"Could you please share your images so I can properly test this?"}}