python calcul ssim

import skimage.metrics

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