I have ever tried to compare images (screenshots) using aShot.
See the following post of mine:
In this demo project, I calculated the magnitude of difference of 2 given images (source and target) : 0.0%, 0.1%, …, 75.34%, 99.80%, 100.0%. And I put 3rd parameter : criteria-percentage. If I put 1.00% as the criteria, my test regards smaller differences (such as 0.0% and 0.1%) are ignorable; meaning 2 images are similar enough. But greater differences (such as 75.34%, 99.80%, 100.0%) will be regarded significant; meaning 2 images are different.
An now AShot plugin for Katalon Studio is available.