Project

General

Profile

Download (302 Bytes) Statistics
| Branch: | Tag: | Revision:
import sys

import pHash

def main():
hash1 = pHash.imagehash(sys.argv[1])
hash2 = pHash.imagehash(sys.argv[2])

print 'Image 1: {:X}'.format(hash1)
print 'Image 2: {:X}'.format(hash2)
print 'Distance {:d}'.format(pHash.hamming_distance(hash2, hash1))

if __name__ == '__main__':
sys.exit(main())
(7-7/7)