{"action":"created","issue":{"url":"https://api.github.com/repos/rmtheis/tess-two/issues/239","repository_url":"https://api.github.com/repos/rmtheis/tess-two","labels_url":"https://api.github.com/repos/rmtheis/tess-two/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/rmtheis/tess-two/issues/239/comments","events_url":"https://api.github.com/repos/rmtheis/tess-two/issues/239/events","html_url":"https://github.com/rmtheis/tess-two/issues/239","id":309037887,"number":239,"title":"Hindi language OCR not working","user":{"login":"HarshitD","id":7540169,"avatar_url":"https://avatars0.githubusercontent.com/u/7540169?v=4","gravatar_id":"","url":"https://api.github.com/users/HarshitD","html_url":"https://github.com/HarshitD","followers_url":"https://api.github.com/users/HarshitD/followers","following_url":"https://api.github.com/users/HarshitD/following{/other_user}","gists_url":"https://api.github.com/users/HarshitD/gists{/gist_id}","starred_url":"https://api.github.com/users/HarshitD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HarshitD/subscriptions","organizations_url":"https://api.github.com/users/HarshitD/orgs","repos_url":"https://api.github.com/users/HarshitD/repos","events_url":"https://api.github.com/users/HarshitD/events{/privacy}","received_events_url":"https://api.github.com/users/HarshitD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-03-27T16:14:56Z","updated_at":"2018-04-19T22:15:37Z","closed_at":null,"author_association":"NONE","body":"Summary:\r\nI am new to tesseract and Android Studio. I am trying to build android app for OCR using tess two. I was able to make it with the help of internet and it runs for many languages except Hindi. For Hindi, the app just crashes after opening it.\r\n\r\nExpected result:\r\nHindi language should also work along with all other languages.\r\n\r\nActual result:\r\nThe app crashes when I put hin.traineddata file and change the language to Hindi.\r\n\r\n\r\nTess-two version:\r\ntess-two:5.4.1\r\n\r\n\r\nAndroid version:\r\n7.1.2\r\n\r\n\r\nPhone/device model:\r\nXiaomi Redmi 4\r\n\r\n\r\nPhone/device architecture (armeabi, armeabi-v7a, x86, mips, arm64-v8a, x86_64, mips64):\r\n\r\n\r\n\r\nLink to training data used:\r\nhttps://github.com/tesseract-ocr/tessdata/tree/3.04.00\r\n\r\n\r\nLink to image used as input:\r\n![test24_hin](https://user-images.githubusercontent.com/7540169/37980018-aa56f068-3207-11e8-9233-06fd41a693ec.png)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rmtheis/tess-two/issues/comments/382897430","html_url":"https://github.com/rmtheis/tess-two/issues/239#issuecomment-382897430","issue_url":"https://api.github.com/repos/rmtheis/tess-two/issues/239","id":382897430,"user":{"login":"rmtheis","id":943135,"avatar_url":"https://avatars0.githubusercontent.com/u/943135?v=4","gravatar_id":"","url":"https://api.github.com/users/rmtheis","html_url":"https://github.com/rmtheis","followers_url":"https://api.github.com/users/rmtheis/followers","following_url":"https://api.github.com/users/rmtheis/following{/other_user}","gists_url":"https://api.github.com/users/rmtheis/gists{/gist_id}","starred_url":"https://api.github.com/users/rmtheis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmtheis/subscriptions","organizations_url":"https://api.github.com/users/rmtheis/orgs","repos_url":"https://api.github.com/users/rmtheis/repos","events_url":"https://api.github.com/users/rmtheis/events{/privacy}","received_events_url":"https://api.github.com/users/rmtheis/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T22:15:37Z","updated_at":"2018-04-19T22:15:37Z","author_association":"OWNER","body":"Thanks for looking into this issue. After taking a second look at this, I'm reopening this issue for the sake of visibility and I want to summarize some notes here for reference.\r\n\r\n## Special requirements for Hindi and Arabic OCR\r\n\r\n_Hindi_\r\n\r\nHindi is not working when using `OEM_DEFAULT`, but it works properly using `OEM_TESSERACT_ONLY`.\r\n\r\nSo, for example, instead of using `baseApi.init(dataPath, \"hin\")` you should use `baseApi.init(dataPath, \"hin\", OEM_TESSERACT_ONLY)`.\r\n\r\nHindi also works using `OEM_CUBE_ONLY` when the Cube data files are installed.\r\n\r\n_Arabic_\r\n\r\nArabic requires the installation of all Cube data files and works properly using `OEM_DEFAULT`."}}
{"actor":{"display_login":"rmtheis"}}