I was wondering, is there a way to find circular objects on a screen with a given radius (or larger?) ?
I was wondering, is there a way to find circular objects on a screen with a given radius (or larger?) ?
Oh Hai Dar
More than one way, a screenshot would help.
The portal.
Oh Hai Dar
Since there can be stuff in the way you would need some pretty wide margins. Once you have split a TPA and filtered by count (with min being fairly low and max dependent on closest distance), if there is more than one, get the w/h bounds and the center of those. From the center heading outwards, go out in a number of angles, 8 at 45 degree increments for example, until you get a pixel not in the group, and record the distances. At least 75% (for example) of those distances should be within 10% (for example) of each other (and half the width).
TBH you are over complicating this. Just use ACA to get a good info to use with CTS2 and FindColors to get your initial TPA, then use TPAToATPAEx with the average width and height of the portal. SortATPABySize(True) (largest) then start with the largest [0] and go to the biggest High(ATPA) and do the MiddleTPA(ATPA[I]) with a MMouse and an uptext (either OCR or countcol) of sorts and then click it. No need to do anything with circles and stuff like that.
Thanks![]()
Oh Hai Dar
There are currently 1 users browsing this thread. (0 members and 1 guests)