Skip to content

Instantly share code, notes, and snippets.

@OverlordQ
OverlordQ / measure_img_similarity.py
Created October 18, 2019 23:22 — forked from duhaime/measure_img_similarity.py
Compare image similarity in Python using Structural Similarity, Pixel Comparisons, Wasserstein Distance (Earth Mover's Distance), and SIFT
import warnings
from skimage.metrics import structural_similarity
from skimage.transform import resize
from scipy.stats import wasserstein_distance
import imageio
import numpy as np
import cv2
##
# Globals