phash v0.1.0 PHash View Source

Link to this section Summary

Functions

Write the image binary data to a temporary file and produces the same result as PHash.image_file_hash/1 using that file.

Reads an image from a path and produces a hash that can be compared with another hash via PHash.image_hash_distance/2.

Calculates the hamming distance between two image hashes.

Link to this section Functions

Link to this function

image_binary_hash(image_data)

View Source

Write the image binary data to a temporary file and produces the same result as PHash.image_file_hash/1 using that file.

Link to this function

image_file_hash(image_path)

View Source

Reads an image from a path and produces a hash that can be compared with another hash via PHash.image_hash_distance/2.

Link to this function

image_hash_distance(hash_a, hash_b)

View Source

Calculates the hamming distance between two image hashes.