Content
filter similar.py testwhash.py import pywt import cV2 import numpy as np import os import shutil import math import json TODO: hake this work test whash.py 19 5 6 7 8 g 10 11 12 13 14 15 16 17 18 19 20 21 22 23 def wash(img, level1): img cv2.resize(img, (8, 8)) gray cv2.cvtColor(img, cv2.C pixels np.asarray(gray) 25! coeffs pywt ,wavedec2(pixels, approx coeffs(0 255 median np. median (approx) hash