Image comparison using SSIM. It can be used to detect image differences... but, the algorithm was designed to compare image quality and look at compression artifacts. Anyway, it works kinda okay for detecting frame differences.