← 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

Filipe Alonso posted a new comment:
Tks RaiMan,

I just tried it but VDictProxy, for example, is loaded but not
initialized and still has some delay when using dependent functions.
Other calls to the NativeLoader still wont initialize the statics for
some classes resulting in them loading and/or initializing twice.

Then i followed your first suggestion and it works better for them all
because it actually loads and initializes them all, although it's a
workaround for the  goal here.

                Screen s = new Screen();				// [info] Windows utilities loaded.   OR   Env.getOSUtil();
		new Finder(s.capture(0,0,1,1), s);		// [info] Sikuli vision engine loaded.
		new App("").window();					// [info] VDictProxy loaded.
		TextRecognizer.getInstance();			// [info] Text Recognizer inited.

Alternatively OS Utilities can be loaded through Env.getOSUtils(); but
you'll still need the «Screen s» to initialize the vision engine once
through Finder.

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