Python Compute ssim

import skimage.metrics

ssim = skimage.metrics.structural_similarity(img1, img2, multichannel=True)
Sasso