{"action":"created","issue":{"url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/55","labels_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/55/comments","events_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/55/events","html_url":"https://github.com/gali8/Tesseract-OCR-iOS/issues/55","id":43314167,"number":55,"title":"Tesseract can't open trained data","user":{"login":"golergka","id":929735,"avatar_url":"https://avatars.githubusercontent.com/u/929735?v=3","gravatar_id":"","url":"https://api.github.com/users/golergka","html_url":"https://github.com/golergka","followers_url":"https://api.github.com/users/golergka/followers","following_url":"https://api.github.com/users/golergka/following{/other_user}","gists_url":"https://api.github.com/users/golergka/gists{/gist_id}","starred_url":"https://api.github.com/users/golergka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golergka/subscriptions","organizations_url":"https://api.github.com/users/golergka/orgs","repos_url":"https://api.github.com/users/golergka/repos","events_url":"https://api.github.com/users/golergka/events{/privacy}","received_events_url":"https://api.github.com/users/golergka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-20T16:45:51Z","updated_at":"2015-05-14T03:38:34Z","closed_at":"2014-12-02T18:05:00Z","body":"I've created new project with CocoaPods and Tesseract and load the tesseract\r\n\r\n```\r\nError opening data file /var/mobile/Applications/8900B20E-746E-445B-A328-575C94E50CA6/check.app/tessdata/eng.traineddata\r\nPlease make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your \"tessdata\" directory.\r\nFailed loading language 'eng'\r\nTesseract couldn't load any languages!\r\n```\r\n\r\nHere's the code:\r\n\r\n```swift\r\nclass ViewController: UIViewController, TesseractDelegate {\r\n    \r\n    var tesseract : Tesseract?\r\n    \r\n    override func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        // Do any additional setup after loading the view, typically from a nib.\r\n        tesseract = Tesseract(language: \"eng\")\r\n        tesseract!.delegate = self\r\n    }\r\n```\r\n\r\nOf couse, I indeed have tessdata folder inside my project folder, and there's `eng.traineddata` file there as well,"},"comment":{"url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/comments/101899719","html_url":"https://github.com/gali8/Tesseract-OCR-iOS/issues/55#issuecomment-101899719","issue_url":"https://api.github.com/repos/gali8/Tesseract-OCR-iOS/issues/55","id":101899719,"user":{"login":"Ithoughts","id":11304676,"avatar_url":"https://avatars.githubusercontent.com/u/11304676?v=3","gravatar_id":"","url":"https://api.github.com/users/Ithoughts","html_url":"https://github.com/Ithoughts","followers_url":"https://api.github.com/users/Ithoughts/followers","following_url":"https://api.github.com/users/Ithoughts/following{/other_user}","gists_url":"https://api.github.com/users/Ithoughts/gists{/gist_id}","starred_url":"https://api.github.com/users/Ithoughts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ithoughts/subscriptions","organizations_url":"https://api.github.com/users/Ithoughts/orgs","repos_url":"https://api.github.com/users/Ithoughts/repos","events_url":"https://api.github.com/users/Ithoughts/events{/privacy}","received_events_url":"https://api.github.com/users/Ithoughts/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T03:38:34Z","updated_at":"2015-05-14T03:38:34Z","body":"@ws233  I have put them in a right folder and chose the right version of traineddata files.As you concerned,'You missed some files. There could be more than one file necessary for you language.',I wonder what files I have missed,what files are necessary?How to generate the indeed files?Thanks!"}}