{"action":"closed","issue":{"url":"https://api.github.com/repos/sirfz/tesserocr/issues/5","repository_url":"https://api.github.com/repos/sirfz/tesserocr","labels_url":"https://api.github.com/repos/sirfz/tesserocr/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sirfz/tesserocr/issues/5/comments","events_url":"https://api.github.com/repos/sirfz/tesserocr/issues/5/events","html_url":"https://github.com/sirfz/tesserocr/issues/5","id":155492522,"number":5,"title":"crash on rotated image","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-18T12:46:55Z","updated_at":"2016-05-21T18:36:56Z","closed_at":"2016-05-21T18:36:56Z","body":"```\r\nreubano@tokpro [~]⚡ convert eurotext.tif -rotate 3 +repage eurotext_ang.tif\r\nreubano@tokpro [~]⚡ tesseract eurotext_ang.tif - -psm 0 \r\nOrientation: 0\r\nOrientation in degrees: 0\r\nOrientation confidence: 20.66\r\nScript: 1\r\nScript confidence: 39.58\r\n```\r\n\r\n```python\r\nimage = Image.open('eurotext_ang.tif')\r\n\r\nwith PyTessBaseAPI(psm=PSM.AUTO_OSD) as api:\r\n    api.SetImage(image)\r\n    api.Recognize()\r\n    it = api.AnalyseLayout()\r\n    it.Orientation()\r\n```\r\n\r\noutput\r\n```python\r\nAttributeError: 'NoneType' object has no attribute 'Orientation'\r\n```\r\n"}}
{"actor":{"display_login":"sirfz"}}