sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42499
Re: [Question #632850]: Can't tell the difference between two images
Question #632850 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/632850
Status: Open => Answered
masuo proposed the following answer:
By using class java.awt.Color we can get RGB value.
[example codes to get color:]
import java.awt.Color
setFindFailedResponse(SKIP)
f = findAll("shape.png")
m = []
while f.hasNext():
m.append(f.next())
for x in m:
x.highlight(1)
print x.getCenter().getColor()
print x.getCenter().getColor().getRed()
print x.getCenter().getColor().getGreen()
print x.getCenter().getColor().getBlue()
setFindFailedResponse(ABORT)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.