Is it possible to scan a rectangle of pixels for the pixel color provided?
I haven’t found a easy way of doing this. At the moment I’m forced to add serveral pixelchecks to my script.
Worked like a charm though I get the feeling that the script got a bit slower than defining all pixels individually… but doing it this way it’s a lot faster to set up and adjust
It looks like ImageMagick might have something that could work. I noticed that several people have mentioned it on this forum, so I thought I’d mention it.
Hi friends. I just working on same project. And have some question. What if we don't know the precise targeted color value? For example, how to find the line with green characters in this screenshot?
In order to do this i need to find (first?) green pixel in this image. But I only know it's green. Dont know the exact color value.
According to this post, I made this kmm. List pixel green value along a vertical line v0 --Instance__X Instance__Y Instance__Steps Instance__StepLength -=.kmmacros (12.0 KB)
Pick a point, (x,y) on this image, in my KMM it's (Instance__X,Instance__Y), as starting point.
Extract all green value in pixel RGB value every 3 pixels.
Instance__X =1435
Instance__Y =249
Instance__Steps =70
Instance__StepLength =3
But the output is a list of Green value of RGB, cannot check if it's green.
Hope you can help _Metadata
It should work if your values are correct. Try simplifying/messing around with the values. If the part you consider is the same as the picture you shared above you don't have to test for the green, the saturation should be enough. also test it with a steplength of 1 to see if this is causing the inconsistencies.