Page 2 of 2

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 07 Nov 2019, 13:36
by guest3456
malcev wrote:
07 Nov 2019, 13:35
I think, that MW_FILTERMODE_INCLUDE worked only on Vista.
But we can get all windows that overlap our window and exclude them.
good idea, but these people say that the exclude list is limited to either 12 or 25 hwnds max:

https://social.msdn.microsoft.com/Forum ... automation

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 07 Nov 2019, 15:09
by malcev
For me works <=24.

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 04:49
by malcev
guest3456 wrote:
03 Nov 2019, 12:19
@malcev excellent, but i'm guessing this will only work fullscreen, and we'd still need to use GDI to capture and/or imagesearch for windows that are obscured behind others
Example with hwnd::
https://www.autohotkey.com/boards/viewtopic.php?p=302273#p302273

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 07:18
by takayo97
Even though capture screen by using directx api, for image search for a given image, i ve to use gdip_imagesearch to do the job?
direct x has no such thing, right ?

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 07:38
by malcev
DirectX cannot search for given image.
You have to use different methods - gdip_imagesearch , opencv...

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 11:26
by takayo97
any info how to use opencv for image search ?

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 11:32
by malcev

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 11:43
by takayo97

For two image search implementation, gdip and opencv, which one is better in terms of performance and memory overrhead for loading the dll lib ?

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 12:11
by takayo97
From @malcev sample code of using directx to screen capture the screen/desktop

The actual saving the screen to file is SavePixelsToFile32bppPBGRA() function, before this function executed, what is the loop 100 { } for ?
Why to loop 100 times before save a screenshot

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 12:15
by malcev
I did not comapare speed of opencv imagesearch and gdi+.
loop 100 - just for testing speed without saving on disk.

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 21 Nov 2019, 13:23
by guest3456
malcev wrote:
21 Nov 2019, 04:49
guest3456 wrote:
03 Nov 2019, 12:19
@malcev excellent, but i'm guessing this will only work fullscreen, and we'd still need to use GDI to capture and/or imagesearch for windows that are obscured behind others
Example with hwnd::
https://www.autohotkey.com/boards/viewtopic.php?p=302273#p302273
thank you sir, i will investigate

Re: is there an alternative imagesearch solution on gdip lib ?

Posted: 09 Dec 2019, 08:33
by malcev
There is also 1 interesting method, which hacks dwm.dll and intercepts directx that used by Windows for creating thumbnails preview.
https://www.youtube.com/watch?v=G75WKeXqXkc
I asked author for algorithm but he answered me that:
Sorry we had to take it down because of a copyright claim from microsoft.