sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42854
Re: [Question #644100]: Pattern accuracy for trading stocks
Question #644100 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/644100
Status: Open => Answered
masuo proposed the following answer:
You have succeed to find pattern.
So use findAll() instead of find().
Check color each match object all of them.
You can find a suitable one from them.
it is possible to divide the Region of match object m.
m.setCols(numberColumns)
it is possible to get color of match object m. (position is center of match object.)
m.getCenter().getColor()
This is an example when there is only one object.
numberColumns = 10
m = find("1497654758699.png")
ma.setCols(numberColumns)
for x in range(numberColumns):
m.getCol(x).highlight(1)
print m.getCol(x).getCenter().getColor()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.