12-17-2014, 05:23 PM
(12-17-2014, 12:42 AM)vanadium Wrote: You don't even need a tutorial for that, it's pretty simple:
1. Make Pngs of numbers from 0 to 9,
2. Capture the part of the screen containing the numbers,
3. Use image search algorithm to find the position of the number by testing all of them,
4. Order the found numbers by increasing x-axis,
5. You have your number read by concatenating the ordered numbers.
It sounds quite easy to write the sequence but I'm having a really hard time handling images. Image Search's detection rate is extremely low for me, especially for animated in game graphic even with tolerance set to 100. It also doesn't have parameters for win handle so I can't get the exact coordinates for searching. I've looked around and tried findBMP, BMPSearch,... but none of them works. Since you got it all figured out can you guide me in the right direction?