{"action":"created","issue":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/78","labels_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/78/comments","events_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/78/events","html_url":"https://github.com/bytedeco/javacpp-presets/issues/78","id":100958468,"number":78,"title":"TESSDATA_PREFIX set to strange path.","user":{"login":"pchundi","id":4728134,"avatar_url":"https://avatars.githubusercontent.com/u/4728134?v=3","gravatar_id":"","url":"https://api.github.com/users/pchundi","html_url":"https://github.com/pchundi","followers_url":"https://api.github.com/users/pchundi/followers","following_url":"https://api.github.com/users/pchundi/following{/other_user}","gists_url":"https://api.github.com/users/pchundi/gists{/gist_id}","starred_url":"https://api.github.com/users/pchundi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchundi/subscriptions","organizations_url":"https://api.github.com/users/pchundi/orgs","repos_url":"https://api.github.com/users/pchundi/repos","events_url":"https://api.github.com/users/pchundi/events{/privacy}","received_events_url":"https://api.github.com/users/pchundi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-14T08:11:49Z","updated_at":"2015-08-16T10:20:35Z","closed_at":"2015-08-16T10:20:35Z","body":"Hi,\r\nI am trying to do some OCR in scala using the javacpp-presets. Here is a small application:\r\n```scala\r\nimport org.bytedeco.javacpp._\r\nimport org.bytedeco.javacpp.tesseract._\r\nimport org.bytedeco.javacpp.lept._\r\n\r\nobject  OcrTestApp extends App{\r\n\r\n  val t = new TessBaseAPI()\r\n  if(t.Init(null,\"eng\") != 0)\r\n    println(\"Initialization failed\")\r\n\r\n  val image = pixRead(\"data/eurotext.png\")\r\n  t.SetImage(image)\r\n\r\n  println(\"text: \"+t.GetUTF8Text())\r\n\r\n  t.End()\r\n  pixDestroy(image)\r\n}\r\n```\r\ngetting the following error:\r\n\r\n```\r\nError opening data file /home/saudet/projects/bytedeco/javacpp-presets/tesseract/cppbuild/linux-x86_64/share/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\nInitialization failed\r\nAdaptedTemplates != NULL:Error:Assert failed:in file adaptmatch.cpp, line 174\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x00007f687dc743ba, pid=4818, tid=140087570310912\r\n#\r\n# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)\r\n# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode linux-amd64 compressed oops)\r\n# Problematic frame:\r\n# C  [libtesseract.so.3+0x2443ba]  ERRCODE::error(char const*, TessErrorLogCode, char const*, ...) const+0x12a\r\n#\r\n# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again\r\n#\r\n# An error report file with more information is saved as:\r\n# /home/pchundi/IdeaProjects/ocr-ws/hs_err_pid4818.log\r\n#\r\n# If you would like to submit a bug report, please visit:\r\n#   http://bugreport.java.com/bugreport/crash.jsp\r\n# The crash happened outside the Java Virtual Machine in native code.\r\n# See problematic frame for where to report the bug.\r\n#\r\n\r\n```\r\nCan you please help?"},"comment":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/comments/131520768","html_url":"https://github.com/bytedeco/javacpp-presets/issues/78#issuecomment-131520768","issue_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/78","id":131520768,"user":{"login":"saudet","id":3328023,"avatar_url":"https://avatars.githubusercontent.com/u/3328023?v=3","gravatar_id":"","url":"https://api.github.com/users/saudet","html_url":"https://github.com/saudet","followers_url":"https://api.github.com/users/saudet/followers","following_url":"https://api.github.com/users/saudet/following{/other_user}","gists_url":"https://api.github.com/users/saudet/gists{/gist_id}","starred_url":"https://api.github.com/users/saudet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saudet/subscriptions","organizations_url":"https://api.github.com/users/saudet/orgs","repos_url":"https://api.github.com/users/saudet/repos","events_url":"https://api.github.com/users/saudet/events{/privacy}","received_events_url":"https://api.github.com/users/saudet/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T10:20:35Z","updated_at":"2015-08-16T10:20:35Z","body":"Make sure to use data versioned aa \"3.02\" that doesn't crash Tesseract. See duplicate issue https://github.com/bytedeco/javacpp-presets/issues/48 for details."}}