Results 1 to 3 of 3

Thread: detecting objects

  1. #1
    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default detecting objects

    Hey guys,

    I've been lurking on these forums for a couple months now but i finally decided to sign up because it would be dumb to not interact with such a smart community.
    I'm studying compscience and figured it would be good to have a project i like to improve my coding skills on.
    All my classes are java related, so i chose to build my own java bot framework(ish).
    It started out as a hobby but right now im pretty obsessed with it coding like 10 hours a day.
    I've got alot of functionality complete such as detecting items, levels,hp, state detection etc, but i've also got some challenges which
    i would love to get some help on from u guys .
    My main problem right now is object detection in the active game screen. What i currently do is take an npc, get around 10 different colors
    with a range of 5 in a Set. Then i scan the entire gamescreen for all colors in that set to get its dimensions. Sometimes it works fine
    but often it'll also add tons of colors outside the object im scanning for, which makes sense because these colors obviously appear on other places too.
    I was thinking to just reduce the amount of colors im scanning for to 1-3 but that makes it much less reliable and i feel like it would be
    possible to find the object regardless of coloramounts im searching for. I think i need a clustering algorythm or something like that but
    i'm currently not competent enough to find it out myself. I feel like this is a pretty universal problem with all color bots,
    and am eager to know how you guys tackled this problem! Any input is more than welcome

    - Nathan

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by edgy View Post
    ...
    Colour? On OSRS? -_-

    Either way, you could search for colours within an area. Example: Search for some colour. Then in the area that its found (box), search for another set of colours to confirm the object. Adjust tolerances, algorithms (HSL, XYZ, CIE*LAB), etc..
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Oct 2015
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Colour? On OSRS? -_-

    Either way, you could search for colours within an area. Example: Search for some colour. Then in the area that its found (box), search for another set of colours to confirm the object. Adjust tolerances, algorithms (HSL, XYZ, CIE*LAB), etc..
    Thanks, for some reason i didn't think about doing multiple searches to filter. Why the lame smily for the color bot choice? Whats wrong with color?so far it works fine with pretty much everything. And on top of that, doing it in color gives me a set of tools for automation i could be using for other games/processes.

    Right now my only major issue is that generating a bufferedimage and converting it takes over 120 ms so im always 1/8th second in the past ;/

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
  •