← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #195190]: Preload Sikuli vision engine, VDictProxy, etc in Java

 

Question #195190 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/195190

    Status: Open => Answered

RaiMan proposed the following answer:
looking into the class Finder, this how they do it::

import com.wapmx.nativeutils.jniloader.NativeLoader;

   static {
      try{
         NativeLoader.loadLibrary("VisionProxy");
         // Debug.info("Sikuli vision engine loaded.");
      }
      catch(IOException e){
         e.printStackTrace();
      }
   }

as far as I understand Java: this is only done once, when the class
Finder is loaded the first time.

So in your code, this might help:

Screen scr = new Screen();
Finder preloadVisionProxy = new Finder(scr.capture(0,0,1,1));

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.