photo_hash_5.py 229 B

12345
  1. def is_look_alike(image_path, other_image_path, tolerance=6):
  2. image_hash = average_hash(image_path)
  3. other_image_hash = average_hash(other_image_path)
  4. return hashes_are_similar(image_hash, other_image_hash, tolerance)