def is_look_alike(image_path, other_image_path, tolerance=6): image_hash = average_hash(image_path) other_image_hash = average_hash(other_image_path) return hashes_are_similar(image_hash, other_image_hash, tolerance)