Region.right(): unexpected result --- means right of right border of Region --- docs rewritten
Hi all,
I've tried to extend a found region to the right, but I got a result which seems to be a strange to me. Let assume code snipet:
w = find(image)
print 'Found: %s' % w
w = find(image)
print 'Left: %s' % w
w = find(image)
print 'Right: %s' % w
and printed output:
Found: Match[720,395 211x26] score=1,00, target=center
Left: Region[710,395 10x26]@Screen(0) E:Y, T:3,0
Right: Region[931,395 10x26]@Screen(0) E:Y, T:3,0
I'd expect, that setting right border of region should result in
Right: Region[720,395 10x26]@Screen(0) E:Y, T:3,0
and I've no no idea where the value 931 came from. On the top of it, when I extend the region to the right, the X value is always 931 regarding a value of the argument passed to right() method.
Please, could somebody shed light on?
Thx, pf
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Petr Fejfar
- Solved:
- Last query:
- Last reply: