|
Post by paladiex on Dec 24, 2016 16:05:24 GMT
I am trying to speed up my image recognition. I am trying to ensure that when the image is ran in compatibility mode (setcomparisondimension). It is multiplied by a ratio "r" where r = the new dimension / the original dimension. This way it scans the same box regardless of setcomparisondimension. I cannot get the region to work in my code though. I will post it below and I would greatly appreciate if anyone could help me.
bigFlash = (Pattern("bigFlash.png"):similar(0.9)) -- Region(2080*r, 920*r, 2180*r, 1020*r) yes = (Pattern("yes.en.png"):similar(0.9)) smallFlash = (Pattern("smallFlash.png"):similar(0.8)) -- Region(880*r, 740*r, 970*r, 830*r)
local choice, listMatch = waitMulti({bigFlash, yes, smallFlash}, 9*60)
|
|
|
Post by AnkuLua on Dec 24, 2016 23:33:30 GMT
For region search to work, use regionWaitMulti(), not waitMulti() And you should create corresponding table with regions. Already replied in message.
|
|
|
Post by paladiex on Dec 25, 2016 2:35:08 GMT
For region search to work, use regionWaitMulti(), not waitMulti() And you should create corresponding table with regions. Already replied in message. Thanks! That explains why it was not working for me
|
|