← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #170510]: X-1.0rc3: how sikuli support minTargetSize in java

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Only to be sure: only available in rc3

Usage in Python:

from org.sikuli.script.natives import Vision
print Vision.getParameter("MinTargetSize")
Vision.setParameter("MinTargetSize", 6.0)

Usage in Java (do not blame me for syntax errors ;-)

import org.sikuli.script.natives.Vision;
Float mts = Vision.getParameter("MinTargetSize");
Vision.setParameter("MinTargetSize", (float) 6.0);

Currently there is no Vision Class in org.sikuli.script (might come with
the release).

The above feature is currently implemented on the lowest level (C++).

--- what's the usage for org.sikuli.script.natives.*?
This is totally internal and should normally not be used (not part of the official API).

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