Results 1 to 24 of 24

Thread: DTMs

  1. #1
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default DTMs

    I'm using DTMs to locate text, but the text changes color slightly depending on the angle. I've tried high tolerance and other DTM setting in scar but It doesn't seem to find the DTM anywhere.

    Should I use an army of getColor functions to read the text? cause DTMs aren't working for me..

  2. #2
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

  3. #3
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    No, i heard it's not very good?..

  4. #4
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    OCR= Optical Charater Recognition

  5. #5
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    yes but I heard it doesn't work very well, do you know where the documentation for it is? or any guides?

  6. #6
    Join Date
    Jul 2012
    Posts
    279
    Mentioned
    5 Post(s)
    Quoted
    46 Post(s)

    Default

    1) Is this for a private server?

    2) What text exactly are you looking for?

  7. #7
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    1) It's not runescape,
    2) I'm just trying to locate a menu by it's name so I can get it's location and the location of all it's contents (it's always the same size, so once I find it's location I'm set). but I want it to be able to find the menu over and over again because it moves around sometimes.
    The title of the menu is Overview, but it also has a symbol next to it that I was going to use as part of a DTM to help locate it. But I haven't been able to get a functioning DTM of it.

  8. #8
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    A DTM most likely won't work (I'm sure it won't work at all) you need to use a bitmap if you looking for text
    Current Project: Retired

  9. #9
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    The window is opaque, so it changes color a lot. only the text is likely to stay near it's color, it'll be visually white-ish no matter what kind of lighting you're in. Is my best bet just a bunch of getcolors?

  10. #10
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    The window is opaque, so it changes color a lot. only the text is likely to stay near it's color, it'll be visually white-ish no matter what kind of lighting you're in. Is my best bet just a bunch of getcolors?
    Best bet is to use a bitmap and FindBitmapToleranceIn, trust me it works I had to use it for a script I'm working on cause chooseoption stopped working for a bit
    Current Project: Retired

  11. #11
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Gucci View Post
    Best bet is to use a bitmap and FindBitmapToleranceIn, trust me it works I had to use it for a script I'm working on cause chooseoption stopped working for a bit
    The text in the options now seems to shift slightly so theres more spacing between the chars, or the width of a char will increase / decrease by 1 pixel, fuuu jagex,

    Maybe they upped the shifting slightly so its harder to compare for us?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  12. #12
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Gucci View Post
    Best bet is to use a bitmap and FindBitmapToleranceIn, trust me it works I had to use it for a script I'm working on cause chooseoption stopped working for a bit
    That's what I was doing, but I had to use a tolerance of 135 just to get it to recognize it, not at all reliable...

  13. #13
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    The text in the options now seems to shift slightly so theres more spacing between the chars, or the width of a char will increase / decrease by 1 pixel, fuuu jagex,

    Maybe they upped the shifting slightly so its harder to compare for us?
    I noticed the shifting but really didn't affect my detection

    Quote Originally Posted by xdarkshadowx View Post
    That's what I was doing, but I had to use a tolerance of 135 just to get it to recognize it, not at all reliable...
    Must be your bitmap or something, the bitmap was your best bet
    Current Project: Retired

  14. #14
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    It's because I have an opaque backround...

  15. #15
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    It's because I have an opaque backround...
    I dont get this, can you post a screenshot of the text your trying to find, is the text partly see through as well?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  16. #16
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    I dont get this, can you post a screenshot of the text your trying to find, is the text partly see through as well?
    ^This, can you post a screen shot?
    Current Project: Retired

  17. #17
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I can give you a screenshot.. idk how much that will help though. it's just text with a see-through backround, and the text is also partially see through. and the lighting behind it varies greatly.

  18. #18
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    I can give you a screenshot.. idk how much that will help though. it's just text with a see-through backround, and the text is also partially see through. and the lighting behind it varies greatly.
    Post a screenshot maybe we can figure something out, but its sounding like its going to be very hard to do, unless something somewhere is static


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  19. #19
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Nowhere is static, why I have to use tolerance.

  20. #20
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    Nowhere is static, why I have to use tolerance.
    There could be something somewhere near it you could use instead or something like that, just incase someone here with mad color skills has done something we havent even thought about, post it anyway


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  21. #21
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Last edited by xdarkshadowx; 12-31-2012 at 12:12 AM.

  22. #22
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    currently building a function that finds lines of white-ish pixels then compares to find 4 lines on top of eachother, then returns the location. might work, who knows. haha.

  23. #23
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by xdarkshadowx View Post
    currently building a function that finds lines of white-ish pixels then compares to find 4 lines on top of eachother, then returns the location. might work, who knows. haha.
    More or less what FindDTM's do

    But worth a shot, there may be a way to copy an image, reduce the contrast and such so its as black and white as possible, then use a black and white dtm, but i have no idea how to do it

    Have you maybe tried doing Not (color of the black/brown part)

    If the menu for example could only be in 2-3 places, and the white would be in a normally black spot, thats always black otherwise
    Last edited by DannyRS; 12-31-2012 at 12:21 AM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  24. #24
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    the menu can be anywhere sadly..

    yes what I'm building does what I thought DTMs did.. but for some reason I couldn't get DTMs to do it. Seems like DTMs would work perfectly here but I guess not.

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
  •