{"action":"created","issue":{"url":"https://api.github.com/repos/kba/kraken-docker/issues/4","repository_url":"https://api.github.com/repos/kba/kraken-docker","labels_url":"https://api.github.com/repos/kba/kraken-docker/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kba/kraken-docker/issues/4/comments","events_url":"https://api.github.com/repos/kba/kraken-docker/issues/4/events","html_url":"https://github.com/kba/kraken-docker/issues/4","id":184629568,"number":4,"title":"hocr output is not working","user":{"login":"zuphilip","id":5199995,"avatar_url":"https://avatars.githubusercontent.com/u/5199995?v=3","gravatar_id":"","url":"https://api.github.com/users/zuphilip","html_url":"https://github.com/zuphilip","followers_url":"https://api.github.com/users/zuphilip/followers","following_url":"https://api.github.com/users/zuphilip/following{/other_user}","gists_url":"https://api.github.com/users/zuphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/zuphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuphilip/subscriptions","organizations_url":"https://api.github.com/users/zuphilip/orgs","repos_url":"https://api.github.com/users/zuphilip/repos","events_url":"https://api.github.com/users/zuphilip/events{/privacy}","received_events_url":"https://api.github.com/users/zuphilip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-22T13:10:56Z","updated_at":"2016-10-29T01:47:02Z","closed_at":"2016-10-29T01:45:28Z","body":"I tried to output hocr and it did not work (also alto did not work), but txt seems to work fine. I already updated the submodule and rebuild the container, but this didn't change anything. Maybe this is a problem which is for reporting upstream, but I don't know that... \r\n\r\n```\r\n$ docker run --rm -it -v ${PWD}:/work kraken-docker -i /work/bw.png /work/out.t\r\nxt segment ocr\r\nLoading RNN\r\nSegmenting\r\nProcessing\r\nWriting recognition results for /work/bw.png\r\n\r\n$ docker run --rm -it -v ${PWD}:/work kraken-docker -i /work/bw.png /work/out.h\r\nocr segment ocr -h\r\nLoading RNN\r\nSegmenting\r\nProcessing\r\nWriting recognition results for /work/bw.png    Traceback (most recent call last\r\n):\r\n  File \"/usr/bin/kraken\", line 10, in <module>\r\n    sys.exit(cli())\r\n  File \"/usr/lib/python2.7/site-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/lib/python2.7/site-packages/click/core.py\", line 1087, in invoke\r\n    return _process_result(rv)\r\n  File \"/usr/lib/python2.7/site-packages/click/core.py\", line 1025, in _process_\r\nresult\r\n    **ctx.params)\r\n  File \"/usr/lib/python2.7/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/kraken/kraken.py\", line 144, in process\r\n_pipeline\r\n    task(base_image=base_image, input=input, output=output)\r\n  File \"/usr/lib/python2.7/site-packages/kraken/kraken.py\", line 120, in recogni\r\nzer\r\n    fp.write(serialization.serialize(preds, base_image, Image.open(base_image).s\r\nize, ctx.meta['mode']))\r\n  File \"/usr/lib/python2.7/site-packages/kraken/serialization.py\", line 123, in\r\nserialize\r\n    tmpl = env.get_template(template)\r\n  File \"/usr/lib/python2.7/site-packages/jinja2/environment.py\", line 812, in ge\r\nt_template\r\n    return self._load_template(name, self.make_globals(globals))\r\n  File \"/usr/lib/python2.7/site-packages/jinja2/environment.py\", line 774, in _l\r\noad_template\r\n    cache_key = self.loader.get_source(self, name)[1]\r\n  File \"/usr/lib/python2.7/site-packages/jinja2/loaders.py\", line 235, in get_so\r\nurce\r\n    raise TemplateNotFound(template)\r\njinja2.exceptions.TemplateNotFound: hocr\r\n```\r\n(The example is from the kraken/test directory.)"},"comment":{"url":"https://api.github.com/repos/kba/kraken-docker/issues/comments/257063712","html_url":"https://github.com/kba/kraken-docker/issues/4#issuecomment-257063712","issue_url":"https://api.github.com/repos/kba/kraken-docker/issues/4","id":257063712,"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-29T01:47:02Z","updated_at":"2016-10-29T01:47:02Z","body":"BTW: If you use `/data` as the volume target, you won't need absolute paths since that is the `WORKDIR`.\r\n\r\n```sh\r\ndocker run --rm -it -v ${PWD}:/data kraken-docker -i bw.png out.h\r\nocr segment ocr -h\r\n```"}}
{"actor":{"display_login":"kba"}}