xrazx
New Member
Posts: 11
|
Post by xrazx on Jul 19, 2016 15:01:20 GMT
Hello, Trying to create my own script for Pocket Maplestory and have run into a problem, the image recognition finds these two images to be "similar" enough to act as one. pasteboard.co/1l11AJtuM.pngpasteboard.co/dobq3Hpt6.pngIs there anyway of using different image recognition settings to distinguish these? I understand that grayscale images may look similar because of the identical pattern. Thanks in advance! -xRaZx P.S. Trying to create a script for a pro key
|
|
|
Post by AnkuLua on Jul 19, 2016 15:44:27 GMT
They are images with/without grey image. Try getColor()
|
|
xrazx
New Member
Posts: 11
|
Post by xrazx on Jul 19, 2016 22:12:51 GMT
So I will be unable to use the image recognition methods and have to roll back to color detection instead? That is too bad, was really hoping to be able to just change the mode of image recognition. Oh well, thanks for your fast response! -xRaZx
|
|
Kako
Contributors
Posts: 105
|
Post by Kako on Jul 20, 2016 17:24:22 GMT
So I will be unable to use the image recognition methods and have to roll back to color detection instead? That is too bad, was really hoping to be able to just change the mode of image recognition. Oh well, thanks for your fast response! -xRaZx Not really actually! AnkuLua turns the screenshots it makes into greyscale before finding the pattern, so it doesn't see any difference between a color and a greyscale image. But you can still search for the image, and once the image is found check if it is greyscale or not! Take a look at getColor in Advanced Methods to see how to test for greyscale.
|
|