@frifixthqby wrote: ↑09 Feb 2022, 06:18The param variation of findPic and findAllPic is equal to the transparent_color << 32 | variation.
For exampleCode: Select all
variation := 0xffffffff << 32 | 0 ; it will ignore the white in the image variation := 0xff000000 << 32 | 0x050505 ; it will ignore the black in the image, and allowed number of shades of variation in either direction for the intensity of the red, green, and blue components of each pixel's color
windows capture, image search and colors search
Re: windows capture, image search and colors search
Re: windows capture, image search and colors search
@thqby
Thank you, now it works. I have misunderstood the variation parameter.
Thank you, now it works. I have misunderstood the variation parameter.
Re: windows capture, image search and colors search
If I want to save the picture in JPG format, do I still need to use GDIP for conversion?
Re: windows capture, image search and colors search
Is possible to have an example for finding multi colors's coordinate?
Re: windows capture, image search and colors search
@ddt442
It's already in the example.
It's already in the example.
Re: windows capture, image search and colors search
Great features. Awesome and practical.
I have created a software that blurs a part of a window.
Can you please add the ability to apply a Gaussian blur to the WGC capture image to the dll?
I want to apply a blur of about 2px-10px.
Right now I use stretchblt scaling to blur.
Blurring a 1500x1500px image at 60fps is very CPU intensive.
I tried gdip but it did not improve.
I have created a software that blurs a part of a window.
Can you please add the ability to apply a Gaussian blur to the WGC capture image to the dll?
I want to apply a blur of about 2px-10px.
Right now I use stretchblt scaling to blur.
Blurring a 1500x1500px image at 60fps is very CPU intensive.
I tried gdip but it did not improve.
Re: windows capture, image search and colors search
I tried capturing fullscreen with DXGI and found no performance advantage over gid. Am I missing some parameter?
7680*2160
dxcp 380ms:
bb := dxcp.captureAndSave()
gdi 220ms:
dc := DllCall("GetDC", "UInt", 0, "Cdecl UPtr")
...
DllCall("GDI32\BitBlt", "UInt", ...)
7680*2160
dxcp 380ms:
bb := dxcp.captureAndSave()
gdi 220ms:
dc := DllCall("GetDC", "UInt", 0, "Cdecl UPtr")
...
DllCall("GDI32\BitBlt", "UInt", ...)
Re: windows capture, image search and colors search
Most image related algorithms require a lot of computation, and different algorithms have different performance.
Not performing calculations can significantly improve performance when the image has not changed.
The BitmapBuffer object has tick property that can be used to distinguish whether to update or not.
Not performing calculations can significantly improve performance when the image has not changed.
The BitmapBuffer object has tick property that can be used to distinguish whether to update or not.
Re: windows capture, image search and colors search
DXGI is not an instant screenshot method. It only returns image data when the target changes within a specified time, otherwise it will return a timeout error. This method can avoid processing duplicate images in continuous screenshots.
Re: windows capture, image search and colors search
I'm experiencing a problem. With multiple monitors, WGC only captures the first screen.
Re: windows capture, image search and colors search
WGC(hwnd_or_monitor_or_index)
You need to specify the monitor index.
You need to specify the monitor index.
Re: windows capture, image search and colors search
when I run the script color.ahk those errors appear.
Does anyone know what the problem is ?
- Attachments
-
- 1.png (11.93 KiB) Viewed 1038 times
-
- 2.png (10.69 KiB) Viewed 1038 times
Re: windows capture, image search and colors search
Perhaps the vc2015 runtime is not installed.
-
- Posts: 639
- Joined: 03 Dec 2018, 20:02
Re: windows capture, image search and colors search
Can you show us how to capture videos with this library?
Re: windows capture, image search and colors search
Screen recording is not implemented.