[1.1.4] region.find(image): template size error (size region == size image)
I am trying to compare screenshots of the phone before and after a click. Ideally, after a click, I would wait for a moment to see if there is any change in UI, and if it detects a change then i would take a screenshot of it.
This is the function that i coded out .
def observe_
global i
path = capture(
pixel_
wait(0.5) # wait for UI transitions if any
try:
match = phone_region.
#path_1 = capture(
except FindFailed or CvException:
# screenshots are dissimilar, take screenshot
path_1 = capture(
i += 1
I dont know why the line match = phone_region.
/Users/
& _img.size().width <= _templ.size().width in function 'matchTemplate'
Since I am using sikuli's capture function the image captured should be of similar pixels. Why there be a mismatch in the template size ?
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 ONG YI CHONG for more information if necessary.