Skip to main contentdfsdf

    • May be this helps (not yet really documented, information from developer):

       

      ---------------
       (1) The steps to use Sikuli.py without Sikuli IDE:
        1. add sikuli-script.jar into Java's CLASSPATH
        2. add -Dpython.home=sikuli-script.jar as a parameter of launching java
        3. add "from python.edu.mit.csail.uid.Sikuli import *" in your python code. (Note that the package name will be changed in 0.10.)

       

      (2)
       Sikuli need some opencv libraries in tmplib/.
       Try to add tmplib/ to %PATH% before running Jython.

       

      (3)
       In theory, you can import the other xxx.sikuli/xxx.py and call its functions. A tricky step is that you need to call setBundlePath() before using the image files inside the other .sikuli bundle, otherwise Sikuli's functions doesn't know where to find the images.
       We will try to make this easier in the future versions.
       -----------------

    • Info: tmplib no problem, python path set, sikuli-script.jar added to path, and all testsuites runs smoothly before 1.0 upgrade. Now I am just not sure which version to downgrade to.

    3 more annotations...

    • As far as I understood, you have to write something with python syntax, that is afterwards run by the jython environment (python on java), so you can use the Sikuli defined classes and methods in your program directly without using the Sikuli IDE.
    • import os
       from edu.mit.csail.uid.SikuliScript import *

       

    3 more annotations...

    • Sikuli Script uses OpenCV as its computer vision engine. On Windows, you can simply add the path Sikuli-IDE/tmplib to the environment variable PATH, and then Windows can automatically find OpenCV's DLLs in there. However, it's more complicated on Mac and Linux. Therefore, our suggestion is to install OpenCV by yourself.
    • nclude sikuli-script.jar in the CLASSPATH of your Java project.==

    1 more annotation...

1 - 3 of 3
20 items/page
List Comments (0)