Imagemagick, a cross-platform imaging library and command line tool, has functions that can be used to compare images. We're usingA team I worked on circa 2012 used it with pretty good success to determine if two images differ. We then havehad built a GUI built with the same library that cancould pull the two images up side by side and highlight the differences for a human to decide whether the differences are significant.