[1.1.0] setting MinTargetSize

Asked by Vyacheslav Kolesnik

Hi!
Where I can set up vision's 'MinTargetSize' now? When I try to import proxies or natives modules I got an "[error] ImportError ( No module named proxies )" error.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Vyacheslav Kolesnik
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

package name is
org.sikuli.natives

hence
import org.sikuli.natives.Vision as Vision

What is your experience with setting the MinTargetSize?
Why do you think it helps you? For what?

Revision history for this message
Vyacheslav Kolesnik (uzb310) said :
#2

Thank you, RaiMan!
I just want to play with this setting against detection of small simple 2-3 color pictures (a part of scrollbar picture) where default setting doing a false. As a workaround I'm using the java Robot color detection way yet.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

ok, understood.

BTW color of one pixel:
This is available already:

colorOfPixel = someLocation.getColor() # returns a Java Color object
colorsRGB = (colorOfPixel.getRed(), colorOfPixel.getGreen(), colorOfPixelBlue()) # decode the RGB tuple

If it is possible, it would help me, since I am very interested in such situations:
could you send me your image samples and some partly screenshot, that the samples are run against?

use my mail at https://launchpad.net/~raimund-hocke silently

Revision history for this message
RaiMan (raimund-hocke) said :
#4

sorry typo:
colorsRGB = (colorOfPixel.getRed(), colorOfPixel.getGreen(), colorOfPixel.getBlue())