← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #677361]: How do i import python modules into sikuliX script ?

 

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

RaiMan proposed the following answer:
The OpenCV API is available in SikuliX at the Java Level.

Since we run the Jython interpreter, Java classes can be accessed easily
from the Python script level after import:

the principle:

import org.opencv.core.Mat as CVMat
aMat = CVMat();

... would create a Jython object representing an empty Mat

the JavaDocs: https://docs.opencv.org/3.4/javadoc/index.html

If you have any Python or even C++ examples from the net, it is rather easy, to transcript them to the Java-eco-system.
Surely you will find some Java based examples too.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.