{"action":"opened","issue":{"url":"https://api.github.com/repos/dbashford/textract/issues/105","repository_url":"https://api.github.com/repos/dbashford/textract","labels_url":"https://api.github.com/repos/dbashford/textract/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/dbashford/textract/issues/105/comments","events_url":"https://api.github.com/repos/dbashford/textract/issues/105/events","html_url":"https://github.com/dbashford/textract/issues/105","id":195220906,"number":105,"title":"Tesseract parameter passing","user":{"login":"SebastianSingle99","id":19759103,"avatar_url":"https://avatars.githubusercontent.com/u/19759103?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastianSingle99","html_url":"https://github.com/SebastianSingle99","followers_url":"https://api.github.com/users/SebastianSingle99/followers","following_url":"https://api.github.com/users/SebastianSingle99/following{/other_user}","gists_url":"https://api.github.com/users/SebastianSingle99/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastianSingle99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastianSingle99/subscriptions","organizations_url":"https://api.github.com/users/SebastianSingle99/orgs","repos_url":"https://api.github.com/users/SebastianSingle99/repos","events_url":"https://api.github.com/users/SebastianSingle99/events{/privacy}","received_events_url":"https://api.github.com/users/SebastianSingle99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T10:54:00Z","updated_at":"2016-12-13T10:54:00Z","closed_at":null,"body":"How can i use tesseract parameters like `-psm 0`?\r\nI use this method `textract.fromFileWithPath(filePath, {tesseract: { lang:\"chi_sim\", psm: 0 } }`.\r\n\r\nTextract only recognizes the 'lang' options. Looking at the source file images.js\r\nit seems only the language options is regarded.\r\n`if ( options.tesseract && options.tesseract.lang ) {\r\n    cmd += ' -l ' + options.tesseract.lang;\r\n }`\r\n\r\nAm I missing something or is this a bug?\r\n"}}
{"actor":{"display_login":"SebastianSingle99"}}