Best language for imagesearch?
Best language for imagesearch?
Basically after much effort I wrote a script that searches for 100 very small images (maybe 10-20 pixels each) but became really sad when I found out that it runs very slow after a certain amount of images. I needed something that runs as close as possible to 0ms delay and anything above 50-100 ms is too slow. Is there any other language that would allow this?
Re: Best language for imagesearch?
I would recommend C++ for speed.
But it is touch to learn. If you would share the code we could help optimizing things.
And maybe you should think of a better approach for this too.
But it is touch to learn. If you would share the code we could help optimizing things.
And maybe you should think of a better approach for this too.
Recommends AHK Studio
- HinkerLoden
- Posts: 93
- Joined: 23 Mar 2016, 07:50
- Contact:
Re: Best language for imagesearch?
oha. i have not really an idea if its used in the following one. I think Machine Code used what is similar to the c++ speed
Gdip_ImageSearch.ahk - by Masterfocus
FastImageSearch
FullScreen scan around 50ms. With Comparison and find all Matches.
Gdip_ImageSearch.ahk - by Masterfocus
FastImageSearch
FullScreen scan around 50ms. With Comparison and find all Matches.
-
- Posts: 2
- Joined: 18 Aug 2016, 02:03
Re: Best language for imagesearch?
Hello,
There is a problem in the logic, from what I observe. You are right, 50–100 ms is crazy slow. I would also recommend C++. I wrote a very similar script as this one in my course work in school. Like you, I too had to work really hard on making it faster. You try it next time with an improved logic and update here if you are able to speed things up in terms of time. All the best.
There is a problem in the logic, from what I observe. You are right, 50–100 ms is crazy slow. I would also recommend C++. I wrote a very similar script as this one in my course work in school. Like you, I too had to work really hard on making it faster. You try it next time with an improved logic and update here if you are able to speed things up in terms of time. All the best.
Return to “Other Programming Languages”
Who is online
Users browsing this forum: No registered users and 47 guests