You can use node in BAS >
https://www.npmjs.com/package/ffmetadata
or you can use ffmpeg with BAS over "Run proccess" action
You should go with some node library for images, like >
js-imagediff
pixelmatch
node-opencv
Good starting point to explore more deeply about it >
https://stackoverflow.com/questions/4196453/simple-and-fast-method-to-compare-images-for-similarity