Results 1 to 6 of 6

Thread: Findcircular objects

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Findcircular objects

    I was wondering, is there a way to find circular objects on a screen with a given radius (or larger?) ?
    Oh Hai Dar

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    More than one way, a screenshot would help.

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default



    The portal.
    Oh Hai Dar

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    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).

  5. #5
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  6. #6
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks
    Oh Hai Dar

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •