{"action":"created","issue":{"url":"https://api.github.com/repos/tmbdev/clstm/issues/94","repository_url":"https://api.github.com/repos/tmbdev/clstm","labels_url":"https://api.github.com/repos/tmbdev/clstm/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/tmbdev/clstm/issues/94/comments","events_url":"https://api.github.com/repos/tmbdev/clstm/issues/94/events","html_url":"https://github.com/tmbdev/clstm/pull/94","id":184861852,"number":94,"title":"New high-level Python API","user":{"login":"jbaiter","id":608610,"avatar_url":"https://avatars.githubusercontent.com/u/608610?v=3","gravatar_id":"","url":"https://api.github.com/users/jbaiter","html_url":"https://github.com/jbaiter","followers_url":"https://api.github.com/users/jbaiter/followers","following_url":"https://api.github.com/users/jbaiter/following{/other_user}","gists_url":"https://api.github.com/users/jbaiter/gists{/gist_id}","starred_url":"https://api.github.com/users/jbaiter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbaiter/subscriptions","organizations_url":"https://api.github.com/users/jbaiter/orgs","repos_url":"https://api.github.com/users/jbaiter/repos","events_url":"https://api.github.com/users/jbaiter/events{/privacy}","received_events_url":"https://api.github.com/users/jbaiter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-24T14:46:29Z","updated_at":"2016-10-25T14:54:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tmbdev/clstm/pulls/94","html_url":"https://github.com/tmbdev/clstm/pull/94","diff_url":"https://github.com/tmbdev/clstm/pull/94.diff","patch_url":"https://github.com/tmbdev/clstm/pull/94.patch"},"body":"Since the original Python bindings are not working anymore and are unlikely to be fixed/maintained in the future, I created new high-level bindings using Cython. The module is compatible with both Python 2 and 3 and can be installed by running `pip install .` in the root directory of the repository.\r\n\r\nFor both training and prediction, images loaded via PIL/Pillow can be used, as well as numpy arrays.\r\n\r\nCurrently only the OCR functionality is exposed, but I plan on adding a wrapper around `ClstmText` in the future.\r\n\r\nThe API documentation can be found at [https://jbaiter.github.io/clstm](https://jbaiter.github.io/clstm).\r\n\r\nAn example on how the training and prediction API is used can be found in [`run_uw3_500.py`](https://github.com/jbaiter/clstm/blob/cython/run_uw3_500.py). This script is very close to what the `run-uw3-500` application does, only through Python, so it can be used to compare performance. In my tests I found that the performance of the Python and C++ versions is pretty much indistinguishable."},"comment":{"url":"https://api.github.com/repos/tmbdev/clstm/issues/comments/256058674","html_url":"https://github.com/tmbdev/clstm/pull/94#issuecomment-256058674","issue_url":"https://api.github.com/repos/tmbdev/clstm/issues/94","id":256058674,"user":{"login":"kba","id":273367,"avatar_url":"https://avatars.githubusercontent.com/u/273367?v=3","gravatar_id":"","url":"https://api.github.com/users/kba","html_url":"https://github.com/kba","followers_url":"https://api.github.com/users/kba/followers","following_url":"https://api.github.com/users/kba/following{/other_user}","gists_url":"https://api.github.com/users/kba/gists{/gist_id}","starred_url":"https://api.github.com/users/kba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kba/subscriptions","organizations_url":"https://api.github.com/users/kba/orgs","repos_url":"https://api.github.com/users/kba/repos","events_url":"https://api.github.com/users/kba/events{/privacy}","received_events_url":"https://api.github.com/users/kba/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T14:54:24Z","updated_at":"2016-10-25T14:54:24Z","body":"I tried the version shipped in Jessie stable first, then pip install, but it seemed to fall back to the Jessie bundled path at some point. As I said, I guess it's just a path issue.\r\n\r\nI'll try the fixed bytes/str commit later."}}
{"actor":{"display_login":"kba"}}