Check Duration of Blinking Image?
Asked by
Matthew Lebo
on 2020-11-26
If I have a region and I am checking for an image within that region and it appears, but can disappear and then reappear, but I only want to act on it if that image stays visible for X amount of seconds. Is the only thing I can do is on appear start a timer, wait x seconds and then check if the image is there again?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- 2020-11-29
- Last query:
- 2020-11-29
- Last reply:
- 2020-11-26
RaiMan (raimund-hocke) said : | #1 |
yes
|
#2 |
Region.waitVanish might be a better method, maybe something like
Region.wait(Image)
starttime = time.time()
Region.
duration = time.time() - starttime
Note: If you just check if the image is there after X seconds, then it might have disappeared and re-appeared in between.
Matthew Lebo (digitalml) said : | #3 |
Thanks Manfred Hampl, that solved my question.
To post a message you must log in.