{"action":"created","issue":{"url":"https://api.github.com/repos/thumbor/thumbor/issues/622","labels_url":"https://api.github.com/repos/thumbor/thumbor/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/thumbor/thumbor/issues/622/comments","events_url":"https://api.github.com/repos/thumbor/thumbor/issues/622/events","html_url":"https://github.com/thumbor/thumbor/issues/622","id":119905445,"number":622,"title":"Smart mode with OpenCV fails on certain images","user":{"login":"doronfeldman","id":1601275,"avatar_url":"https://avatars.githubusercontent.com/u/1601275?v=3","gravatar_id":"","url":"https://api.github.com/users/doronfeldman","html_url":"https://github.com/doronfeldman","followers_url":"https://api.github.com/users/doronfeldman/followers","following_url":"https://api.github.com/users/doronfeldman/following{/other_user}","gists_url":"https://api.github.com/users/doronfeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/doronfeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doronfeldman/subscriptions","organizations_url":"https://api.github.com/users/doronfeldman/orgs","repos_url":"https://api.github.com/users/doronfeldman/repos","events_url":"https://api.github.com/users/doronfeldman/events{/privacy}","received_events_url":"https://api.github.com/users/doronfeldman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T09:51:21Z","updated_at":"2015-12-02T12:58:26Z","closed_at":null,"body":"For example, this image:\r\nhttp://s3.amazonaws.com/game-images/angry_birds_seasons.png\r\nWith resizing to 200x200 and smart mode\r\n\r\nThrows an Exception:\r\n\r\n2015-12-02 09:38:35 tornado.application:ERROR Future exception was never retrieved: Traceback (most recent call last):\r\n  File \"/usr/local/lib64/python2.7/site-packages/tornado/gen.py\", line 1017, in run\r\n    yielded = self.gen.send(value)\r\n  File \"/usr/local/lib64/python2.7/site-packages/thumbor/transformer.py\", line 166, in do_smart_detection\r\n    detectors[0](self.context, index=0, detectors=detectors).detect(self.after_smart_detect)\r\n  File \"/usr/local/lib64/python2.7/site-packages/thumbor/detectors/face_detector/__init__.py\", line 28, in detect\r\n    features = self.get_features()\r\n  File \"/usr/local/lib64/python2.7/site-packages/thumbor/detectors/local_detector.py\", line 47, in get_features\r\n    convert_mode = getattr(cv, 'CV_%s2GRAY' % mode)\r\nAttributeError: 'module' object has no attribute 'CV_P2GRAY'"},"comment":{"url":"https://api.github.com/repos/thumbor/thumbor/issues/comments/161284171","html_url":"https://github.com/thumbor/thumbor/issues/622#issuecomment-161284171","issue_url":"https://api.github.com/repos/thumbor/thumbor/issues/622","id":161284171,"user":{"login":"guilhermef","id":101073,"avatar_url":"https://avatars.githubusercontent.com/u/101073?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermef","html_url":"https://github.com/guilhermef","followers_url":"https://api.github.com/users/guilhermef/followers","following_url":"https://api.github.com/users/guilhermef/following{/other_user}","gists_url":"https://api.github.com/users/guilhermef/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermef/subscriptions","organizations_url":"https://api.github.com/users/guilhermef/orgs","repos_url":"https://api.github.com/users/guilhermef/repos","events_url":"https://api.github.com/users/guilhermef/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermef/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T12:58:26Z","updated_at":"2015-12-02T12:58:26Z","body":"This shouldn't happen on the current master,\r\nwe're just doing a few more tests before releasing a new version."}}