photohash/photohash.py
def distance(image_path, other_image_path):
    """ Compute the hamming distance between two images"""
    image_hash = average_hash(image_path)
    other_image_hash = average_hash(other_image_path)

    return hash_distance(image_hash, other_image_hash)
def distance(image_path, other_image_path):
    image_hash = average_hash(image_path)
    other_image_hash = average_hash(other_image_path)

    return hash_distance(image_hash, other_image_hash)
def distance ( image_path , other_image_path ) : image_hash = average_hash ( image_path ) other_image_hash = average_hash ( other_image_path ) return hash_distance ( image_hash , other_image_hash )
Compute the hamming distance between two images
Compute the hamming distance between two images