← Back to team overview

sikuli-driver team mailing list archive

[Question #186486]: How to create an auto correcting find function?

 

New question #186486 on Sikuli:
https://answers.launchpad.net/sikuli/+question/186486

When automating an application in sikuli I find failures after the fact with find/exists largley due to copying images and moving fast when using the sikuli ide. That is a compliment, i can create test scrips with the IDE much quicker than pre sikuli x.
Anyway back to the question

The  idea is 

    def adjustsimilarity():
         PatSimAdd (if pat sim picture and pat sim +10 are (not sure how to check for an intended overage)
        
         Patten( add 10 to the similariaty) then 
#repeat  FindPattern) + increaswes similariaty


 if find  returns fail then
     
     def adjustsimilariaty

find ( pattern)
print>>plus 10 similarity

Basically all failed finds run through a loop where the smilarity is increased in predefined increments default 10until the similariaty is at its MAX setting(FAIL) or passed after the increase (print the amount increased to the log to help tuning.





-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.