Get pixel color in region and compare to Color
Hi! I'm trying to find colored pixels in a region with this code, but no luck :(
Can someone tell me whats wrong?
def findItemsOfColor():
area = Region(playground.x + 75,playground.y + 90,600,400)
area.
wait(1)
x = area.x
y = area.y
i=0
while i==0:
x = x+1
p = Location(x,y)
aColor = Color(0x6969FF)
if myRobot.
print "FOUND ITEM!!!"
wait(1)
if x > area.x + area.w:
print "Searched row"
x = area.x
y = y + 1
if y > area.y + area.h:
i = 1
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask HjalmarSn for more information if necessary.