sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50072
Re: [Question #677361]: How do i import python modules into sikuliX script ?
Question #677361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/677361
Status: Open => Answered
RaiMan proposed the following answer:
ok, this is because the native libraries are not loaded.
I did not forsee, that someone might use the OpeneCV features such isolated as you do.
In a "normal" SikuliX usage the needed libraries are loaded lazily, when respective features are first used in a script/program.
For you as a workaround put this together with the imports:
import org.sikuli.script.RunTime as RT
RT.loadLibrary(RT.libOpenCV);
If you finally succeed with your approach, you can come back and show me your initialization sequence.
I would then add a "makeOpencvReadyForUse" feature.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.