← Back to team overview

sikuli-driver team mailing list archive

[Bug 1214589] Re: [1.0.1] tessdata folder not found after setup with option 5 --- workaround

 

@RaiMan
I have just downloaded "tessdata" stuff and then Text search was switched on now.

I want to find a file named "helloworld.txt" in a folder, and I use
find("helloworld.txt") but

[error] FindFailed ( can not find helloworld.txt on the screen. )

and then  I had tried to type "helloworld.txt" in a .txt file, and find("helloworld.txt")  again, but it still
[error] FindFailed ( can not find helloworld.txt on the screen. )

So does the Text Search is OK with the latest version? Or I had used it
in a wrong way?

If it works, could you give me a example or using scenario of Text
search.

Thank you!

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1214589

Title:
  [1.0.1] tessdata folder not found after setup with option 5 ---
  workaround

Status in Sikuli:
  Fix Committed

Bug description:
  --- TAKE CARE:
  if you came here, because of symptoms described in bug 1218138:
  Simply run setup again (preferably in empty folder) to get the latest version.

  --------------------------------------------------------------------

  --- problem
  even though tessdata.jar was downloaded and processed by setup, the tessdata folder is not in the libs folder.

  --- workaround
  simply delete the libs folder and start the IDE, run a script or use sikuli-java.jar as usual. The libs folder now including the tessdata folder is recreated from sikuli-ide.jar, sikuli-script.jar or sikuli-java.jar.

  TAKE CARE: As documented in the setup information: SikuliX MUST be
  setup in a folder with full access rights in the current user's
  context. Do not setup in the Windows program folders (as with RC3) or
  any other Windows specific folder with probably restricted access
  rights.

  --------------------------------------------------------------------------

  Hi,

  I have installed the new version of Sikuli (1.0.1) according to these recommendations by RaiMan:
  https://answers.launchpad.net/sikuli/+question/234061

  Everything seemed fine, before I have tried to use the text recognition utilities.
  After running my script, I have received the following error:

  [error] TextRecognizer: init: tessdata folder not found at
  C:/SikuliX/libs/

  After all subsequent attempts to use text recognition (within the same
  script run), the error appeared few more times but with no path
  specified, like that:

  [error] TextRecognizer: init: tessdata folder not found at

  When I have checked the abovementioned path, I haven't found the tessdata folder as it was indicated by the error.
  My solution was to copy the tessdata folder from my previous Sikuli version (1.0.0) folder. After this done, the script ran successfully.

  Is that a bug or just a side effect of the non-standard installation?

  Thanks!
  Eugene

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1214589/+subscriptions


References