{"action":"created","issue":{"url":"https://api.github.com/repos/jflesch/pyocr/issues/59","repository_url":"https://api.github.com/repos/jflesch/pyocr","labels_url":"https://api.github.com/repos/jflesch/pyocr/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/jflesch/pyocr/issues/59/comments","events_url":"https://api.github.com/repos/jflesch/pyocr/issues/59/events","html_url":"https://github.com/jflesch/pyocr/issues/59","id":217714480,"number":59,"title":"Tesseract segmentation mode with custom zone?","user":{"login":"K-Niu","id":6972205,"avatar_url":"https://avatars0.githubusercontent.com/u/6972205?v=3","gravatar_id":"","url":"https://api.github.com/users/K-Niu","html_url":"https://github.com/K-Niu","followers_url":"https://api.github.com/users/K-Niu/followers","following_url":"https://api.github.com/users/K-Niu/following{/other_user}","gists_url":"https://api.github.com/users/K-Niu/gists{/gist_id}","starred_url":"https://api.github.com/users/K-Niu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/K-Niu/subscriptions","organizations_url":"https://api.github.com/users/K-Niu/orgs","repos_url":"https://api.github.com/users/K-Niu/repos","events_url":"https://api.github.com/users/K-Niu/events{/privacy}","received_events_url":"https://api.github.com/users/K-Niu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-28T22:43:15Z","updated_at":"2017-03-29T08:17:03Z","closed_at":null,"body":"Hi, I have been using builders.WordBoxBuilder to get the positions of some words of interest in an image.\r\n\r\nIs there functionality to run Tesseract in segmentation mode with inputted zones of interest?\r\n\r\nI took a look at your builders.TextBuilder code and saw that I could change the tesseract_layout parameter in the constructor to change segmentation modes. However, some of the modes need an .uzn file that must share the name of the image being processed by Tesseract. The problem is, I can't get the name of the image file because you write to a random temp file in your tesseract.image_to_string code.\r\n\r\nJust wondering if there was a straightforward way currently.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/jflesch/pyocr/issues/comments/290017438","html_url":"https://github.com/jflesch/pyocr/issues/59#issuecomment-290017438","issue_url":"https://api.github.com/repos/jflesch/pyocr/issues/59","id":290017438,"user":{"login":"jflesch","id":135331,"avatar_url":"https://avatars0.githubusercontent.com/u/135331?v=3","gravatar_id":"","url":"https://api.github.com/users/jflesch","html_url":"https://github.com/jflesch","followers_url":"https://api.github.com/users/jflesch/followers","following_url":"https://api.github.com/users/jflesch/following{/other_user}","gists_url":"https://api.github.com/users/jflesch/gists{/gist_id}","starred_url":"https://api.github.com/users/jflesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jflesch/subscriptions","organizations_url":"https://api.github.com/users/jflesch/orgs","repos_url":"https://api.github.com/users/jflesch/repos","events_url":"https://api.github.com/users/jflesch/events{/privacy}","received_events_url":"https://api.github.com/users/jflesch/received_events","type":"User","site_admin":false},"created_at":"2017-03-29T08:17:03Z","updated_at":"2017-03-29T08:17:03Z","body":"> Is there functionality to run Tesseract in segmentation mode with inputted zones of interest?\r\n\r\nCurrently, no.\r\n\r\nI'm just wondering, if you already know the zones of interest, wouldn't it be easier to simply cut the image in many smaller ones (Pillow can do that easily) and run Tesseract on each of the smaller images ?"}}
{"actor":{"display_login":"jflesch"}}